diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 14:59:38 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-08 14:59:38 -0800 |
commit | 8c930ded07b6a668bc1721ef98312d9259c06b59 (patch) | |
tree | ce31708556d17d7165a64f15d0dac78d881e80bc /python/fatcat_tools/importers/orcid.py | |
parent | d1862ea4a6dcb781713ffc54bdc4bd7d7cdbdb9e (diff) | |
download | fatcat-8c930ded07b6a668bc1721ef98312d9259c06b59.tar.gz fatcat-8c930ded07b6a668bc1721ef98312d9259c06b59.zip |
importers and tests all use new api-passing
Diffstat (limited to 'python/fatcat_tools/importers/orcid.py')
-rw-r--r-- | python/fatcat_tools/importers/orcid.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py index fc4562d0..0aa4ab00 100644 --- a/python/fatcat_tools/importers/orcid.py +++ b/python/fatcat_tools/importers/orcid.py @@ -22,6 +22,16 @@ def value_or_none(e): class OrcidImporter(FatcatImporter): + def __init__(self, api, **kwargs): + + eg_desc = kwargs.get('editgroup_description', + "Automated import of ORCID metadata, from official bulk releases.") + eg_extra = kwargs.get('editgroup_extra', dict()) + eg_extra['agent'] = eg_extra.get('agent', 'fatcat_tools.OrcidImporter') + super().__init__(api, + editgroup_description=eg_desc, + editgroup_extra=eg_extra) + def parse_orcid_dict(self, obj): """ obj is a python dict (parsed from json). |