Upgrade citeproc-js to version 1.0.262.

This commit is contained in:
Frank 2012-01-17 19:49:47 +08:00 committed by Simon Kornblith
parent 8bebd77a57
commit 0e9505a2c5

View File

@ -121,7 +121,6 @@ var CSL = {
MINIMAL_NAME_FIELDS: ["literal", "family"],
SWAPPING_PUNCTUATION: [".", "!", "?", ":",","],
TERMINAL_PUNCTUATION: [":", ".", ";", "!", "?", " "],
SPLICE_PUNCTUATION: [".", "!", "?", ":", ";", ","],
NONE: 0,
NUMERIC: 1,
POSITION: 2,
@ -1980,7 +1979,7 @@ CSL.DateParser = function () {
};
CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale;
this.processor_version = "1.0.261";
this.processor_version = "1.0.262";
this.csl_version = "1.0";
this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing();
@ -3721,6 +3720,8 @@ CSL.getCitationCluster = function (inputList, citationID) {
var tmpstr = composite.pop();
if (tmpstr && tmpstr.slice(0, 1) === ",") {
objects.push(tmpstr);
} else if ("string" == typeof objects.slice(-1)[0] && objects.slice(-1)[0].slice(-1) === ",") {
objects.push(" " + tmpstr)
} else if (tmpstr) {
objects.push(txt_esc(this.tmp.splice_delimiter) + tmpstr);
}