Skip to content

Commit

Permalink
oup: fixes bug for orcid parsing
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Aug 30, 2024
1 parent c195c61 commit 2137343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dags/oup/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _get_authors(self, article):
)
authors = []
for contribution in contributions:
orcid = get_text_value(contribution.find("contrib-id"))
orcid = get_text_value(contribution.find("contrib-id[@contrib-id-type='orcid']"))
surname = get_text_value(contribution.find("name/surname"))
given_names = get_text_value(contribution.find("name/given-names"))
email = get_text_value(contribution.find("email"))
Expand Down
1 change: 1 addition & 0 deletions tests/units/oup/data/oup_orcid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</title-group>
<contrib-group>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orc">https://orcid.org/0000-0002-7719-4155</contrib-id>
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-7719-4160</contrib-id>
<name>
<surname>Hong</surname>
Expand Down

0 comments on commit 2137343

Please sign in to comment.