gbif / gbif-api

GBIF API
Apache License 2.0
27 stars 5 forks source link

Accept old and new forms for EML userId #30

Closed MattBlissett closed 5 years ago

MattBlissett commented 5 years ago

Following this issue on the EML repository, it looks like when the IPT and registry/GBIF API were written there was no guidance on how to format an ORCID in the EML.

The related commit on EML for v2.2 (not yet released) suggests it should be like this:

<userId directory="https://orcid.org/">https://orcid.org/0000-0003-0623-6682</userId>

But the IPT generates it like this:

<userId directory="http://orcid.org/">0000-0003-0623-6682</userId>

We will need to handle both, and probably also the mixture:

<userId directory="http://orcid.org/">https://0000-0003-0623-6682</userId>