normalize_doi#
- technote.metadata.doi.normalize_doi(value)#
Normalize a DOI into its bare form,
10.NNNN/suffix.- Parameters:
value (
str) – A DOI, either in its bare form or expressed as adoi.orgURL or with adoi:prefix. Whitespace around the DOI, and between a prefix and the DOI, is ignored.- Returns:
The bare DOI.
- Return type:
- Raises:
ValueError – Raised if the value is not a syntactically-valid DOI.