Parse PMIDs from extra field

This commit is contained in:
Simon Kornblith 2013-03-10 16:17:15 -04:00
parent 2f8f18c957
commit 687997e963

View file

@ -434,6 +434,13 @@ Zotero.Cite.System = {
}
}
}
// extract PMID
var extra = zoteroItem.getField("extra", false, true);
if(typeof extra === "string") {
var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra);
if(m) cslItem.PMID = m[1];
}
//this._cache[zoteroItem.id] = cslItem;
return cslItem;