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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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: 46
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: 10015
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: 46
Joined: Thu May 03, 2012 8:09 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests