You are viewing the PKP Support Forum | PKP Home Wiki

Arbitrary sorting of TOC

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
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.

Arbitrary sorting of TOC

Postby sqro » Fri Feb 07, 2014 4:24 am

At this moment for the readers OJS sorts TOC of an issue grouped by the section. Is there any way to get it sorted in different way - like by page number or even better in an arbitrary order as it can be seen by the editor?
I have two sections - regular papers and journalism.
I have editorial at the beginning of the issue - journalism
Some regular scientific papers in the middle
At the end of the issue I have a list of reviewers for the whole year - journalism again
And this is intender order for the TOC - sadly both journalism class paper are grouped in TOC so i have an intro and outro blocked in illogical way

Sorry if this was already discussed -I googled and did not find.

regards and again thanks for the Team for great work You are doing
Posts: 7
Joined: Tue Jan 08, 2013 8:58 am

Re: Arbitrary sorting of TOC

Postby asmecher » Fri Feb 07, 2014 9:12 am

Hi sqro,

If you'd like to display content in a way that has the same section repeating several times, then you'll need to consider a code modification. The function to look at is in classes/article/PublishedArticleDAO.inc.php and it's called "getPublishedArticlesInSections"; as you can see from the SQL query there, the sorting is hard-coded to section sequence (a combination of global and issue-specific issue sorting) and article sequence (used to order articles within sections).

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

Re: Arbitrary sorting of TOC

Postby sqro » Mon Feb 10, 2014 2:24 am

Thank You for reply - well i won't decide to modify the code - I didt it once with joomla and later applying patches was a little bit complicated.

Posts: 7
Joined: Tue Jan 08, 2013 8:58 am

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 0 guests