Bugzilla – Attachment 2440 Details for
Bug 5075
Terms not highlighted w/ xslt on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
0001-Fix-for-Bug-5075-Terms-not-highlighted-w-xslt-on.patch (text/plain), 2.53 KB, created by
Owen Leonard
on 2010-08-02 15:31:02 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2010-08-02 15:31:02 UTC
Size:
2.53 KB
patch
obsolete
>From 060462286c91745690939fa558d4af86cf1e6cb4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 2 Aug 2010 11:28:13 -0400 >Subject: [PATCH] Fix for Bug 5075 - Terms not highlighted w/ xslt on > >- XSLT didn't contain the class markup which acts as a hook > for the JavaScript highlighting system. >- Standard results page also contained a typo which > prevented data other than title and author from > being highlighted >--- > .../opac-tmpl/prog/en/modules/opac-results.tmpl | 2 +- > .../prog/en/xslt/MARC21slim2OPACResults.xsl | 5 +++-- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >index 3282600..3d59dd1 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl >@@ -90,7 +90,7 @@ function highlightOn() { > for (x in q_array) { > $(".title").highlight(q_array[x]); > $(".author").highlight(q_array[x]); >- $(".result_summary").highlight(q_array[x]); >+ $(".results_summary").highlight(q_array[x]); > } > $(".highlight_toggle").toggle(); > } >diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >index 65e14e5..8950cc5 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl >@@ -391,7 +391,7 @@ > </xsl:call-template> > </xsl:if> > >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute><xsl:attribute name="class">title</xsl:attribute> > > <xsl:if test="marc:datafield[@tag=245]"> > <xsl:for-each select="marc:datafield[@tag=245]"> >@@ -440,7 +440,7 @@ > <xsl:choose> > <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]"> > >- by >+ by <span class="author"> > <xsl:for-each select="marc:datafield[@tag=100 or @tag=700]"> > <xsl:choose> > <xsl:when test="position()=last()"> >@@ -492,6 +492,7 @@ > </xsl:otherwise> > </xsl:choose> > </xsl:for-each> >+ </span> > </xsl:when> > </xsl:choose> > </p> >-- >1.7.0.4 >
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 5075
:
2437
|
2438
| 2440