OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Request: support publication dates before 2004

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Request: support publication dates before 2004

Postby tommowlam » Thu Apr 10, 2014 5:23 am

In OJS 2.4.3 (and presumably earlier versions) when setting a publication year for either an article (Editor > Submissions > #### > Editing) or an issue (Editor > Issues > ### > Issue data), the drop-down only has year options back to 2004. We are currently adding content to a journal which started publishing in 1958.

This means that, when adding older content to the journal (eg via the Quick Submit plugin) then you need to edit the publication dates directly in the database, which involves a different set of skills and privileges from loading the content, and is therefore inefficient.

The starting year of the journal entered by the journal manager in setup stage 4.2 (Journal Management > Journal Setup), so I suggest that this year is used to generate the list of selectable years for the journal (and continue to default the year dropdown to begin at 2004 if the start year has not been set, or if the start year has been set as 2004 or later).
tommowlam
 
Posts: 5
Joined: Thu Apr 10, 2014 4:45 am

Re: Request: support publication dates before 2004

Postby szmigieldesign » Mon Jul 14, 2014 11:30 pm

Hello,
I'm experiencing the same issue. Any suggestions on how to add older content to the journal?
szmigieldesign
 
Posts: 30
Joined: Thu Aug 30, 2012 2:22 am
Location: PL

Re: Request: support publication dates before 2004

Postby asmecher » Tue Jul 15, 2014 9:21 am

Hi all,

A quick work-around: edit the file templates/editor/issues/issueData.tpl, and find the line...
Code: Select all
{math|assign:"minYear" equation="min(x,y)-10" x=$publishedYear y=$currentYear}
Replace it with...
Code: Select all
{assign var=minYear value=1950}
...where 1950 in this case is the first available year.

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

Re: Request: support publication dates before 2004

Postby szmigieldesign » Tue Jul 15, 2014 2:20 pm

Thank You Alec for pointing out the appropriate template,
I have found already that plenty of OJS logic is hiding in .tpl files. However, I'd like to modify as few of them as possible in order to avoid update-related problems.

Will this particular behavior be altered in future OJS versions?
szmigieldesign
 
Posts: 30
Joined: Thu Aug 30, 2012 2:22 am
Location: PL

Re: Request: support publication dates before 2004

Postby asmecher » Tue Jul 15, 2014 2:38 pm

Hi szmigieldesign,

No plans at the moment for OJS 2.x. In OJS 3.0, we'll be using a Javascript-based date picker that will allow broader dates to be selected.

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


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests