mmisw / orr-portal

ORR Frontend component
Apache License 2.0
8 stars 5 forks source link

Embed ORCID ID handling in portal #176

Open graybeal opened 3 years ago

graybeal commented 3 years ago

At least one user has started filling out the author name metadata with an ORCID ID. This is opaque at first look, but it is being handled as a link in the portal (good job!), so simply clicking on the link goes to the ORCID page for that person.

A nicer representation for this ORCID ID would be to show their name (obtained from the ORCID ID API), but with an ORCID ID badge attached, so viewers could click on the ORCID ID badge to see more information about the user. It gives credit to ORCID, and to the person who has the ORCID account, and moves toward a more human-friendly view of the linked data.

carueda commented 3 years ago

Did a quick exploration, just focused on public API as a first "easy-path" strategy:

https://members.orcid.org/api/about-public-api :

Using the public API does not require Public API credentials, but they are strongly encouraged and may be required in the future.

Good to know there's a way to get some data without too much trouble (at least initially).

In fact, this is confirmed by just quickly trying the Swagger UI for public: https://pub.orcid.org/v2.0/. Good also that they provide JSON responses.

Example:

  http get https://pub.orcid.org/v3.0/0000-0002-5440-0638/personal-details Accept:application/json