diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 12:35:28 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 12:35:28 -0700 |
commit | e637fdd7d590c06d0d9ac1fac313a56693e530e5 (patch) | |
tree | 6b135620fc52b3342fb259c2d5f257e1459762f6 /python/fatcat_tools/importers | |
parent | ba54b7522161f9b19727552cee1ad23e8d41d346 (diff) | |
download | fatcat-e637fdd7d590c06d0d9ac1fac313a56693e530e5.tar.gz fatcat-e637fdd7d590c06d0d9ac1fac313a56693e530e5.zip |
more aggressive JSTOR over-writing
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/jstor.py | 8 |
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 |