diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 10:15:18 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 10:15:18 -0800 |
commit | 4be11adc4ac5370062cfb0e9cddfe7b3c50d70a7 (patch) | |
tree | a6d96329c83f85963c07e59cc4d0b31608c8ed18 /python/fatcat_tools/harvest | |
parent | 75a0af495472bfddb15047d3ad15810d47aceb9a (diff) | |
download | fatcat-4be11adc4ac5370062cfb0e9cddfe7b3c50d70a7.tar.gz fatcat-4be11adc4ac5370062cfb0e9cddfe7b3c50d70a7.zip |
fix datacite DOI extraction
Diffstat (limited to 'python/fatcat_tools/harvest')
-rw-r--r-- | python/fatcat_tools/harvest/doi_registrars.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/harvest/doi_registrars.py b/python/fatcat_tools/harvest/doi_registrars.py index 10492c17..3201c180 100644 --- a/python/fatcat_tools/harvest/doi_registrars.py +++ b/python/fatcat_tools/harvest/doi_registrars.py @@ -182,7 +182,7 @@ class HarvestDataciteWorker(HarvestCrossrefWorker): return resp['meta']['total'] def extract_key(self, obj): - return obj['doi'].encode('utf-8') + return obj['attributes']['doi'].encode('utf-8') def update_params(self, params, resp): params['page[number]'] = resp['meta']['page'] + 1 |