Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't parse author strings in CitationModel #2552

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

robyngit
Copy link
Member

Live for testing on https://metacatui.test.dataone.org/

Fixes #2548, Related to #2106

@@ -629,7 +629,11 @@ define(["jquery", "underscore", "backbone", "collections/Citations"], (
if (typeof author.toCSLJSON === "function") {
author = author.toCSLJSON();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-param-reassign> reported by reviewdog 🐶
Assignment to function parameter '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 };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-param-reassign> reported by reviewdog 🐶
Assignment to function parameter 'author'.

Copy link

@justinkadi justinkadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the test site for organization names, and it looks like it's working for the ones I've searched up. I also don't see any changes to normal names in citations.

@robyngit robyngit merged commit d7c744e into develop Oct 17, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Author name is mixed up in citation and under the title of data package if it's an organization
2 participants