From 301abbce765cbe5b905b7d1751819668d95801d0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 3 Feb 2022 17:23:20 -0800 Subject: container ES transform: include old extra.issne/p fields These were removed prematurely. Not all containers have been updated to use these fields yet. --- python/fatcat_tools/transforms/elasticsearch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python/fatcat_tools/transforms') 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"): -- cgit v1.2.3