Skip to content

Commit

Permalink
added key ______E to map for SchemaAuthorShared and added correspondi…
Browse files Browse the repository at this point in the history
…ng method _from_email() refs PR #294
  • Loading branch information
jspaaks committed Jul 11, 2023
1 parent 0eba2f5 commit 0c11be3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cffconvert/behavior_shared/schemaorg_author_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(self, author):
'____AOE': self._from_affiliation_and_orcid_and_email,
'____A_E': self._from_affiliation_and_email,
'_____OE': self._from_orcid_and_email,
'______E': self._from_email,
'GFANAO_': self._from_given_and_last_and_alias_and_affiliation_and_orcid,
'GFANA__': self._from_given_and_last_and_alias_and_affiliation,
'GFAN_O_': self._from_given_and_last_and_alias_and_orcid,
Expand Down Expand Up @@ -238,6 +239,12 @@ def _from_alias_and_orcid_and_email(self):
'email': self._author.get('email')
}

def _from_email(self):
return {
'@type': 'Person',
'email': self._author.get('email')
}

def _from_given_and_email(self):
return {
'@type': 'Person',
Expand Down

0 comments on commit 0c11be3

Please sign in to comment.