OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
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.
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?
- Posts: 1
- Joined: Thu Apr 29, 2010 3:54 am
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.
- 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 2 guests