From 55cb2cf1c6f2350cbe159e2f21fbf8d333907396 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 9 Sep 2010 12:07:44 -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 Signed-off-by: Ian Walls Signed-off-by: Galen Charlton (cherry picked from commit b558c0db5ad9125a947454b5ba8892f996553ab4) Signed-off-by: Chris Nighswonger --- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 2 +- koha-tmpl/opac-tmpl/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 3282600da2..3d59dd13f1 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 39c9331a75..75d838e29e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl @@ -392,7 +392,7 @@ - /cgi-bin/koha/opac-detail.pl?biblionumber= + /cgi-bin/koha/opac-detail.pl?biblionumber=title @@ -441,7 +441,7 @@ - by + by @@ -493,6 +493,7 @@ +

-- 2.39.5