cern-sis / issues-inspire

0 stars 0 forks source link

display INSPIRE ID for authors that don't have an ORCID #431

Closed michamos closed 5 months ago

michamos commented 5 months ago

When an author doesn't have an ORCID but has an INSPIRE ID, we should display the latter on the author profile. The data comes from ids.value where ids.schema is INSPIRE ID and should be displayed under Author identifier.

Mockup for https://inspirehep.net/authors/1010044:

Image

karolina-siemieniuk-morawska commented 5 months ago

TECH NOTES:

  1. In /authors, create new component InspireIdentifier.tsx similar to AuthorBAI.tsx and pass Inspire id as props
  2. In DetailPageContainer.tsx create logic to retrieve Inspire id from ids field and return it if there is no userOrcid prop present
  3. Here add the InspireIdentifier.tsx component when above conditions are met