aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-04 00:19:56 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-04 00:19:56 +0100
commite6feb6fd6d48f7b179389e79dfeb994d1b0f797b (patch)
treefe35cbed0950e17f2223beae2ea0c66ce81baad9 /python/fatcat_tools/importers
parent328d7901df30ba94685d34d6a428e798b4604839 (diff)
downloadfatcat-e6feb6fd6d48f7b179389e79dfeb994d1b0f797b.tar.gz
fatcat-e6feb6fd6d48f7b179389e79dfeb994d1b0f797b.zip
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.
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/datacite.py4
1 files changed, 2 insertions, 2 deletions
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)