aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 12:35:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 12:35:28 -0700
commite637fdd7d590c06d0d9ac1fac313a56693e530e5 (patch)
tree6b135620fc52b3342fb259c2d5f257e1459762f6 /python
parentba54b7522161f9b19727552cee1ad23e8d41d346 (diff)
downloadfatcat-e637fdd7d590c06d0d9ac1fac313a56693e530e5.tar.gz
fatcat-e637fdd7d590c06d0d9ac1fac313a56693e530e5.zip
more aggressive JSTOR over-writing
Diffstat (limited to 'python')
-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