From 322eebeaaae0b9418b950a8cf65692ec93e477a0 Mon Sep 17 00:00:00 2001 From: Bernard Scaife Date: Wed, 2 Jul 2025 13:26:28 +0000 Subject: [PATCH] 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 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. Ensure that one of the fields is not linkable to an authority record and leave it unlinked. 2. Note 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. 5. The links for any unlinked authority should now point to ti,phr - eg /cgi-bin/koha/catalogue/search.pl?q=ti,phr:%22Uniform%20Bernard%22 instead of au 6. Click that link and ensure it finds at least one record (the one you started with) Signed-off-by: Bernard Scaife Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 1023867e19e..d734466bed4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -576,7 +576,7 @@ - /cgi-bin/koha/catalogue/search.pl?q=au:" + /cgi-bin/koha/catalogue/search.pl?q=ti,phr:" " diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 6ad76dbf9f5..732a4431db0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -678,7 +678,7 @@ - /cgi-bin/koha/opac-search.pl?q=au:" + /cgi-bin/koha/opac-search.pl?q=ti,phr:" " -- 2.51.0