From e637fdd7d590c06d0d9ac1fac313a56693e530e5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 May 2019 12:35:28 -0700 Subject: more aggressive JSTOR over-writing --- python/fatcat_tools/importers/jstor.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') 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 -- cgit v1.2.3