Bug 29897: Move the identifier list to an include file

Sponsored-by: Orex Digital

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-02 11:23:05 +02:00 committed by Tomas Cohen Arazi
parent 035d0eb167
commit c57b5f5408
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 20 additions and 41 deletions

View file

@ -0,0 +1,18 @@
[% SWITCH identifier.source.lower %]
[% CASE 'orcid' %]
<span>ORCID: </span>
<a href="https://orcid.org/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'scopus' %]
<span>ScopusID: </span>
<a href="https://www.scopus.com/authid/detail.uri?authorId=[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'loop' %]
<span>loop: </span>
<a href="https://loop.frontiersin.org/people/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'rid' %]
<span>Publons: </span>
<a href="https://publons.com/researcher/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'viaf' %]
<span>VIAF: </span>
<a href="https://viaf.org/viaf/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE %][% identifier.source | html %]: [% identifier.number | html %]
[% END %]

View file

@ -187,24 +187,7 @@
<ul>
[% FOR identifier IN author_identifiers %]
<li>
[% SWITCH identifier.source.lower %]
[% CASE 'orcid' %]
ORCID:
<a href="https://orcid.org/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'scopus' %]
ScopusID:
<a href="https://www.scopus.com/authid/detail.uri?authorId=[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'loop' %]
loop:
<a href="https://loop.frontiersin.org/people/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'rid' %]
Publons:
<a href="https://publons.com/researcher/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'viaf' %]
VIAF:
<a href="https://viaf.org/viaf/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE %][% identifier.source | html %]: [% identifier.number | html %]
[% END %]
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
</li>
[% END %]
</ul>

View file

@ -966,29 +966,7 @@
<ul>
[% FOR identifier IN author.identifiers %]
<li>
[% SWITCH identifier.source.lower %]
[% CASE 'orcid' %]
ORCID:
<a href="https://orcid.org/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'scopus' %]
ScopusID:
<a href="https://www.scopus.com/authid/detail.uri?authorId=[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'loop' %]
loop:
<a href="https://loop.frontiersin.org/people/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'rid' %]
Publons:
<a href="https://publons.com/researcher/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE 'viaf' %]
VIAF:
<a href="https://viaf.org/viaf/[% identifier.number | url %]">[% identifier.number | html %]</a>
[% CASE %][% identifier.source | html %]: [% identifier.number | html %]
[% END %]
[% IF identifier.linkage %]
<a href="[% identifier.linkage | url %]">[% identifier.number | html %]</a>
[% ELSE %]
[% identifier.number | html %]
[% END %]
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
</li>
[% END %]
</ul>