summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-06 22:25:53 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-06 22:25:53 +0100
commitff37b97e4bbf642efbd830111fe3dbd45ae56dad (patch)
tree4801672459a16af5caf88e9f92fee9468ac94051 /python/fatcat_tools
parent171c4ae9f48984438e59bf521b3ec9dd78ce6d3d (diff)
downloadfatcat-ff37b97e4bbf642efbd830111fe3dbd45ae56dad.tar.gz
fatcat-ff37b97e4bbf642efbd830111fe3dbd45ae56dad.zip
datacite: include month in extra
> include release_month as a top-level extra field [...] to auto-populate the schema field from that
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index f9d1b49a..a673f00b 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -603,6 +603,8 @@ 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