From 0c11be31eb5967fdd0bf3c41709496005fafa240 Mon Sep 17 00:00:00 2001 From: "Jurriaan H. Spaaks" Date: Tue, 11 Jul 2023 15:27:44 +0200 Subject: [PATCH] added key ______E to map for SchemaAuthorShared and added corresponding method _from_email() refs PR #294 --- cffconvert/behavior_shared/schemaorg_author_shared.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cffconvert/behavior_shared/schemaorg_author_shared.py b/cffconvert/behavior_shared/schemaorg_author_shared.py index e46dee62..d1c7a1b3 100644 --- a/cffconvert/behavior_shared/schemaorg_author_shared.py +++ b/cffconvert/behavior_shared/schemaorg_author_shared.py @@ -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, @@ -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',