Refresh citeproc-js version 1.0.328
This commit is contained in:
parent
ca02bec4df
commit
53b6312a7f
1 changed files with 6 additions and 7 deletions
|
@ -2641,21 +2641,20 @@ CSL.Engine.prototype.remapSectionVariable = function (inputList) {
|
|||
} else if (item
|
||||
&& item.locator
|
||||
&& this.opt.development_extensions.static_statute_locator) {
|
||||
value = "" + item.locator;
|
||||
var splt = value.split(/\s+/);
|
||||
var splt = item.locator.split(/\s+/);
|
||||
if (CSL.STATUTE_SUBDIV_STRINGS[splt[0]]) {
|
||||
item.label = CSL.STATUTE_SUBDIV_STRINGS[splt[0]];
|
||||
} else if (item.label) {
|
||||
value = CSL.STATUTE_SUBDIV_STRINGS_REVERSE[item.label] + " " + value;
|
||||
item.locator = CSL.STATUTE_SUBDIV_STRINGS_REVERSE[item.label] + " " + item.locator;
|
||||
} else {
|
||||
item.label = "page";
|
||||
value = "p. " + value;
|
||||
item.locator = "p. " + item.locator;
|
||||
}
|
||||
}
|
||||
if (!later_label) {
|
||||
later_label = item.label;
|
||||
}
|
||||
if (value) {
|
||||
if (!later_label) {
|
||||
later_label = item.label;
|
||||
}
|
||||
var m = value.match(CSL.STATUTE_SUBDIV_GROUPED_REGEX);
|
||||
item.section_label_count = m.length;
|
||||
var locator = "";
|
||||
|
|
Loading…
Add table
Reference in a new issue