Bug 16677

Summary: Use abbr for authorities linked headings
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: TemplatesAssignee: Fridolin Somers <fridolin.somers>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: f.demians, julian.maurice, kyle
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16677 - Use abbr for authorities linked headings
Bug 16677 - Use abbr for authorities linked headings
Bug 16677 - Use abbr for authorities linked headings

Description Fridolin Somers 2016-06-07 07:26:23 UTC
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.
Comment 1 Fridolin Somers 2016-06-07 10:43:53 UTC Comment hidden (obsolete)
Comment 2 Frédéric Demians 2016-06-15 16:03:00 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall 2016-06-24 18:27:04 UTC
Created attachment 52861 [details] [review]
Bug 16677 - Use abbr for authorities linked headings

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.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Kyle M Hall 2016-07-08 14:28:19 UTC
Pushed to master for 16.11, thanks Frido!
Comment 5 Frédéric Demians 2016-08-01 13:34:53 UTC
Pushed in 16.05. Will be in 16.05.02.
Comment 6 Julian Maurice 2016-08-16 15:37:55 UTC
Patches pushed to 3.22.x, will be in 3.22.10