Skip to content

Commit

Permalink
Elsevier parser: orcids parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Jul 9, 2024
1 parent 7bcdcf5 commit 366c21f
Show file tree
Hide file tree
Showing 2 changed files with 1,588 additions and 797 deletions.
3 changes: 3 additions & 0 deletions dags/elsevier/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def _get_authors(self, article):
def _get_authors_details(self, author_group):
authors = []
for author in author_group.findall("author"):
orcid = author.get("orcid")
surname = extract_text(
article=author, path="surname", field_name="surname", dois=self.dois
)
Expand All @@ -146,6 +147,8 @@ def _get_authors_details(self, author_group):
auth_dict["affiliations"] = affiliations
if emails:
auth_dict["email"] = emails
if orcid:
auth_dict["orcid"] = orcid
authors.append(auth_dict)

if not authors:
Expand Down
Loading

0 comments on commit 366c21f

Please sign in to comment.