A kludge to filter out members from the editorial team

OJS development discussion, enhancement requests, third-party patches and plug-ins.

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.
Posts: 17
Joined: Mon Jun 20, 2005 10:15 am

A kludge to filter out members from the editorial team

Postby gsk3 » Sun Jan 15, 2006 11:27 am

If you want people to have certain powers but not to show up in the About:Editorial Team page (e.g. for a Journal Manager who should be able to see what's coming in, etc. like an editor but is not part of the team per se), try this:

in "includes/functions.inc.php", add
//Filter Name from filtered array passed by editorialTeam()
function filterNames ($name) {
return($name->getFullName()!="Bob G. Marley"); }
obviously change Bob G. Marley to whoever you want to filter.

Then in "pages/about/AboutHandler.inc.php", add
//Added to filter a name from the editorial team page (function is in functions.inc.php)
$editors = array_filter($editors,"filterNames");
just after "$editors = &$editors->toArray();" in the editorialTeam function.
Do the same thing for any section you want to filter from (e.g. section editors, etc., just change $editors to $sectionEditors or whatever as appropriate.

Hope this helps someone.

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Mon Jan 16, 2006 11:32 am

Hi Ari,

FYI, the Editorial Board feature from OJS 1.x will be included in our next release, which is due at the end of January. This means you'll be able to fully customize a journal's masthead through the Journal Manager's interface.

Alec Smecher
Open Journal Systems Team

Return to “OJS Development”

Who is online

Users browsing this forum: No registered users and 1 guest