From b9e47f135e036232b00cd3b24bb25ea0c6a9291e Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 7 Jun 2016 09:27:15 +0200 Subject: [PATCH] Bug 16677 - Use abbr for authorities linked headings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In authorities search results, UNIMARC flavour, linked headings are displayed with a link type : BT, NT, UF, RT. This patch adds a abbr tag around those acronyms to know there meaning : BT = Broader Term NT = Narrower Term UF = Used For RT = Related Term Acronyms are used because there can be a lot of linked headings, using abbr will display the complete text on mouse over. Test plan : - Use UNIMARC database - Create an authority with : 250 $a Heading250a 450 $a Heading450a 550 $5 a $a Heading550a 550 $5 g $a Heading550g 550 $5 h $a Heading550h - Save an index zebraqueue - Go to intranet authorities search - Search for "Heading250a" - You see : Heading250a Heading250a UF: Heading450a RT: Heading550a ; BT: Heading550g ; NT: Heading550h - Move your mouse over the acronyms, you see a tip with the complete text - Same with opac authorities search Signed-off-by: Frédéric Demians Works as described. Translatable. Signed-off-by: Kyle M Hall Signed-off-by: Kyle M Hall --- .../prog/en/includes/authorities-search-results.inc | 8 ++++---- .../bootstrap/en/includes/authorities-search-results.inc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc index a009c7d5be..c635b07afd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc @@ -12,13 +12,13 @@ [% IF marcflavour == 'UNIMARC' %] [% SWITCH type %] [% CASE 'broader' %] - BT: [% heading | html %] + BT: [% heading | html %] [% CASE 'narrower' %] - NT: [% heading | html %] + NT: [% heading | html %] [% CASE 'seefrom' %] - UF: [% heading | html %] + UF: [% heading | html %] [% CASE 'seealso' %] - RT: [% heading | html %] + RT: [% heading | html %] [% END %] [% ELSE %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc index 043556dbef..536d500497 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/authorities-search-results.inc @@ -11,13 +11,13 @@ [% IF marcflavour == 'UNIMARC' %] [% SWITCH type %] [% CASE 'broader' %] - BT: [% heading | html %] + BT: [% heading | html %] [% CASE 'narrower' %] - NT: [% heading | html %] + NT: [% heading | html %] [% CASE 'seefrom' %] - UF: [% heading | html %] + UF: [% heading | html %] [% CASE 'seealso' %] - RT: [% heading | html %] + RT: [% heading | html %] [% END %] [% ELSE %] -- 2.39.5