summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/transform.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-07-26 13:51:30 -0700
committerBryan Newbold <bnewbold@archive.org>2021-07-26 13:51:30 -0700
commit22799af7dc9807b11e3c1516a495674ac05bb624 (patch)
treec7881fb0c179aa51b1a27e6ee33cbaa4c2c2e0b7 /fatcat_scholar/transform.py
parentdead6d1bdb9df57a425a094b616de98f1147505e (diff)
downloadfatcat-scholar-22799af7dc9807b11e3c1516a495674ac05bb624.tar.gz
fatcat-scholar-22799af7dc9807b11e3c1516a495674ac05bb624.zip
transform: more clean_doi() calls
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r--fatcat_scholar/transform.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index 2aef2f9..194f2f0 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -721,9 +721,9 @@ def refs_from_release_refs(release: ReleaseEntity) -> List[RefStructured]:
volume=extra.get("volume"),
issue=extra.get("issue"),
pages=extra.get("pages") or extra.get("page"),
- doi=extra.get("doi"),
+ doi=clean_doi(extra.get("doi")),
pmid=extra.get("pmid"),
- pmcid=extra.get("pmcid"),
+ pmcid=clean_pmcid(extra.get("pmcid")),
arxiv_id=extra.get("arxiv_id"),
isbn=extra.get("isbn13") or extra.get("isbn"),
url=clean_url_conservative(extra.get("url")),
@@ -801,7 +801,7 @@ def refs_from_crossref(
issue=ref.get("issue"),
pages=ref.get("first-page"),
version=ref.get("edition"),
- doi=ref.get("DOI"),
+ doi=clean_doi(ref.get("DOI")),
isbn=ref.get("ISBN"),
),
release_ident=release.ident,