Remove Extra field parsing when generating CSL JSON

Now done by the processor in 1.1.133 (#1099)
This commit is contained in:
Dan Stillman 2016-09-26 01:08:52 -04:00
parent b8b85f4853
commit 30f7ef093a

View file

@ -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;
},