OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
The OJS Technical Reference
and the OJS API Reference
are both available from the OJS Documentation
You can access our public Git Repository here
. Comprehensive Git usage instructions are available on the wiki
You can access our Bugzilla report tracker here
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
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.
Public Knowledge Project Team
- 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