Skip to content

Commit

Permalink
use fulltext corpus for DOI lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
iaross committed Aug 9, 2021
1 parent 405448f commit d020995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/api/cosmos/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_docid_from_aske_id(aske_id):
return ''

def get_docid_from_doi(doi):
resp = requests.get(f"https://xdd.wisc.edu/api/articles?doi={doi}")
resp = requests.get(f"https://xdd.wisc.edu/api/articles?doi={doi}&corpus=fulltext")
if resp.status_code == 200:
data = resp.json()
if 'success' in data:
Expand Down

0 comments on commit d020995

Please sign in to comment.