From 81c7293312f039f8ce3cac9a5023ab97b57e39ce Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 May 2019 16:07:02 -0700 Subject: elastic release schema update --- python/fatcat_tools/transforms/elasticsearch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index 645142de..a8e0227b 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -43,9 +43,11 @@ def release_to_elasticsearch(entity, force_bool=True): state = release.state, revision = release.revision, title = release.title, + subtitle = release.subtitle, original_title = release.original_title, release_type = release.release_type, - release_status = release.release_stage, + release_stage = release.release_stage, + withdrawn_status = release.withdrawn_status, language = release.language, license = release.license_slug, doi = release.ext_ids.doi, @@ -56,7 +58,8 @@ def release_to_elasticsearch(entity, force_bool=True): core_id = release.ext_ids.core, arxiv_id = release.ext_ids.arxiv, jstor_id = release.ext_ids.jstor, - # TODO: mag, ark + ark_id = release.ext_ids.ark, + mag_id = release.ext_ids.mag, ) is_oa = None -- cgit v1.2.3