Parse PMIDs from extra field
This commit is contained in:
parent
2f8f18c957
commit
687997e963
1 changed files with 7 additions and 0 deletions
|
@ -435,6 +435,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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue