Upgrade citeproc-js to version 1.0.322
This commit is contained in:
parent
f40a97911a
commit
4df9472bd3
1 changed files with 13 additions and 7 deletions
|
@ -57,8 +57,8 @@ if (!Array.indexOf) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
var CSL = {
|
var CSL = {
|
||||||
STATUTE_SUBDIV_GROUPED_REGEX: /((?:^| )(?:p\.|pp\.|r\.|pt\.|ch\.|subch\.|sec\.|tit\.|art\.|para\.))/g,
|
STATUTE_SUBDIV_GROUPED_REGEX: /((?:^| )(?:p\.|pp\.|r\.|pt\.|ch\.|subch\.|s\.|sec\.|tit\.|art\.|para\.))/g,
|
||||||
STATUTE_SUBDIV_PLAIN_REGEX: /(?:(?:^| )(?:p\.|pp\.|r\.|pt\.|ch\.|subch\.|sec\.|tit\.|art\.|para\.))/,
|
STATUTE_SUBDIV_PLAIN_REGEX: /(?:(?:^| )(?:p\.|pp\.|r\.|pt\.|ch\.|subch\.|s\.|sec\.|tit\.|art\.|para\.))/,
|
||||||
STATUTE_SUBDIV_STRINGS: {
|
STATUTE_SUBDIV_STRINGS: {
|
||||||
"p.": "page",
|
"p.": "page",
|
||||||
"pp.": "page",
|
"pp.": "page",
|
||||||
|
@ -66,17 +66,22 @@ var CSL = {
|
||||||
"pt.": "part",
|
"pt.": "part",
|
||||||
"ch.": "chapter",
|
"ch.": "chapter",
|
||||||
"subch.": "subchapter",
|
"subch.": "subchapter",
|
||||||
"sec.": "section",
|
"s.": "section",
|
||||||
|
"sec.": "Section",
|
||||||
"tit.": "title",
|
"tit.": "title",
|
||||||
"art.": "article",
|
"art.": "article",
|
||||||
"para.": "paragraph"
|
"para.": "paragraph"
|
||||||
},
|
},
|
||||||
STATUTE_SUBDIV_STRINGS_REVERSE: {
|
STATUTE_SUBDIV_STRINGS_REVERSE: {
|
||||||
"page": "p.",
|
"page": "p.",
|
||||||
|
"page": "pp.",
|
||||||
|
"rule": "r.",
|
||||||
"part": "pt.",
|
"part": "pt.",
|
||||||
"chapter": "ch.",
|
"chapter": "ch.",
|
||||||
"subchapter": "subch.",
|
"subchapter": "subch.",
|
||||||
"section": "sec.",
|
"Section": "sec.",
|
||||||
|
"section": "s.",
|
||||||
|
"title": "tit.",
|
||||||
"article": "art.",
|
"article": "art.",
|
||||||
"paragraph": "para."
|
"paragraph": "para."
|
||||||
},
|
},
|
||||||
|
@ -447,7 +452,7 @@ var CSL = {
|
||||||
"\u06E5": "\u0648",
|
"\u06E5": "\u0648",
|
||||||
"\u06E6": "\u064A"
|
"\u06E6": "\u064A"
|
||||||
},
|
},
|
||||||
LOCATOR_LABELS_REGEXP: new RegExp("^((ch|col|fig|no|l|n|op|p|pp|para|pt|r|tit|sec|sv|vrs|vol)\\.)\\s+(.*)"),
|
LOCATOR_LABELS_REGEXP: new RegExp("^((ch|col|fig|no|l|n|op|p|pp|para|pt|r|tit|s|sec|sv|vrs|vol)\\.)\\s+(.*)"),
|
||||||
LOCATOR_LABELS_MAP: {
|
LOCATOR_LABELS_MAP: {
|
||||||
"ch": "chapter",
|
"ch": "chapter",
|
||||||
"col": "column",
|
"col": "column",
|
||||||
|
@ -461,7 +466,8 @@ var CSL = {
|
||||||
"para": "paragraph",
|
"para": "paragraph",
|
||||||
"pt": "part",
|
"pt": "part",
|
||||||
"r": "rule",
|
"r": "rule",
|
||||||
"sec": "section",
|
"s": "section",
|
||||||
|
"sec": "Section",
|
||||||
"tit": "title",
|
"tit": "title",
|
||||||
"vrs": "verse",
|
"vrs": "verse",
|
||||||
"vol": "volume"
|
"vol": "volume"
|
||||||
|
@ -2168,7 +2174,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.321";
|
this.processor_version = "1.0.322";
|
||||||
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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue