aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/jstor.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/importers/jstor.py')
-rw-r--r--python/fatcat_tools/importers/jstor.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/jstor.py b/python/fatcat_tools/importers/jstor.py
index c846cbde..6e6ec6a0 100644
--- a/python/fatcat_tools/importers/jstor.py
+++ b/python/fatcat_tools/importers/jstor.py
@@ -290,6 +290,14 @@ class JstorImporter(EntityImporter):
# but do update if only DOI was set
existing.ext_ids.jstor = re.ext_ids.jstor
existing.extra['jstor'] = re.extra['jstor']
+ # better release_type detection, and some other fields
+ # TODO: don't do this over-writing in the future? assuming here
+ # this is a one-time batch import over/extending bootstrap crossref
+ # metadata
+ existing.release_type = re.release_type
+ existing.publisher = re.publisher
+ existing.contribs = re.contribs
+ existing.language = re.language
self.api.update_release(self.get_editgroup_id(), existing.ident, existing)
self.counts['update'] += 1
return False