Skip to content

Commit

Permalink
Merge pull request #2552 from NCEAS/bugfix-2548-citation-org-name
Browse files Browse the repository at this point in the history
Don't parse author strings in CitationModel
  • Loading branch information
robyngit authored Oct 17, 2024
2 parents 586c019 + a5bced5 commit d7c744e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/models/CitationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,11 @@ define(["jquery", "underscore", "backbone", "collections/Citations"], (
if (typeof author.toCSLJSON === "function") {
author = author.toCSLJSON();
} else if (typeof author === "string") {
author = this.nameStrToCSLJSON(author);
// author = this.nameStrToCSLJSON(author);

// It's too difficult to parse a string when it could be a name or
// an organization. Just return the string. See issue #2106
author = { literal: author };
}

return author;
Expand Down

0 comments on commit d7c744e

Please sign in to comment.