commit 7d4aa521ac5617794a61490c923e0528810c22cd
parent bee32d1a51a8c6fc4aefdc0dc5b602777f67f2c6
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 24 Apr 2016 20:06:22 -0400
Update citeproc-js to 1.1.101
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -34,7 +34,7 @@ if (!Array.indexOf) {
};
}
var CSL = {
- PROCESSOR_VERSION: "1.1.100",
+ PROCESSOR_VERSION: "1.1.101",
CONDITION_LEVEL_TOP: 1,
CONDITION_LEVEL_BOTTOM: 2,
PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/,
@@ -6646,7 +6646,7 @@ CSL.Node["date-part"] = {
}
}
state.tmp.value = [];
- if ((value || state.tmp.have_collapsed) && !state.opt.has_year_suffix && "year" === this.strings.name && !state.tmp.just_looking) {
+ if (Item[date_variable] && (value || state.tmp.have_collapsed) && !state.opt.has_year_suffix && "year" === this.strings.name && !state.tmp.just_looking) {
if (state.registry.registry[Item.id] && state.registry.registry[Item.id].disambig.year_suffix !== false && !state.tmp.has_done_year_suffix) {
state.tmp.has_done_year_suffix = true;
num = parseInt(state.registry.registry[Item.id].disambig.year_suffix, 10);
@@ -13698,7 +13698,6 @@ CSL.Util.outputNumericField = function(state, varname, itemID) {
} else {
blob.successor_prefix = state[state.tmp.area].opt.layout_delimiter;
}
- blob.UGLY_DELIMITER_SUPPRESS_HACK = true;
}
if ("undefined" === typeof blob.gender) {
blob.gender = state.locale[state.opt.lang]["noun-genders"][varname];