www

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

commit 2ab83445991e5929810b7f0f5a449daeab6aa99d
parent 4b06372a47be1faae2cf87b78d9f3d428484a1b0
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 28 Mar 2011 13:50:43 +0000

upgrade to citeproc-js 1.0.134


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

diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js @@ -1739,7 +1739,7 @@ CSL.DateParser = function (txt) { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.133"; + this.processor_version = "1.0.134"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -5501,13 +5501,14 @@ CSL.Attributes["@variable"] = function (state, arg) { len = this.variables.length; for (pos = 0; pos < len; pos += 1) { variable = this.variables[pos]; + if (variable === "page-first") { + variable = "page"; + } if (this.strings.form === "short" && !Item[variable]) { if (variable === "title") { variable = "shortTitle"; } else if (variable === "container-title") { variable = "journalAbbreviation"; - } else if (variable === "page-first") { - variable = "page"; } } if (CSL.DATE_VARIABLES.indexOf(variable) > -1) { @@ -5529,27 +5530,27 @@ CSL.Attributes["@variable"] = function (state, arg) { } if (varlen >= needlen) { output = true; - break; } + break; } } else if ("locator" === variable) { if (item && item.locator) { output = true; - break; } + break; } else if ("citation-number" === variable) { output = true; break; } else if ("first-reference-note-number" === variable) { if (item && item["first-reference-note-number"]) { output = true; - break; } + break; } else if ("object" === typeof Item[variable]) { if (Item[variable].length) { output = true; - break; } + break; } else if ("string" === typeof Item[variable] && Item[variable]) { output = true; break;