diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-10-01 15:00:10 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-10-12 15:33:35 -0400 |
commit | a0f61293ab0b41ff41203470bb7e975a053550bf (patch) | |
tree | a5506b04eb527b1f8ae0fa27e9fa6ea0a50ad113 /extra | |
parent | 3ebe4eb9b546b25d23f6b044d5c6cd883d148e8c (diff) | |
download | fatcat-a0f61293ab0b41ff41203470bb7e975a053550bf.tar.gz fatcat-a0f61293ab0b41ff41203470bb7e975a053550bf.zip |
for now, store is_longtail_oa in container_is_longtail_oa
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/elasticsearch/transform_release.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |