Bug 34025

Summary: Uniform titles (130 / 240 /730) in biblio to link to authority file
Product: Koha Reporter: Bernard <bernard.scaife>
Component: OPACAssignee: Janusz Kaczmarek <januszop>
Status: Passed QA --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: ashley.day, januszop, martin.renvoize, r.delahunty, roman.dolny, verolencinas
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19558
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25156
GIT URL: Change sponsored?: ---
Patch complexity: Small patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: code to be cloned
Bug 34025: Make more controlled fields linkable (130, 240, 730 + 7XX $a + $t) [XSLT]
Bug 34025: Make more controlled fields linkable (130, 240, 730 + 7XX $a + $t) [XSLT]
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content

Description Bernard 2023-06-15 15:57:46 UTC
Created attachment 152389 [details]
code to be cloned

Please could we add the part of the code that appears in the author (7XX) stanza which relates to the $9 link to its authority file to the Uniform title fields stanza (130/730) of the same file - MARC21slim2OPACDetail.xsl 

At present, the customer cannot link to their authority file in this way, even if they configure it in the cataloguing framework.
Comment 1 Martin Renvoize (ashimema) 2023-09-28 09:19:13 UTC
Lets work on this together when you get a moment Bernard, I'll help get a patch submitted but will need your input on the XSLT (and probably zebra/elastic config).. I'm sure between us we can get this submitted up.
Comment 2 Janusz Kaczmarek 2025-04-03 09:30:19 UTC
Created attachment 180475 [details] [review]
Bug 34025: Make more controlled fields linkable (130, 240, 730 + 7XX $a + $t) [XSLT]

MARC21 contain linking fields (130, 240, 730 + 7XX $a + $t) that currently
currently are not 'clickable'. This patch adds the links, similarly to the links
created for contributors', both in OPAC and staff interface.

Test plan:
==========
1. Add some 130, 240, 730 + 7XX $a + $t fields to a record. Note that 730
   and 7XX $a + $t fields have to have 2nd indicator set to 2.
   You can link the fields to authority records.
2. Not that the information displayed from these fields is not
   'clickable' neither in OPAC, nor in the staff interface.
3. Apply the patch ; restart all.
4. You should be able to see and use the links now. If the fields are
   linked to authotiry record and UseAuthoritiesForTracings
   systempreference is set, the search will be performed with
   authid identifier. There should be also a magnifying glass icon
   with a link to the authority record.
Comment 3 Roman Dolny 2025-04-04 20:41:01 UTC
Created attachment 180681 [details] [review]
Bug 34025: Make more controlled fields linkable (130, 240, 730 + 7XX $a + $t) [XSLT]

MARC21 contain linking fields (130, 240, 730 + 7XX $a + $t) that currently
currently are not 'clickable'. This patch adds the links, similarly to the links
created for contributors', both in OPAC and staff interface.

Test plan:
==========
1. Add some 130, 240, 730 + 7XX $a + $t fields to a record. Note that 730
   and 7XX $a + $t fields have to have 2nd indicator set to 2.
   You can link the fields to authority records.
2. Not that the information displayed from these fields is not
   'clickable' neither in OPAC, nor in the staff interface.
3. Apply the patch ; restart all.
4. You should be able to see and use the links now. If the fields are
   linked to authotiry record and UseAuthoritiesForTracings
   systempreference is set, the search will be performed with
   authid identifier. There should be also a magnifying glass icon
   with a link to the authority record.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 4 Bernard 2025-07-02 13:37:28 UTC
Created attachment 183702 [details] [review]
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content
Comment 5 Janusz Kaczmarek 2025-07-02 13:49:35 UTC
Created attachment 183703 [details] [review]
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content
Comment 6 Janusz Kaczmarek 2025-07-02 13:51:35 UTC
Created attachment 183704 [details] [review]
Bug 34025: Changing default link search from au to ti,phr for X30 fields as they are are title type ones. These apply if there is no authorised term linked to for the content

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Comment 7 Bernard 2025-07-03 16:11:36 UTC
Works as described