OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Adding bios to the editorialTeam page

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

Adding bios to the editorialTeam page

Postby gsk3 » Tue Jul 19, 2005 5:54 pm

In case this might help anyone, here is some code to add biographies to the About the editorial team page, as seen here: http://www.copyrightjournal.org/index.p ... torialTeam .

In templates/about/editorialTeam.tpl, find the line "{$editor->getFullName()}{if strlen($editor->getAffiliation()) > 0}, {$editor->getAffiliation()}{/if}"

replace it with:
<b>{$editor->getFullName()}</b>
{if strlen($editor->getAffiliation()) > 0}, {$editor->getAffiliation()}{/if}
<br>
{if strlen($editor->getBiography()) > 0}{$editor->getBiography()}{/if}
<br><br>




Now go to classes/user/User.inc.php and add the following to the end (but before the final ?> :
function getBiography() {
return $this->getData('biography');
}





Clean, simple, does what it's supposed to (hopefully!). Do the same thing for your section editors section.

If you want to have their names become links to e-mail them, add another section to your User.inc.php:
function getEmail() {
return $this->getData('email');
}


and then wrap the "{$editor->getFullName()}" code that we just mucked around with with "<a href="mailto:{$editor->getEmail()}">" and "</a>"

Good luck,
Ari
gsk3
 
Posts: 17
Joined: Mon Jun 20, 2005 10:15 am

Editorial Team bio

Postby ramon » Wed Jul 20, 2005 6:30 am

Ari,

This code is really nice.. It will massage the ego of any member of the journal. It would be great to be able to also publish the Reviewers of each issue, with a page like this too.

This has been a request from many journals we have trained in the software. On 1.x they used the Add Item in the About Journal setup to copy and paste the names of the reviewers, but I'm sure this could be made dynamically, pretty easily too.

Of course, in the future, they will love to add their pics, pets, children, resume, blogs.......
ramon
 
Posts: 940
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Editorial Team bio

Postby gsk3 » Thu Jul 21, 2005 6:37 am

ramon wrote:Ari,
This code is really nice.. It will massage the ego of any member of the journal. It would be great to be able to also publish the Reviewers of each issue, with a page like this too.


Hi Ramon,
Glad you like it. Adding reviewers is a little tricker, it seems. If I come up with anything I'll post it here.
Best,
Ari
gsk3
 
Posts: 17
Joined: Mon Jun 20, 2005 10:15 am


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest