commit 1aabbbfb67f154aed2b9e8c44c1ad2c3b7e51d74
parent b1bacc98166d17f6570f451e4590fa4077b1e0aa
Author: Frank Bennett <biercenator@gmail.com>
Date: Mon, 18 Jun 2012 04:05:54 +0900
Upgrade citeproc-js to version 1.0.344
Diffstat:
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -57,7 +57,7 @@ if (!Array.indexOf) {
};
}
var CSL = {
- PROCESSOR_VERSION: "1.0.343",
+ PROCESSOR_VERSION: "1.0.344",
STATUTE_SUBDIV_GROUPED_REGEX: /((?:^| )(?:art|ch|Ch|subch|p|pp|para|subpara|pt|r|sec|subsec|Sec|sch|tit)\.)/g,
STATUTE_SUBDIV_PLAIN_REGEX: /(?:(?:^| )(?:art|ch|Ch|subch|p|pp|para|subpara|pt|r|sec|subsec|Sec|sch|tit)\.)/,
STATUTE_SUBDIV_STRINGS: {
@@ -7977,12 +7977,14 @@ CSL.Node.text = {
if (!label) {
label = state.getCitationLabel(Item);
}
- suffix = "";
- if (state.registry.registry[Item.id] && state.registry.registry[Item.id].disambig.year_suffix !== false) {
- num = parseInt(state.registry.registry[Item.id].disambig.year_suffix, 10);
- suffix = state.fun.suffixator.format(num);
+ if (!state.tmp.just_looking) {
+ suffix = "";
+ if (state.registry.registry[Item.id] && state.registry.registry[Item.id].disambig.year_suffix !== false) {
+ num = parseInt(state.registry.registry[Item.id].disambig.year_suffix, 10);
+ suffix = state.fun.suffixator.format(num);
+ }
+ label += suffix;
}
- label += suffix;
state.output.append(label, this);
};
this.execs.push(func);