www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f74df0f7fd7283a8ce4055dd1105326b9630e160
parent 65cfb905de04377b4baaf1982b86a5d715ed5f56
Author: Frank <biercenator@gmail.com>
Date:   Thu,  9 Feb 2012 11:42:52 +0800

Upgrade citeproc-js to version 1.0.278

Diffstat:
Mchrome/content/zotero/xpcom/citeproc.js | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js @@ -2133,7 +2133,7 @@ CSL.DateParser = function () { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.277"; + this.processor_version = "1.0.278"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -7792,6 +7792,11 @@ CSL.Attributes["@variable"] = function (state, arg) { if (variable === "page-first") { variable = "page"; } + if (variable === "authority" + && "string" === typeof Item[variable] + && "names" === this.name) { + Item[variable] = [{family:Item[variable],isInstitution:true}] + } if (this.strings.form === "short" && !Item[variable]) { if (variable === "title") { variable = "shortTitle"; @@ -11694,9 +11699,11 @@ CSL.Disambiguation.prototype.disExtraText = function () { CSL.Disambiguation.prototype.disYears = function () { var pos, len, tokens, token, item; tokens = []; - for (pos = 0, len = this.lists[this.listpos][1].length; pos < len; pos += 1) { - token = this.registry[this.lists[this.listpos][1][pos].id]; - tokens.push(token); + if (this.clashes[1]) { + for (pos = 0, len = this.lists[this.listpos][1].length; pos < len; pos += 1) { + token = this.registry[this.lists[this.listpos][1][pos].id]; + tokens.push(token); + } } tokens.sort(this.state.registry.sorter.compareKeys); for (pos = 0, len = tokens.length; pos < len; pos += 1) {