From 02cd0fc0006a0072df07e7e7726256c689b3c88e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 May 2022 10:59:23 +0200 Subject: [PATCH] Bug 29897: Don't use $6 for linkage but build the link instead See comment 26: $6 is a very specialized field that will never contain a URL. Linkage here means 'linking MARC fields within the record'. For example it is used to link an original script tag with the corresponding tag in transliteration. See: https://www.loc.gov/marc/authority/ecadcntf.html Sponsored-by: Orex Digital --- .../bootstrap/en/modules/opac-auth-detail.tt | 23 +++++++++++-------- .../bootstrap/en/modules/opac-detail.tt | 23 +++++++++++-------- 2 files changed, 26 insertions(+), 20 deletions(-) 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 fe0d2e7120a..db14deb23ea 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 @@ -184,16 +184,19 @@ [% FOR identifier IN author_identifiers %]
  • [% SWITCH identifier.source.lower %] - [% CASE 'orcid' %]ORCID: - [% CASE 'scopus' %]ScopusID: - [% CASE 'loop' %]loop: - [% CASE 'rid' %]Publons: - [% CASE %][% identifier.source | html %]: - [% END %] - [% IF identifier.linkage %] - [% identifier.number | html %] - [% ELSE %] - [% identifier.number | html %] + [% 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 %][% identifier.source | html %]: [% identifier.number | html %] [% END %]
  • [% 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 add779d6915..086c106e7ee 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -940,16 +940,19 @@ [% FOR identifier IN author.identifiers %]
  • [% SWITCH identifier.source.lower %] - [% CASE 'orcid' %]ORCID: - [% CASE 'scopus' %]ScopusID: - [% CASE 'loop' %]loop: - [% CASE 'rid' %]Publons: - [% CASE %][% identifier.source | html %]: - [% END %] - [% IF identifier.linkage %] - [% identifier.number | html %] - [% ELSE %] - [% identifier.number | html %] + [% 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 %][% identifier.source | html %]: [% identifier.number | html %] [% END %]
  • [% END %] -- 2.25.1