OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



DOI suffix number

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.

DOI suffix number

Postby artic » Thu Apr 29, 2010 3:58 am

I need to add the year to the suffix DOI number generated automatically , (i.e. %j.YEAR.v%vi%i.%a) does anyone know 'What' the file to edit?
artic
 
Posts: 1
Joined: Thu Apr 29, 2010 3:54 am

Re: DOI suffix number

Postby mcrider » Wed May 05, 2010 9:33 am

Hi artic,

You should be able to do this by editing the 'pattern' case near the end of classes/article/PublishedArticle.inc.php. If you add something like
Code: Select all
$suffixPattern = String::regexp_replace('/%Y/', $issue->getYear(), $suffixPattern);
to that list of replacements, you can add %Y to the DOI pattern in setup step 1, and it should automatically insert the year.

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 3 guests