commit 879ed11b69e48b1cdd6dcab33753895350bd6243
parent 8e365298ba90576803d41da827d21fc0adc7f3dc
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 22 Aug 2017 12:18:29 +0200
Update citeproc-js to 1.1.175
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -24,7 +24,7 @@
*/
'use strict'
var CSL = {
- PROCESSOR_VERSION: "1.1.174",
+ PROCESSOR_VERSION: "1.1.175",
CONDITION_LEVEL_TOP: 1,
CONDITION_LEVEL_BOTTOM: 2,
PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/,
@@ -3911,7 +3911,7 @@ CSL.Output.Queue.prototype.string = function (state, myblobs, blob) {
}
ret = ret.concat(addtoret);
}
- if (blobjr.strings.first_blob) {
+ if (blobjr.strings.first_blob && state.registry.registry[blobjr.strings.first_blob]) {
state.registry.registry[blobjr.strings.first_blob].offset = state.tmp.offset_characters;
state.tmp.count_offset_characters = false;
}
@@ -5846,7 +5846,7 @@ CSL.citeStart = function (Item, item, blockShadowNumberReset) {
this.tmp.authority_stop_last = 0;
};
CSL.citeEnd = function (Item, item) {
- if (this.tmp.disambig_restore) {
+ if (this.tmp.disambig_restore && this.registry.registry[Item.id]) {
this.registry.registry[Item.id].disambig.names = this.tmp.disambig_restore.names.slice();
this.registry.registry[Item.id].disambig.givens = this.tmp.disambig_restore.givens.slice();
for (var i=0,ilen=this.registry.registry[Item.id].disambig.givens.length;i<ilen;i+=1) {