aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-12 14:50:54 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-12 14:50:54 -0700
commit5c23d95defffaf78f921f172b0c6d24a5f3385c9 (patch)
treea96dfac76c51d75c5505f12d08fbdd184cfdd737
parent10c0de41d0e8be11527124f5ae7ec8d498ad85ac (diff)
downloadfatcat-scholar-5c23d95defffaf78f921f172b0c6d24a5f3385c9.tar.gz
fatcat-scholar-5c23d95defffaf78f921f172b0c6d24a5f3385c9.zip
use simple names, not domain names, for some platforms
-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 da8a339..ad9e66f 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -219,12 +219,12 @@ def biblio_metadata_hacks(biblio: ScholarBiblio) -> ScholarBiblio: # noqa: C901
# figshare
if biblio.doi_prefix in ("10.6084", "10.25384"):
if not biblio.container_name:
- biblio.container_name = "figshare.com"
+ biblio.container_name = "Figshare"
# zenodo
if biblio.doi_prefix == "10.5281":
if not biblio.container_name:
- biblio.container_name = "zenodo.com"
+ biblio.container_name = "Zenodo"
# biorxiv/medrxiv
# NOTE: there is a further hack that determines which of biorxiv/medrxiv
@@ -240,7 +240,7 @@ def biblio_metadata_hacks(biblio: ScholarBiblio) -> ScholarBiblio: # noqa: C901
# arxiv
if biblio.arxiv_id and not (biblio.doi or biblio.pmid):
if not biblio.container_name:
- biblio.container_name = "arxiv.org"
+ biblio.container_name = "arXiv"
if biblio.release_type in (None, "report", "post"):
biblio.release_type = "article"