Remove Extra field parsing when generating CSL JSON
Now done by the processor in 1.1.133 (#1099)
This commit is contained in:
parent
b8b85f4853
commit
30f7ef093a
1 changed files with 0 additions and 11 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue