www

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

commit 30f7ef093a82b16f96bb21f65fa7057795a4cceb
parent b8b85f48535346c530e553935f6cb6c259c364e3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 26 Sep 2016 01:08:52 -0400

Remove Extra field parsing when generating CSL JSON

Now done by the processor in 1.1.133 (#1099)

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

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1627,17 +1627,6 @@ Zotero.Utilities = { cslItem.title = Zotero.Notes.noteToTitle(zoteroItem.note); } - // extract PMID - var extra = zoteroItem.extra; - if(typeof extra === "string") { - var m = /(?:^|\n)PMID:\s*([0-9]+)/.exec(extra); - if(m) cslItem.PMID = m[1]; - m = /(?:^|\n)PMCID:\s*((?:PMC)?[0-9]+)/.exec(extra); - if(m) cslItem.PMCID = m[1]; - m = /(?:^|\n)DOI:\s*(10\.[0-9]{4,}\/[^\s]*[^\s\.,])/.exec(extra); - if(m) cslItem.DOI = m[1]; - } - //this._cache[zoteroItem.id] = cslItem; return cslItem; },