diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 7c5278836..533a28eed 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -34,7 +34,7 @@ if (!Array.indexOf) { }; } var CSL = { - PROCESSOR_VERSION: "1.1.96", + PROCESSOR_VERSION: "1.1.98", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -236,7 +236,7 @@ var CSL = { } var lst = val.split(/\s*\|\|\s*/); if (lst.length === 1) { - names[key].push({family:lst[0],isInstitution:true}); + names[key].push({literal:lst[0]}); } else if (lst.length === 2) { var name = {family:lst[0],given:lst[1]}; CSL.parseParticles(name); @@ -1200,7 +1200,7 @@ CSL.parseXml = function(str) { }); } function _getAttributes(elem) { - var m = elem.match(/([^\"= ]+)=\"[^\"]*\"/g); + var m = elem.match(/([^\'\"= ]+)=(?:\"[^\"]*\"|\'[^\']*\')/g); if (m) { for (var i=0,ilen=m.length;i]+)");