Bugzilla – Attachment 161167 Details for
Bug 32695
Search string for various 7xx linking fields is incorrectly formed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32695: Use title (subfield t) only for 'Other editions' search links
Bug-32695-Use-title-subfield-t-only-for-Other-edit.patch (text/plain), 2.87 KB, created by
Biblibre Sandboxes
on 2024-01-19 07:41:39 UTC
(
hide
)
Description:
Bug 32695: Use title (subfield t) only for 'Other editions' search links
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2024-01-19 07:41:39 UTC
Size:
2.87 KB
patch
obsolete
>From c14df65ad9d8efedd75caf4d96857c3338d25bcb Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 26 May 2023 19:00:13 +0000 >Subject: [PATCH] Bug 32695: Use title (subfield t) only for 'Other editions' > search links > >Currently the code does a title phrase search, but combines the title field >with the Main Entry (author) field. > >This patch simply limits the search to the title to ensure links work > >To test: >1 - Ensure systme preference 'UseControlNumber' is set to don't >2 - Edit Default MARC framework in administration->Marc frameworks >3 - Make 775 subfields a & t visible in editor >4 - Edit a record to add a field 775 with subfields a & t that match another title/author in your system >5 - Save the record and view the details page >6 - Click the other editions link - no results >7 - Apply patch, restart_all >8 - Reload details and confirm the link works > >Signed-off-by: Sam Lau <samalau@gmail.com> >Signed-off-by: Sabrina Kiehl <kiehl@mpis.mpg.de> >--- > .../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 48439f3a24..2c0898235a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1323,7 +1323,7 @@ > <xsl:for-each select="marc:datafield[@tag=775]"> > <xsl:variable name="f775"> > <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >+ <xsl:with-param name="codes">t</xsl:with-param> > </xsl:call-template></xsl:with-param></xsl:call-template> > </xsl:variable> > <xsl:if test="marc:subfield[@code='i']"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 3fe783b615..98d3e4f9d0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1534,7 +1534,7 @@ > <xsl:for-each select="marc:datafield[@tag=775]"> > <xsl:variable name="f775"> > <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >+ <xsl:with-param name="codes">t</xsl:with-param> > </xsl:call-template></xsl:with-param></xsl:call-template> > </xsl:variable> > <xsl:if test="marc:subfield[@code='i']"> >-- >2.30.2
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 32695
:
151770
|
151860
|
151884
|
152239
|
152240
|
161167
|
161168
|
165147
|
165148
|
165234
|
165365