SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit f9fd2b3a authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Solidify citations harvesting service

parent a7b991a8
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,10 @@ def update_citedby(doi_label):
if link_el.find(prefix + 'contributors') is not None:
for author in link_el.find(prefix + 'contributors').iter(prefix + 'contributor'):
if author.get('sequence') == 'first':
citation['first_author_given_name'] = author.find(prefix + 'given_name').text
if author.find(prefix + 'given_name'):
citation['first_author_given_name'] = author.find(prefix + 'given_name').text
else:
citation['first_author_given_name'] = ''
citation['first_author_surname'] = author.find(prefix + 'surname').text
else:
multiauthors = True
......
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