datacite / bolognese

Ruby gem and command-line utility for conversion of DOI metadata
MIT License
40 stars 14 forks source link

Issue-1602 Added test case for normalizing ORCID ids with and withou … #164

Closed ashwinisukale closed 11 months ago

ashwinisukale commented 11 months ago

…schemeURI

Purpose

Added test case normalising ORCID ids with and without schemeURI

closes: https://github.com/datacite/datacite/issues/1602

Approach

Open Questions and Pre-Merge TODOs

Learning

Types of changes

Reviewer, please remember our guidelines:

ashwinisukale commented 11 months ago

Thank you @digitaldogsbody :) for the review. I will add the test.

ashwinisukale commented 11 months ago

@digitaldogsbody while adding test case, I found one bug in our code, that if we have leading and trialing spaces in the ORCID id then we consider that id as invalid id, I have fixed the bug in the same PR. Could you please review this again.

<creator>
  <creatorName nameType="Personal">Mike B</creatorName>
  <nameIdentifier nameIdentifierScheme="ORCID"> 0000-0001-9998-0118 </nameIdentifier>
 </creator>
"  0000-0001-9998-0118  ",  # valid ORCID with leading/trailing spaces
digitaldogsbody commented 11 months ago

Great catch!

ashwinisukale commented 11 months ago

Let me change the gem version if we are going to deploy this change.