Update to citeproc-js 1.0.203
This commit is contained in:
parent
4aa855aba1
commit
ffc02fb583
|
@ -1924,7 +1924,7 @@ CSL.DateParser = function () {
|
||||||
};
|
};
|
||||||
CSL.Engine = function (sys, style, lang, forceLang) {
|
CSL.Engine = function (sys, style, lang, forceLang) {
|
||||||
var attrs, langspec, localexml, locale;
|
var attrs, langspec, localexml, locale;
|
||||||
this.processor_version = "1.0.202";
|
this.processor_version = "1.0.203";
|
||||||
this.csl_version = "1.0";
|
this.csl_version = "1.0";
|
||||||
this.sys = sys;
|
this.sys = sys;
|
||||||
this.sys.xml = new CSL.System.Xml.Parsing();
|
this.sys.xml = new CSL.System.Xml.Parsing();
|
||||||
|
@ -3198,14 +3198,33 @@ CSL.Engine.prototype.processCitationCluster = function (citation, citationsPre,
|
||||||
} else {
|
} else {
|
||||||
suprame = true;
|
suprame = true;
|
||||||
}
|
}
|
||||||
var prev_locator, curr_locator;
|
var prev, prev_locator, prev_label, curr_locator, curr_label;
|
||||||
if (ibidme) {
|
if (ibidme) {
|
||||||
if (k > 0) {
|
if (k > 0) {
|
||||||
prev_locator = onecitation.sortedItems[(k - 1)][1].locator;
|
prev = onecitation.sortedItems[(k - 1)][1];
|
||||||
} else {
|
} else {
|
||||||
prev_locator = citations[(j - 1)].sortedItems[0][1].locator;
|
prev = citations[(j - 1)].sortedItems[0][1];
|
||||||
|
}
|
||||||
|
if (prev.locator) {
|
||||||
|
if (prev.label) {
|
||||||
|
prev_label = prev.label;
|
||||||
|
} else {
|
||||||
|
prev_label = "";
|
||||||
|
}
|
||||||
|
prev_locator = "" + prev.locator + prev_label;
|
||||||
|
} else {
|
||||||
|
prev_locator = prev.locator;
|
||||||
|
}
|
||||||
|
if (item[1].locator) {
|
||||||
|
if (item[1].label) {
|
||||||
|
curr_label = item[1].label;
|
||||||
|
} else {
|
||||||
|
curr_label = "";
|
||||||
|
}
|
||||||
|
curr_locator = "" + item[1].locator + curr_label;
|
||||||
|
} else {
|
||||||
|
curr_locator = item[1].locator;
|
||||||
}
|
}
|
||||||
curr_locator = item[1].locator;
|
|
||||||
}
|
}
|
||||||
if (ibidme && prev_locator && !curr_locator) {
|
if (ibidme && prev_locator && !curr_locator) {
|
||||||
ibidme = false;
|
ibidme = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user