From 9d1c375b2afe5d9230a54da6bc96da499ad646a3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 1 Oct 2018 15:00:10 -0700 Subject: for now, store is_longtail_oa in container_is_longtail_oa --- extra/elasticsearch/transform_release.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extra/elasticsearch/transform_release.py b/extra/elasticsearch/transform_release.py index 4922a362..86d6e4b7 100755 --- a/extra/elasticsearch/transform_release.py +++ b/extra/elasticsearch/transform_release.py @@ -62,6 +62,8 @@ def transform(m): extra = m.get('extra', dict()) if extra: t['in_shadow'] = extra.get('in_shadow') + if extra.get('grobid') and extra['grobid'].get('is_longtail_oa'): + t['container_is_longtail_oa'] = True t['any_abstract'] = bool(t.get('abstracts')) t['is_kept'] = container_is_kept or extra.get('is_kept', False) -- cgit v1.2.3