www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 687997e963b5fa14d38d0d52568570fb79b50dac
parent 2f8f18c9571010b5f9d9035f62b590e63ffc1e4f
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 10 Mar 2013 16:17:15 -0400

Parse PMIDs from extra field

Diffstat:
Mchrome/content/zotero/xpcom/cite.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -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;