aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/pubmed.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-21 17:33:58 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 17:33:58 -0700
commit76d9a8437a895860ca22f771ded73b5a18ba31e5 (patch)
treef3d3fad1764ad6e4bc8b27a33541e78f3e0c8c70 /python/fatcat_tools/importers/pubmed.py
parent818a891a5e306e84e8165dec28cc4a5961180e8c (diff)
downloadfatcat-76d9a8437a895860ca22f771ded73b5a18ba31e5.tar.gz
fatcat-76d9a8437a895860ca22f771ded73b5a18ba31e5.zip
importers: create containers by default
Diffstat (limited to 'python/fatcat_tools/importers/pubmed.py')
-rw-r--r--python/fatcat_tools/importers/pubmed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py
index 7c4e8311..055462b6 100644
--- a/python/fatcat_tools/importers/pubmed.py
+++ b/python/fatcat_tools/importers/pubmed.py
@@ -136,7 +136,7 @@ class PubmedImporter(EntityImporter):
else:
print("Not using external ID map")
- self.create_containers = kwargs.get('create_containers')
+ self.create_containers = kwargs.get('create_containers', True)
self.read_issn_map_file(issn_map_file)
def lookup_ext_ids(self, pmid):
@@ -294,6 +294,7 @@ class PubmedImporter(EntityImporter):
extra=(container_extra or None))
ce_edit = self.create_container(ce)
container_id = ce_edit.ident
+ self._issnl_id_map[issnl] = container_id
ji = journal.JournalIssue
volume = None