Merge pull request #434 from adam3smith/4.0

fix PMCID parsing
This commit is contained in:
Simon Kornblith 2014-01-06 06:51:41 -08:00
commit dd5132e105

View file

@ -612,7 +612,7 @@ Zotero.Cite.System.prototype = {
if(typeof extra === "string") {
var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra);
if(m) cslItem.PMID = m[1];
m = /(?:^|\n)PMCID:\s*([0-9]+)/.exec(extra);
m = /(?:^|\n)PMCID:\s*((?:PMC)?[0-9]+)/.exec(extra);
if(m) cslItem.PMCID = m[1];
}