From 72ca1af2d425a622be58e7e0a1bedc0d737aa28b Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Mon, 14 Sep 2009 13:30:35 +0200 Subject: [PATCH] (bug #3613) fix opac highlight Content-Type: text/plain; charset="utf-8" This fix the highlighting in opac, specifying explicitly stylesheet classes that should be parsed for highlight. --- .../opac-tmpl/prog/en/modules/opac-results.tmpl | 6 ++++-- 1 files changed, 4 insertions(+), 2 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 2050232..d3da357 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -88,7 +88,9 @@ function highlightOff() { function highlightOn() { var x; for (x in q_array) { - $("td").highlight(q_array[x]); + $(".title").highlight(q_array[x]); + $(".author").highlight(q_array[x]); + $(".result_summary").highlight(q_array[x]); } $(".highlight_toggle").toggle(); } @@ -372,7 +374,7 @@ $(document).ready(function(){ No title - by " title="Search for works by this author"> + by " title="Search for works by this author" class="author">   Publication: -- 1.6.0.4