From bf718fd076476c1a54e80ca88cd02ede606ab6f3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 29 Jan 2020 23:23:39 -0800 Subject: add country to v03b release schema --- python/fatcat_tools/transforms/elasticsearch.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index c8547b27..f0146d01 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -155,6 +155,8 @@ def release_to_elasticsearch(entity, force_bool=True): if c_extra.get('szczepanski'): if c_extra['szczepanski'].get('as_of'): is_oa = True + if c_extra.get('country'): + t['country'] = c_extra['country'] # fall back to release-level container metadata if container not linked or # missing context -- cgit v1.2.3