aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-12-03 17:19:48 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-12-03 17:19:55 -0800
commitb0ccb0b027fa3ee75f21f4e7b8d3037f04499961 (patch)
treee978c36049d96494b379d338729090b963b38c58 /python/fatcat_tools/transforms
parent4a683e7b14a34ce616b92cd514b1543616f232f0 (diff)
downloadfatcat-b0ccb0b027fa3ee75f21f4e7b8d3037f04499961.tar.gz
fatcat-b0ccb0b027fa3ee75f21f4e7b8d3037f04499961.zip
ES transform: remove prototype microfilm links
This ended up being a feature in scholar.archive.org, not fatcat.
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index a6d85f7e..ce4308d3 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -203,26 +203,6 @@ def release_to_elasticsearch(entity: ReleaseEntity, force_bool: bool = True) ->
t["first_page"] = first
# TODO: non-numerical first pages
- t["ia_microfilm_url"] = None
- if t["in_ia_sim"]:
- # TODO: determine URL somehow? I think this is in flux. Will probably
- # need extra metadata in the container extra field.
- # special case as a demo for now.
- if (
- release.container_id == "hl5g6d5msjcl7hlbyyvcsbhc2u"
- and release.release_year in (2011, 2013)
- and release.issue
- and release.issue.isdigit()
- and t["first_page"]
- ):
- t[
- "ia_microfilm_url"
- ] = "https://archive.org/details/sim_bjog_{}-{:02d}/page/n{}".format(
- release.release_year,
- int(release.issue) - 1,
- t["first_page"],
- )
-
t["doi_registrar"] = None
if extra and t["doi"]:
for k in ("crossref", "datacite", "jalc"):