From e6feb6fd6d48f7b179389e79dfeb994d1b0f797b Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sat, 4 Jan 2020 00:19:56 +0100 Subject: datacite: always include "datacite" key in extra > always include extra values for the respective DOI registrars (datacite, crossref, jalc), even if they are empty ({}), to be used as a flag so we know which DOI registrar supplied the metadata. --- python/fatcat_tools/importers/datacite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index d0c75b6e..2fad1264 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -604,8 +604,8 @@ class DataciteImporter(EntityImporter): if not container_id and container_name: extra['container_name'] = container_name - if extra_datacite: - extra['datacite'] = extra_datacite + # Always include datacite key, even if value is empty (dict). + extra['datacite'] = extra_datacite extids = self.lookup_ext_ids(doi=doi) -- cgit v1.2.3