diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 868b3bcc3..5c6b7b135 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -23,7 +23,7 @@ * respectively. */ var CSL = { - PROCESSOR_VERSION: "1.1.138", + PROCESSOR_VERSION: "1.1.139", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -2967,21 +2967,13 @@ CSL.Engine.prototype.setOpt = function (token, name, value) { } }; CSL.Engine.prototype.inheritOpt = function (token, attrname, parentname, defaultValue) { - if (parentname === "name-form") { - } if ("undefined" !== typeof token.strings[attrname]) { - if (parentname === "name-form") { - } return token.strings[attrname]; } else { var parentValue = this[this.tmp.root].opt.inheritedAttributes[parentname ? parentname : attrname]; if ("undefined" !== typeof parentValue) { - if (parentname === "name-form") { - } return parentValue; } else { - if (parentname === "name-form") { - } return defaultValue; } } @@ -5921,7 +5913,7 @@ CSL.Engine.prototype.setCitationId = function (citation, force) { while (true) { direction = 0; if (!this.registry.citationreg.citationById[id]) { - citation.citationID = id.toString(32); + citation.citationID = "a" + id.toString(32); break; } else if (!direction && id < 50000000000000) { direction = 1; @@ -8564,11 +8556,11 @@ CSL.NameOutput.prototype._runDisambigNames = function (lst, pos) { } chk = this.state.tmp.disambig_settings.givens[pos][i]; if ("undefined" === typeof chk) { - myform = this.state.inheritOpt(this.name, "form", "name-form"); + myform = this.state.inheritOpt(this.name, "form", "name-form", "long"); param = this.state.registry.namereg.evalname("" + this.Item.id, lst[i], i, 0, myform, myinitials); this.state.tmp.disambig_settings.givens[pos].push(param); } - myform = this.state.inheritOpt(this.name, "form", "name-form"); + myform = this.state.inheritOpt(this.name, "form", "name-form", "long"); paramx = this.state.registry.namereg.evalname("" + this.Item.id, lst[i], i, 0, myform, myinitials); if (this.state.tmp.disambig_request) { var val = this.state.tmp.disambig_settings.givens[pos][i]; @@ -8580,7 +8572,7 @@ CSL.NameOutput.prototype._runDisambigNames = function (lst, pos) { } param = val; if (this.state.opt["disambiguate-add-givenname"] && lst[i].given) { - param = this.state.registry.namereg.evalname("" + this.Item.id, lst[i], i, param, this.state.inheritOpt(this.name, "form", "name-form"), this.state.inheritOpt(this.name, "initialize-with")); + param = this.state.registry.namereg.evalname("" + this.Item.id, lst[i], i, param, this.state.inheritOpt(this.name, "form", "name-form", "long"), this.state.inheritOpt(this.name, "initialize-with")); } } else { param = paramx; @@ -13991,7 +13983,11 @@ CSL.Util.outputNumericField = function(state, varname, itemID) { } } if (num.collapsible) { - var blob = new CSL.NumericBlob(num.particle, parseInt(num.value, 10), numStyling, itemID); + if (num.value.match(/^[0-9]+$/)) { + var blob = new CSL.NumericBlob(num.particle, parseInt(num.value, 10), numStyling, itemID); + } else { + var blob = new CSL.NumericBlob(num.particle, num.value, numStyling, itemID); + } if ("undefined" === typeof blob.gender) { blob.gender = state.locale[state.opt.lang]["noun-genders"][varname]; } diff --git a/resource/schema/repotime.txt b/resource/schema/repotime.txt index 92a72e807..1cbf96b10 100644 --- a/resource/schema/repotime.txt +++ b/resource/schema/repotime.txt @@ -1 +1 @@ -2016-10-01 04:05:00 +2016-10-23 15:30:00 diff --git a/styles b/styles index 942da8d31..37b89da23 160000 --- a/styles +++ b/styles @@ -1 +1 @@ -Subproject commit 942da8d31679e83ff51b15e8fadddcdffdef34fc +Subproject commit 37b89da2373093ca8baf062f34b9b1d0952c543e diff --git a/translators b/translators index 4273554af..79486040d 160000 --- a/translators +++ b/translators @@ -1 +1 @@ -Subproject commit 4273554afc20fe593b30faa6196edac9e755a7fa +Subproject commit 79486040d42c9d273eb45012b2296d90be8008de