Skip to content

Commit

Permalink
Update citeproc-js to 1.1.145
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jan 15, 2017
1 parent a6912c3 commit fdc19d0
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions chrome/content/zotero/xpcom/citeproc.js
Expand Up @@ -23,7 +23,7 @@
* <http://www.gnu.org/licenses/> respectively.
*/
var CSL = {
PROCESSOR_VERSION: "1.1.144",
PROCESSOR_VERSION: "1.1.145",
CONDITION_LEVEL_TOP: 1,
CONDITION_LEVEL_BOTTOM: 2,
PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/,
Expand Down Expand Up @@ -12197,14 +12197,16 @@ CSL.Transform = function (state) {
if (!state.transform.abbrevs[tryList[i]]) {
state.transform.abbrevs[tryList[i]] = new state.sys.AbbreviationSegments();
}
if (!state.transform.abbrevs[tryList[i]][category][orig]) {
state.sys.getAbbreviation(state.opt.styleID, state.transform.abbrevs, tryList[i], category, orig, itemType, true);
}
if (!found && state.transform.abbrevs[tryList[i]][category][orig]) {
if (i < tryList.length) {
state.transform.abbrevs[jurisdiction][category][orig] = state.transform.abbrevs[tryList[i]][category][orig];
if (state.transform.abbrevs[tryList[i]][category]) {
if (!state.transform.abbrevs[tryList[i]][category][orig]) {
state.sys.getAbbreviation(state.opt.styleID, state.transform.abbrevs, tryList[i], category, orig, itemType, true);
}
if (!found && state.transform.abbrevs[tryList[i]][category][orig]) {
if (i < tryList.length) {
state.transform.abbrevs[jurisdiction][category][orig] = state.transform.abbrevs[tryList[i]][category][orig];
}
found = true;
}
found = true;
}
}
}
Expand Down Expand Up @@ -13917,11 +13919,13 @@ CSL.Engine.prototype.processNumber = function (node, ItemObject, variable, type)
}
if (val && this.sys.getAbbreviation) {
var jurisdiction = this.transform.loadAbbreviation(ItemObject.jurisdiction, "number", val);
if (this.transform.abbrevs[jurisdiction].number[val]) {
val = this.transform.abbrevs[jurisdiction].number[val];
} else {
if ("undefined" !== typeof this.transform.abbrevs[jurisdiction].number[val]) {
delete this.transform.abbrevs[jurisdiction].number[val];
if (this.transform.abbrevs[jurisdiction].number) {
if (this.transform.abbrevs[jurisdiction].number[val]) {
val = this.transform.abbrevs[jurisdiction].number[val];
} else {
if ("undefined" !== typeof this.transform.abbrevs[jurisdiction].number[val]) {
delete this.transform.abbrevs[jurisdiction].number[val];
}
}
}
}
Expand Down

0 comments on commit fdc19d0

Please sign in to comment.