OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



How to remove Salutation before Editor names

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

How to remove Salutation before Editor names

Postby dankomed » Tue Dec 31, 2013 12:43 pm

Hi,

I was wondering whether there is a way not to display the "Salutation" in front of the names of people in the Editorial team of the Journal.

I tried leaving the Salutation box empty, but people insert back their Salutation when they update their profiles.

Thanks
dankomed
 
Posts: 38
Joined: Thu May 03, 2012 8:09 pm

Re: How to remove Salutation before Editor names

Postby asmecher » Tue Dec 31, 2013 1:55 pm

Hi dankomed,

Do you want to suppress it just in the editorial listing, or everywhere? If everywhere is OK, you can edit the getFullName function in lib/pkp/classes/user/PKPUser.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8413
Joined: Wed Aug 10, 2005 12:56 pm

Re: How to remove Salutation before Editor names

Postby dankomed » Sun Feb 16, 2014 2:23 am

In lib/pkp/classes/user/PKPUser.inc.php after the code:
Code: Select all
function getFullName($lastFirst = false) {


I deleted the line:
Code: Select all
$salutation = $this->getData('salutation');


Since my original goal was to have only names displayed without extra stuff around, I also removed the suffixes in getFullName:
Code: Select all
$suffix = $this->getData('suffix');


All works well.
dankomed
 
Posts: 38
Joined: Thu May 03, 2012 8:09 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests