Bugzilla – Attachment 19303 Details for
Bug 6553
Parentheses in corporate author break tracings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 6553 - Parentheses in Corporate author break tracings
PASSED-QA-Bug-6553---Parentheses-in-Corporate-auth.patch (text/plain), 2.82 KB, created by
Katrin Fischer
on 2013-06-30 17:37:21 UTC
(
hide
)
Description:
[PASSED QA] Bug 6553 - Parentheses in Corporate author break tracings
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2013-06-30 17:37:21 UTC
Size:
2.82 KB
patch
obsolete
>From 59bae3f74a46a4f4e0fa81cc787cf5055891844b Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Fri, 10 May 2013 09:32:17 +1200 >Subject: [PATCH] [PASSED QA] Bug 6553 - Parentheses in Corporate author break > tracings > >To test: > >If an author's name includes parentheses or other escape-characters, the tracing links >produced in the OPAC fail in XSLT mode. This patch wraps the author names >in double-quotes, providing the necessary escapement. > >Test plan: >- Create a new framework, delete Thesaurus from 100 and other fields >- Create a new record in this framework (or change an existing record to this framework) >- Add 100$a - use parentheses >- Check the search links in OPAC detail pages > >Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >XSLT change adding quotes. Search now matches search in the intranet. >Passes all tests. >--- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index e1e6546..ad74c53 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -959,10 +959,10 @@ > <a> > <xsl:choose> > <xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> >- <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:"<xsl:value-of select="marc:subfield[@code=9]"/>"</xsl:attribute> > </xsl:when> > <xsl:otherwise> >- <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:choose> >@@ -984,7 +984,7 @@ > </a> > <xsl:if test="marc:subfield[@code=9]"> > <a class='authlink'> >- <xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid=<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/opac-authoritiesdetail.pl?authid="<xsl:value-of select="marc:subfield[@code=9]"/>"</xsl:attribute> > <img style="vertical-align:middle" height="15" width="15" src="/opac-tmpl/prog/images/filefind.png"/> > </a> > </xsl:if> >-- >1.7.9.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 6553
:
4788
|
4789
|
5680
|
5991
|
18055
|
18445
| 19303