From 141223b0fd951038ddf4efebbcb7f3708cc15200 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Aug 2022 06:54:59 +0200 Subject: [PATCH] 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 Signed-off-by: Tomas Cohen Arazi --- .../en/includes/authority-identifiers.inc | 30 ++++++++++++------- .../bootstrap/en/modules/opac-auth-detail.tt | 4 +-- .../bootstrap/en/modules/opac-detail.tt | 4 +-- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc index 55077ddbb2..85d68c09be 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc @@ -1,17 +1,27 @@ [% SWITCH identifier.source.lower %] [% CASE 'orcid' %] - ORCID: - [% identifier.number | html %] +
  • + ORCID: + [% identifier.number | html %] +
  • [% CASE 'scopus' %] - ScopusID: - [% identifier.number | html %] +
  • + ScopusID: + [% identifier.number | html %] +
  • [% CASE 'loop' %] - loop: - [% identifier.number | html %] +
  • + loop: + [% identifier.number | html %] +
  • [% CASE 'rid' %] - Publons: - [% identifier.number | html %] +
  • + Publons: + [% identifier.number | html %] +
  • [% CASE 'viaf' %] - VIAF: - [% identifier.number | html %] +
  • + VIAF: + [% identifier.number | html %] +
  • [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt index 36a53eeda2..a84b103784 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt @@ -186,9 +186,7 @@ Identifiers
      [% FOR identifier IN author_identifiers %] -
    • - [% PROCESS "authority-identifiers.inc" identifier => identifier %] -
    • + [% PROCESS "authority-identifiers.inc" identifier => identifier %] [% END %]
    diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 9e41a2be1a..b3607465d8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -965,9 +965,7 @@ [% author.name | html %]
      [% FOR identifier IN author.identifiers %] -
    • - [% PROCESS "authority-identifiers.inc" identifier => identifier %] -
    • + [% PROCESS "authority-identifiers.inc" identifier => identifier %] [% END %]