Skip to content

Commit

Permalink
Process extra date if no main entry
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jun 2, 2019
1 parent 8875129 commit 7c4b6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/load.js
Expand Up @@ -336,8 +336,8 @@ var CSL = {
Item.type = val;
lines[i] = "";
} else if (CSL.DATE_VARIABLES.indexOf(key.replace(/^alt-/, "")) > -1) {
if (allowDateOverride) {
Item[key] = {raw: val};
if (!Item[key] || allowDateOverride) {
Item[key] = CSL.DateParser.parseDateToArray(val);
if (!validFieldsForType || (validFieldsForType[key] && this.isDateString(val))) {
lines[i] = "";
}
Expand Down

0 comments on commit 7c4b6e4

Please sign in to comment.