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

MBS-13201: Add ORCID to other databases whitelist and handle links #2991

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

Conversation

reosarevok
Copy link
Member

Implement MBS-13201

Description

ORCID identifiers are given to researchers - this includes music researchers (like musicologists and some academically trained musicians) as well as musicians that also happen to be scientists for their day jobs.

As far as I can tell, only researchers (so, artists) get ORCIDs, so every other entity gets an ENTITY error.

The regex for the valid profile URLs is based on https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier

For the sidebar, as per https://info.orcid.org/brand-guidelines/ they seem to prefer the logo + the ID itself, which we could do, but I don't think the ORCID logo is recognizable outside a pure academic context, so I chose to do logo + ORCID for now and hope they don't mind.

Testing

Manually plus added a test for the cleanup and another to make sure search links are rejected.

This also adds a basic cleanup and validation.
As far as I can tell, only researchers (so, artists) get ORCIDs.
Regex based on:
https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier
As per https://info.orcid.org/brand-guidelines/ they seem to prefer
the logo + the ID itself, which we could do, but I don't think
the ORCID logo is recognizable outside a pure academic context,
so I chose to do logo + ORCID for now and hope they don't mind.
@reosarevok reosarevok added New feature Non urgent new stuff URL handling labels Aug 2, 2023
Copy link
Contributor

@yvanzo yvanzo left a comment

Choose a reason for hiding this comment

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

The code looks good but only then I looked into this database and its addition seems to be useless; See my comment to the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature Non urgent new stuff URL handling
Projects
None yet
2 participants