Bugzilla – Attachment 76064 Details for
Bug 16804
Searching can be broken by search terms containing semicolons in XSLT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16804 - semicolons break series search in 490
Bug-16804---semicolons-break-series-search-in-490.patch (text/plain), 3.34 KB, created by
Kyle M Hall (khall)
on 2018-06-14 17:38:09 UTC
(
hide
)
Description:
Bug 16804 - semicolons break series search in 490
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-06-14 17:38:09 UTC
Size:
3.34 KB
patch
obsolete
>From 9b571f1d6f9af5c5cbf2d700e7e1c72953e89d7e Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Wed, 3 Jan 2018 15:28:45 +1300 >Subject: [PATCH] Bug 16804 - semicolons break series search in 490 > >To test: > >* have OPACSuppression on >* have a record with a 490 field a la: > >490 _a something ; > _v 123 > >* go to the opac and search for this record >* click the Series link from the detail > >Without this patch, there will be no results. > >With this patch, you will get relevant results (possibly the same record back) > >Signed-off-by: Joy Nelson <joy@bywatersolutions.com> >--- > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index f31b1beba5..09c9ab489c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -221,14 +221,14 @@ > > <!-- 490 Series not traced, Ind1 = 0 --> > <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]"> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">av</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:value-of select="marc:subfield[@code='a']"/></xsl:with-param></xsl:call-template>"</xsl:attribute> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">av</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> > </a> > <xsl:call-template name="part"/> > <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >@@ -249,7 +249,7 @@ > </a> > </xsl:when> > <xsl:otherwise> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:value-of select="marc:subfield[@code='a']"/></xsl:with-param></xsl:call-template>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >-- >2.15.1 (Apple Git-101)
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 16804
:
67622
|
70241
| 76064