OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Odd behaviors after 2.1.0-1 upgrade

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.

Odd behaviors after 2.1.0-1 upgrade

Postby sjones » Sun Feb 12, 2006 2:57 pm

I've encountered two rather odd things since upgrading to 2.1.0-1 and I can't figure out why they're happening or how to stop them from happening.

1. When logged in as section editor, on the navigation menu at the top of the page when viewing a manuscript, instead of reading as it had prior to the upgrade:

Home > User Home > Section Editor Submissions > #2 > Review

the page reads:

Home > ##navigation.usear## > Section Editor Submissions > #2 > Review

I can't figure out where the "##navigation.usear##" is coming from or how to make it stop. It doesn't seem to affect operation.

2. Again as section editor, when on the page listing all submissions currently under review, the "Review Due" column no longer lists the whole date, just a single number.

I have screen shots of these if that would be of any use, too.

Thanks in advance for any help!

Sj
sjones
 
Posts: 46
Joined: Sun Jan 29, 2006 8:47 am

Postby asmecher » Sun Feb 12, 2006 8:08 pm

Hi Sjones,

Your first item is indeed a bug, but just a typo. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2072 for information on the bug and a patch to correct it. If you're not familiar with the process of applying a patch, follow these steps to correct it by hand:
  • Edit pages/sectionEditor/SectionEditorHandler.inc.php
  • Go to line 145:
    Code: Select all
    $pageHierarchy = $subclass ? array(array(Request::url(null, 'user'), 'navigation.usear'), array(Request::url(null, $isEditor?'editor':'sectionEditor'), $isEditor?'user.role.editor':'user.role.sectionEditor'), array(Request::url(null, $isEditor?'editor':'sectionEditor'), 'article.submissions'))
  • Change navigation.usear to navigation.user and the problem will be corrected.
For the second item you mention, the "due date" display has been changed to a number of weeks rather than an actual date. If you'd rather display the actual due date, edit templates/sectionEditor/submissionsInReview.tpl and templates/editor/submissionsInReview.tpl and change (around line 53):
Code: Select all
{$assignment->getWeeksDue()}
to
Code: Select all
{$assignment->getDateDue()|date_format:$dateFormatTrunc}
Regards,
Alec Smecher
Open Journal Systems Team
Last edited by asmecher on Wed Dec 13, 2006 12:23 pm, edited 1 time in total.
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby sjones » Wed Feb 15, 2006 2:19 pm

Fantastic - thank you! Easily edited, both of them, thanks for the clear instructions.

Sj
sjones
 
Posts: 46
Joined: Sun Jan 29, 2006 8:47 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 7 guests