Skip to content

Commit

Permalink
Bump package version
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Apr 16, 2023
1 parent 5c64c35 commit 73bc1b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
12 changes: 8 additions & 4 deletions citeproc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23622,6 +23622,11 @@ CSL.Registry.NameReg = function (state) {

set_keys = function (state, itemid, nameobj) {
pkey = strip_periods(nameobj.family);

if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
pkey = `${pkey} ${nameobj["non-dropping-particle"]}`;
}

skey = strip_periods(nameobj.given);
// Drop lowercase suffixes (such as et al.) from given name field
// for disambiguation purposes.
Expand Down Expand Up @@ -23833,11 +23838,10 @@ CSL.Registry.NameReg = function (state) {
&& pos !== 0) {
return;
}

// A hack. Safe if the name object is used only here, for disambiguation purposes.
if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
nameobj["family"] = nameobj["non-dropping-particle"] + " " + nameobj["family"];
}
/*
*/

//CSL.debug("INS");
set_keys(this.state, "" + item_id, nameobj);
Expand Down
12 changes: 8 additions & 4 deletions citeproc_commonjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23622,6 +23622,11 @@ CSL.Registry.NameReg = function (state) {

set_keys = function (state, itemid, nameobj) {
pkey = strip_periods(nameobj.family);

if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
pkey = `${pkey} ${nameobj["non-dropping-particle"]}`;
}

skey = strip_periods(nameobj.given);
// Drop lowercase suffixes (such as et al.) from given name field
// for disambiguation purposes.
Expand Down Expand Up @@ -23833,11 +23838,10 @@ CSL.Registry.NameReg = function (state) {
&& pos !== 0) {
return;
}

// A hack. Safe if the name object is used only here, for disambiguation purposes.
if (state.opt["demote-non-dropping-particle"] === "never" && nameobj["non-dropping-particle"] && nameobj["family"]) {
nameobj["family"] = nameobj["non-dropping-particle"] + " " + nameobj["family"];
}
/*
*/

//CSL.debug("INS");
set_keys(this.state, "" + item_id, nameobj);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "citeproc",
"version": "2.4.62",
"description": "The citeproc-js citation formatting module, in CommonJS format. This version is based on citeproc-js 1.4.62",
"version": "2.4.63",
"description": "The citeproc-js citation formatting module, in CommonJS format. This version is based on citeproc-js 1.4.63",
"main": "citeproc_commonjs.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 73bc1b4

Please sign in to comment.