commit 53b6312a7ff1a5d78487e5d66f9b36b63bfbcc3a parent ca02bec4dfd4c885b4fa2ddefb58c6a9e4b006d0 Author: Frank <biercenator@gmail.com> Date: Mon, 30 Apr 2012 23:02:26 +0000 Refresh citeproc-js version 1.0.328 Diffstat:
| M | chrome/content/zotero/xpcom/citeproc.js | | | 13 | ++++++------- |
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js @@ -2641,21 +2641,20 @@ CSL.Engine.prototype.remapSectionVariable = function (inputList) { } else if (item && item.locator && this.opt.development_extensions.static_statute_locator) { - value = "" + item.locator; - var splt = value.split(/\s+/); + var splt = item.locator.split(/\s+/); if (CSL.STATUTE_SUBDIV_STRINGS[splt[0]]) { item.label = CSL.STATUTE_SUBDIV_STRINGS[splt[0]]; } else if (item.label) { - value = CSL.STATUTE_SUBDIV_STRINGS_REVERSE[item.label] + " " + value; + item.locator = CSL.STATUTE_SUBDIV_STRINGS_REVERSE[item.label] + " " + item.locator; } else { item.label = "page"; - value = "p. " + value; + item.locator = "p. " + item.locator; } } - if (!later_label) { - later_label = item.label; - } if (value) { + if (!later_label) { + later_label = item.label; + } var m = value.match(CSL.STATUTE_SUBDIV_GROUPED_REGEX); item.section_label_count = m.length; var locator = "";