From c9e6fc3f1be7c71ff3c90bc734a73929323ed4d4 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 25 Mar 2012 06:19:45 +0800 Subject: [PATCH] Upgrade citeproc-js to version 1.0.308 --- chrome/content/zotero/xpcom/citeproc.js | 28 +++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 9009e3665..0fa24a4a1 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -2158,7 +2158,7 @@ CSL.DateParser = function () { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.307"; + this.processor_version = "1.0.308"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -6727,6 +6727,7 @@ CSL.NameOutput.prototype.getStaticOrder = function (name, refresh) { } CSL.NameOutput.prototype._splitInstitution = function (value, v, i) { var ret = {}; + value.literal = this.state.transform.quashCheck(value.literal); var splitInstitution = value.literal.replace(/\s*\|\s*/g, "|"); splitInstitution = splitInstitution.split("|"); if (this.institution.strings.form === "short" && this.state.sys.getAbbreviation) { @@ -8921,16 +8922,7 @@ CSL.Transform = function (state) { if (myabbrev_family) { primary = abbreviate(state, Item, alternative_varname, primary, myabbrev_family, true); if (primary) { - var m = primary.match(/^!([-,_a-z]+)<<