diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/fatcat_tools/transforms/elasticsearch.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index cbafca7e..8581febd 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -342,6 +342,9 @@ def container_to_elasticsearch(entity, force_bool=True):          if entity.extra.get(key):              t[key] = entity.extra[key] +    if 'country' in t: +        t['country_code'] = t.pop('country') +      t['issns'] = []      if entity.issnl:          t['issns'].append(entity.issnl) | 
