Bugzilla – Attachment 52441 Details for
Bug 16677
Use abbr for authorities linked headings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16677 - Use abbr for authorities linked headings
Bug-16677---Use-abbr-for-authorities-linked-headin.patch (text/plain), 3.93 KB, created by
Frédéric Demians
on 2016-06-15 16:03:00 UTC
(
hide
)
Description:
Bug 16677 - Use abbr for authorities linked headings
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2016-06-15 16:03:00 UTC
Size:
3.93 KB
patch
obsolete
>From bacea93c7d3b19b18c4139d2f0353d9ff088c0a1 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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=UTF-8 >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 <f.demians@tamil.fr> > Works as described. Translatable. >--- > .../intranet-tmpl/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 a009c7d..c635b07 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' %] >- <span class="BT">BT: [% heading | html %]</span> >+ <span class="BT"><abbr title="Broader Term">BT</abbr>: [% heading | html %]</span> > [% CASE 'narrower' %] >- <span class="NT">NT: [% heading | html %]</span> >+ <span class="NT"><abbr title="Narrower Term">NT</abbr>: [% heading | html %]</span> > [% CASE 'seefrom' %] >- <span class="UF">UF: [% heading | html %]</span> >+ <span class="UF"><abbr title="Used For">UF</abbr>: [% heading | html %]</span> > [% CASE 'seealso' %] >- <span class="RT">RT: [% heading | html %]</span> >+ <span class="RT"><abbr title="Related Term">RT</abbr>: [% heading | html %]</span> > [% END %] > [% ELSE %] > <span class="heading"> >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 043556d..536d500 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' %] >- <span class="BT">BT: [% heading | html %]</span> >+ <span class="BT"><abbr title="Broader Term">BT</abbr>: [% heading | html %]</span> > [% CASE 'narrower' %] >- <span class="NT">NT: [% heading | html %]</span> >+ <span class="NT"><abbr title="Narrower Term">NT</abbr>: [% heading | html %]</span> > [% CASE 'seefrom' %] >- <span class="UF">UF: [% heading | html %]</span> >+ <span class="UF"><abbr title="Used For">UF</abbr>: [% heading | html %]</span> > [% CASE 'seealso' %] >- <span class="RT">RT: [% heading | html %]</span> >+ <span class="RT"><abbr title="Related Term">RT</abbr>: [% heading | html %]</span> > [% END %] > [% ELSE %] > <span class="heading"> >-- >2.8.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16677
:
52119
|
52441
|
52861