From 7c5d51190cb8e58dea6231b48dc942fb35ef54a9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 2 Apr 2020 17:36:41 -0700 Subject: transform: include missing external idents --- elastic_transform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elastic_transform.py b/elastic_transform.py index 38c9ecf..587aabd 100755 --- a/elastic_transform.py +++ b/elastic_transform.py @@ -50,6 +50,8 @@ def fulltext_to_elasticsearch(row, force_bool=True): 'pages', 'number', 'license', + ] + EXT_IDS = [ 'doi', 'pmid', 'pmcid', @@ -61,6 +63,8 @@ def fulltext_to_elasticsearch(row, force_bool=True): ] for key in BIBLIO_KEYS: t[key] = release.get(key) or None + for key in EXT_IDS: + t[key] = release['ext_ids'].get(key) or None abstracts = [] abstract_langs = [] -- cgit v1.2.3