aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-03 17:23:20 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-02-03 17:25:50 -0800
commit301abbce765cbe5b905b7d1751819668d95801d0 (patch)
tree7ec2df0595ecc628bac73ca254c4702e67de260e /python/fatcat_tools
parent11e20e50e759d3398ca6dddac0383c7280e09256 (diff)
downloadfatcat-301abbce765cbe5b905b7d1751819668d95801d0.tar.gz
fatcat-301abbce765cbe5b905b7d1751819668d95801d0.zip
container ES transform: include old extra.issne/p fields
These were removed prematurely. Not all containers have been updated to use these fields yet.
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index 1c7c2905..96886d7a 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -456,8 +456,11 @@ def container_to_elasticsearch(
"region",
"discipline",
"publisher_type",
+ # some containers still have these in "extra"
+ "issne",
+ "issnp",
):
- if entity.extra.get(key):
+ if entity.extra.get(key) and not t.get(key):
t[key] = entity.extra[key]
if entity.extra.get("dblp") and entity.extra["dblp"].get("prefix"):