From c57b5f5408a0ba74e1ee0ad9d90c5318ab09c467 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 May 2022 11:23:05 +0200 Subject: [PATCH] Bug 29897: Move the identifier list to an include file Sponsored-by: Orex Digital Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/includes/authority-identifiers.inc | 18 ++++++++++++++ .../bootstrap/en/modules/opac-auth-detail.tt | 19 +-------------- .../bootstrap/en/modules/opac-detail.tt | 24 +------------------ 3 files changed, 20 insertions(+), 41 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc new file mode 100644 index 0000000000..726e736c50 --- /dev/null +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-identifiers.inc @@ -0,0 +1,18 @@ +[% SWITCH identifier.source.lower %] +[% CASE 'orcid' %] + ORCID: + [% identifier.number | html %] +[% CASE 'scopus' %] + ScopusID: + [% identifier.number | html %] +[% CASE 'loop' %] + loop: + [% identifier.number | html %] +[% CASE 'rid' %] + Publons: + [% identifier.number | html %] +[% CASE 'viaf' %] + VIAF: + [% identifier.number | html %] +[% CASE %][% identifier.source | html %]: [% 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 6d38f7ce3d..36a53eeda2 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 @@ -187,24 +187,7 @@ 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 5d65872147..8fd8edd6a3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -966,29 +966,7 @@ -- 2.39.5