by vgabler » Tue Nov 09, 2010 1:50 pm
Hi,
I see that others have posted here about how to add the option "year" to the suffix of DOIs. However, I didn't see any requests that this automatically be included as an option in a future version. In case it helps, here was our System Admin's fix:
In the directory classes/article:
*** PublishedArticle.inc.php.orig Tue Nov 9 15:15:12 2010
--- PublishedArticle.inc.php Tue Nov 9 15:38:38 2010
***************
*** 288,293 ****
--- 288,295 ----
$suffixPattern = String::regexp_replace('/%a/', $this->getArticleId(), $suffixPattern);
// %p - page number
$suffixPattern = String::regexp_replace('/%p/', $this->getPages(), $suffixPattern);
+ // %Y - year
+ $suffixPattern = String::regexp_replace('/%Y/', $issue->getYear(), $suffixPattern);
$doi = $doiPrefix . '/' . $suffixPattern;
break;
default:
All best,
Vanessa Gabler
Electronic Publications Manager
Office of Scholarly Communication and Publishing
University Library System, University of Pittsburgh
vgabler@pitt.edu412-244-7509