Upgrade citeproc-js to version 1.0.262.
This commit is contained in:
parent
8bebd77a57
commit
0e9505a2c5
|
@ -121,7 +121,6 @@ var CSL = {
|
||||||
MINIMAL_NAME_FIELDS: ["literal", "family"],
|
MINIMAL_NAME_FIELDS: ["literal", "family"],
|
||||||
SWAPPING_PUNCTUATION: [".", "!", "?", ":",","],
|
SWAPPING_PUNCTUATION: [".", "!", "?", ":",","],
|
||||||
TERMINAL_PUNCTUATION: [":", ".", ";", "!", "?", " "],
|
TERMINAL_PUNCTUATION: [":", ".", ";", "!", "?", " "],
|
||||||
SPLICE_PUNCTUATION: [".", "!", "?", ":", ";", ","],
|
|
||||||
NONE: 0,
|
NONE: 0,
|
||||||
NUMERIC: 1,
|
NUMERIC: 1,
|
||||||
POSITION: 2,
|
POSITION: 2,
|
||||||
|
@ -1980,7 +1979,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.261";
|
this.processor_version = "1.0.262";
|
||||||
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();
|
||||||
|
@ -3721,6 +3720,8 @@ CSL.getCitationCluster = function (inputList, citationID) {
|
||||||
var tmpstr = composite.pop();
|
var tmpstr = composite.pop();
|
||||||
if (tmpstr && tmpstr.slice(0, 1) === ",") {
|
if (tmpstr && tmpstr.slice(0, 1) === ",") {
|
||||||
objects.push(tmpstr);
|
objects.push(tmpstr);
|
||||||
|
} else if ("string" == typeof objects.slice(-1)[0] && objects.slice(-1)[0].slice(-1) === ",") {
|
||||||
|
objects.push(" " + tmpstr)
|
||||||
} else if (tmpstr) {
|
} else if (tmpstr) {
|
||||||
objects.push(txt_esc(this.tmp.splice_delimiter) + tmpstr);
|
objects.push(txt_esc(this.tmp.splice_delimiter) + tmpstr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user