Skip to content

Commit

Permalink
Bump version, update CHANGES, bundle as 1.1.123
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Sep 9, 2016
1 parent cacff68 commit 29c2f5e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
@@ -1,5 +1,11 @@
Summary of changes to citeproc-js since version 1.0.0 release.

==========================
Changes in version 1.1.123
==========================

- Implement month-day date constraint.

==========================
Changes in version 1.1.122
==========================
Expand Down
11 changes: 10 additions & 1 deletion citeproc.js
Expand Up @@ -23,7 +23,7 @@
* <http://www.gnu.org/licenses/> respectively.
*/
var CSL = {
PROCESSOR_VERSION: "1.1.122",
PROCESSOR_VERSION: "1.1.123",
CONDITION_LEVEL_TOP: 1,
CONDITION_LEVEL_BOTTOM: 2,
PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/,
Expand Down Expand Up @@ -12559,6 +12559,15 @@ CSL.Util.fixDateNode = function (parent, pos, node) {
this.cslXml.deleteNodeByNameAttribute(datexml, 'day');
} else if ("year-month" === this.cslXml.getAttributeValue(node, "date-parts")) {
this.cslXml.deleteNodeByNameAttribute(datexml, 'day');
} else if ("month-day" === this.cslXml.getAttributeValue(node, "date-parts")) {
var childNodes = this.cslXml.children(datexml);
for (var i=1,ilen=childNodes.length;i<ilen;i++) {
if (this.cslXml.getAttributeValue(childNodes[i], 'name') === "year") {
this.cslXml.setAttribute(childNodes[i-1], "suffix", "");
break;
}
}
this.cslXml.deleteNodeByNameAttribute(datexml, 'year');
}
return this.cslXml.insertChildNodeAfter(parent, node, pos, datexml);
};
Expand Down
11 changes: 10 additions & 1 deletion citeproc_with_e4x.js
Expand Up @@ -23,7 +23,7 @@
* <http://www.gnu.org/licenses/> respectively.
*/
var CSL = {
PROCESSOR_VERSION: "1.1.122",
PROCESSOR_VERSION: "1.1.123",
CONDITION_LEVEL_TOP: 1,
CONDITION_LEVEL_BOTTOM: 2,
PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/,
Expand Down Expand Up @@ -12560,6 +12560,15 @@ CSL.Util.fixDateNode = function (parent, pos, node) {
this.cslXml.deleteNodeByNameAttribute(datexml, 'day');
} else if ("year-month" === this.cslXml.getAttributeValue(node, "date-parts")) {
this.cslXml.deleteNodeByNameAttribute(datexml, 'day');
} else if ("month-day" === this.cslXml.getAttributeValue(node, "date-parts")) {
var childNodes = this.cslXml.children(datexml);
for (var i=1,ilen=childNodes.length;i<ilen;i++) {
if (this.cslXml.getAttributeValue(childNodes[i], 'name') === "year") {
this.cslXml.setAttribute(childNodes[i-1], "suffix", "");
break;
}
}
this.cslXml.deleteNodeByNameAttribute(datexml, 'year');
}
return this.cslXml.insertChildNodeAfter(parent, node, pos, datexml);
};
Expand Down
2 changes: 1 addition & 1 deletion src/load.js
Expand Up @@ -33,7 +33,7 @@

var CSL = {

PROCESSOR_VERSION: "1.1.122",
PROCESSOR_VERSION: "1.1.123",

CONDITION_LEVEL_TOP: 1,

Expand Down

0 comments on commit 29c2f5e

Please sign in to comment.