SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3bbbfdbd authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Crossref fix1.

parent 9dc06a3c
No related branches found
No related tags found
No related merge requests found
...@@ -742,7 +742,11 @@ def harvest_citedby_links(request, doi_label): ...@@ -742,7 +742,11 @@ def harvest_citedby_links(request, doi_label):
for link in response_deserialized.iter(prefix + 'forward_link'): for link in response_deserialized.iter(prefix + 'forward_link'):
citation = {} citation = {}
# Cited in Journal, Book, or whatever you want to be cited in. # Cited in Journal, Book, or whatever you want to be cited in.
link_el = link[0] if link.find(prefix + 'journal_cite'):
link_el = link.find(prefix + 'journal_cite')
else:
# Not a peer-reviewed citation.
continue
# The only required field in Crossref: doi. # The only required field in Crossref: doi.
citation['doi'] = link_el.find(prefix + 'doi').text citation['doi'] = link_el.find(prefix + 'doi').text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment