Bug 29897: Don't display empty li

It's ugly to move the li to the include file, but it's the easiest for
now...

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-08-02 06:54:59 +02:00 committed by Tomas Cohen Arazi
parent 443884ef74
commit 141223b0fd
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 22 additions and 16 deletions

View file

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

View file

@ -186,9 +186,7 @@
<span>Identifiers</span>
<ul>
[% FOR identifier IN author_identifiers %]
<li>
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
</li>
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
[% END %]
</ul>
</div>

View file

@ -965,9 +965,7 @@
<span class="author_name"><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% author.authid | uri %]">[% author.name | html %]</a></span>
<ul>
[% FOR identifier IN author.identifiers %]
<li>
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
</li>
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
[% END %]
</ul>
</div>