Bugzilla – Attachment 1972 Details for
Bug 4276
"Related subjects" search doesn't work with XSLT on and chained subject terms
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
0003-Bug-4276-Proposed-fix-for-Related-Subjects-links.patch (text/plain), 2.72 KB, created by
Chris Cormack
on 2010-03-20 01:21:00 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-03-20 01:21:00 UTC
Size:
2.72 KB
patch
obsolete
>From 911b2b9dce48421265ea05e3cce64c76b3f13758 Mon Sep 17 00:00:00 2001 >From: Garry Collum <gcollum@gmail.com> >Date: Fri, 19 Mar 2010 21:14:06 -0400 >Subject: [PATCH] Bug 4276: Proposed fix for "Related Subjects" links in Opac. >Content-Type: text/plain; charset="utf-8" > >Adds fields other than 'a' to the links for subject headings in the Opac details page. > >Also adds subfield b of a Corporate Author (710) to the appropriate link. Otherwise you may have a link with "United States" instead of "United States. Public Works Adminstration" > >Another patch needs to be sent for the Intranet. >--- > .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 18 ++++++++++++++++-- > 1 files changed, 16 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >index 795856e..6f5f53b 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl >@@ -130,7 +130,14 @@ > <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?idx=au&q=<xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">ab</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:call-template name="nameABCDN"/></a> >@@ -375,7 +382,14 @@ > <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=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> >+ <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idc=su&q=<xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">abcdvxyz</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </xsl:attribute> > </xsl:otherwise> > </xsl:choose> > <xsl:call-template name="chopPunctuation"> >-- >1.5.6.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 4276
: 1972 |
2629
|
3385
|
3673