summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-29 15:36:55 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-29 15:36:55 -0800
commit6326f7e7941e62e9b374ddfc0447c98436242f5c (patch)
treed81f6e55e5085021f5a0737bd66527b2c804427e /python/fatcat_tools
parent6dde672e1ac27737625416816f2d9134a80fd144 (diff)
downloadfatcat-6326f7e7941e62e9b374ddfc0447c98436242f5c.tar.gz
fatcat-6326f7e7941e62e9b374ddfc0447c98436242f5c.zip
pass through kwargs (fixes bezerk imports)
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/crossref.py3
-rw-r--r--python/fatcat_tools/importers/grobid_metadata.py3
-rw-r--r--python/fatcat_tools/importers/journal_metadata.py3
-rw-r--r--python/fatcat_tools/importers/matched.py3
-rw-r--r--python/fatcat_tools/importers/orcid.py3
5 files changed, 10 insertions, 5 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index c81349f3..45a92e98 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -75,7 +75,8 @@ class CrossrefImporter(EntityImporter):
super().__init__(api,
issn_map_file=issn_map_file,
editgroup_description=eg_desc,
- editgroup_extra=eg_extra)
+ editgroup_extra=eg_extra,
+ **kwargs)
self.create_containers = kwargs.get('create_containers')
extid_map_file = kwargs.get('extid_map_file')
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py
index 7bd7c00e..bd22a6e0 100644
--- a/python/fatcat_tools/importers/grobid_metadata.py
+++ b/python/fatcat_tools/importers/grobid_metadata.py
@@ -30,7 +30,8 @@ class GrobidMetadataImporter(EntityImporter):
eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.GrobidMetadataImporter')
super().__init__(api,
editgroup_description=eg_desc,
- editgroup_extra=eg_extra)
+ editgroup_extra=eg_extra,
+ **kwargs)
self.default_link_rel = kwargs.get("default_link_rel", "web")
self.longtail_oa = kwargs.get("longtail_oa", False)
diff --git a/python/fatcat_tools/importers/journal_metadata.py b/python/fatcat_tools/importers/journal_metadata.py
index be62d63a..57e5ed73 100644
--- a/python/fatcat_tools/importers/journal_metadata.py
+++ b/python/fatcat_tools/importers/journal_metadata.py
@@ -41,7 +41,8 @@ class JournalMetadataImporter(EntityImporter):
eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.JournalMetadataImporter')
super().__init__(api,
editgroup_description=eg_desc,
- editgroup_extra=eg_extra)
+ editgroup_extra=eg_extra,
+ **kwargs)
def want(self, raw_record):
if raw_record.get('issnl') and raw_record.get('name'):
diff --git a/python/fatcat_tools/importers/matched.py b/python/fatcat_tools/importers/matched.py
index df6ba108..cc814e3a 100644
--- a/python/fatcat_tools/importers/matched.py
+++ b/python/fatcat_tools/importers/matched.py
@@ -39,7 +39,8 @@ class MatchedImporter(EntityImporter):
eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.MatchedImporter')
super().__init__(api,
editgroup_description=eg_desc,
- editgroup_extra=eg_extra)
+ editgroup_extra=eg_extra,
+ **kwargs)
self.default_link_rel = kwargs.get("default_link_rel", "web")
self.default_mime = kwargs.get("default_mime", None)
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py
index a055801b..d54b5122 100644
--- a/python/fatcat_tools/importers/orcid.py
+++ b/python/fatcat_tools/importers/orcid.py
@@ -30,7 +30,8 @@ class OrcidImporter(EntityImporter):
eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.OrcidImporter')
super().__init__(api,
editgroup_description=eg_desc,
- editgroup_extra=eg_extra)
+ editgroup_extra=eg_extra,
+ **kwargs)
def want(self, raw_record):
return True