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

RIS: Disambiguate journal abbreviation and pub title based on length #3395

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AbeJellinek
Copy link
Member

Fixes #3394

RIS.js Outdated
@@ -1764,8 +1770,18 @@ function completeItem(item) {
if (cleanDOI) item.DOI = cleanDOI;
}

// hack for sites like Nature, which only use JA, journal abbreviation
if (item.journalAbbreviation && !item.publicationTitle) {
// Use the shorter journal abbreviation, and move the longer one to
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're not worried that the logic here is getting a bit convoluted? It obviously works for the issue at hand, but it's hard to keep track of what's going on in the code, which will make future troubleshooting harder.
Otherwise this looks fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point - how about now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

RIS: Move journalAbbreviation to publicationTitle when empty, instead of copying?
2 participants