summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-06 22:30:20 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-06 22:30:20 +0100
commitd38dda53dd29024c8c855c64dfbb1529d0aaac83 (patch)
tree54703e8d496941af2754ed4f9224660109b7bee0 /python/fatcat_tools
parentff37b97e4bbf642efbd830111fe3dbd45ae56dad (diff)
downloadfatcat-d38dda53dd29024c8c855c64dfbb1529d0aaac83.tar.gz
fatcat-d38dda53dd29024c8c855c64dfbb1529d0aaac83.zip
datacite: month field should be top-level
Diffstat (limited to 'python/fatcat_tools')
-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 a673f00b..1cee6db3 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -603,8 +603,6 @@ class DataciteImporter(EntityImporter):
extra_datacite['license'] = license_extra
if attributes.get('subjects'):
extra_datacite['subjects'] = attributes['subjects']
- if release_month:
- extra_datacite['month'] = release_month
# Include certain relations from relatedIdentifiers. Keeping the
# original structure of data here, which is a list of dicts, with
@@ -630,6 +628,8 @@ class DataciteImporter(EntityImporter):
# Always include datacite key, even if value is empty (dict).
extra['datacite'] = extra_datacite
+ if release_month:
+ extra['month'] = release_month
extids = self.lookup_ext_ids(doi=doi)