From 6b948b6b6d480940571de244c664efe420e05d50 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 17 Nov 2020 19:41:56 -0800 Subject: if a release has DOAJ article id, count as OA --- python/fatcat_tools/transforms/elasticsearch.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index dfb5f799..96a5b96b 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -213,6 +213,9 @@ def release_to_elasticsearch(entity, force_bool=True): t['best_pdf_url'] = best_pdf_url or good_pdf_url or any_pdf_url t['ia_pdf_url'] = ia_pdf_url + if release.ext_ids.doaj: + is_oa = True + if release.license_slug: # TODO: more/better checks here, particularly strict *not* OA licenses if release.license_slug.startswith("CC-"): -- cgit v1.2.3