diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-07-26 13:51:30 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-07-26 13:51:30 -0700 |
commit | 22799af7dc9807b11e3c1516a495674ac05bb624 (patch) | |
tree | c7881fb0c179aa51b1a27e6ee33cbaa4c2c2e0b7 /fatcat_scholar | |
parent | dead6d1bdb9df57a425a094b616de98f1147505e (diff) | |
download | fatcat-scholar-22799af7dc9807b11e3c1516a495674ac05bb624.tar.gz fatcat-scholar-22799af7dc9807b11e3c1516a495674ac05bb624.zip |
transform: more clean_doi() calls
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/transform.py | 6 |
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, |