Bugzilla – Attachment 184151 Details for
Bug 34025
Uniform titles (130 / 240 /730) in biblio to link to authority file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[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
Bug-34025-Changing-default-link-search-from-au-to-.patch (text/plain), 3.48 KB, created by
Bernard
on 2025-07-16 13:52:21 UTC
(
hide
)
Description:
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
Filename:
MIME Type:
Creator:
Bernard
Created:
2025-07-16 13:52:21 UTC
Size:
3.48 KB
patch
obsolete
>From a1030777bed2163e04ccff67ab2f42e3ecfdde45 Mon Sep 17 00:00:00 2001 >From: Bernard Scaife <bernard.scaife@openfifth.co.uk> >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 <bernard.scaife@openfifth.co.uk> >--- > .../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 1023867e19..d734466bed 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 @@ > </xsl:when> > <xsl:otherwise> > <xsl:attribute name="href"> >- <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=au:"</xsl:text> >+ <xsl:text>/cgi-bin/koha/catalogue/search.pl?q=ti,phr:"</xsl:text> > <xsl:value-of > select="str:encode-uri(marc:subfield[@code='a'], true())" /> > <xsl:text>"</xsl:text> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index fe6752f223..bdc730f9d1 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 @@ > </xsl:when> > <xsl:otherwise> > <xsl:attribute name="href"> >- <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:"</xsl:text> >+ <xsl:text>/cgi-bin/koha/opac-search.pl?q=ti,phr:"</xsl:text> > <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/> > <xsl:text>"</xsl:text> > <xsl:if test="$AuthorLinkSortBy!='default'"> >-- >2.39.5
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 34025
:
152389
|
180475
|
180681
|
183702
|
183703
|
183704
| 184151