From 78008ed120082298143ce3976a8d9d1f0652cd10 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 11 Aug 2010 08:48:46 -0400 Subject: [PATCH] 3.0.x fix for Bug 3613, search term highlighting too aggressive Content-Type: text/plain; charset="utf-8" --- .../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 f5d6abc..106a4ef 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -62,7 +62,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]); + $(".results_summary").highlight(q_array[x]); } $(".highlight_toggle").toggle(); } @@ -347,7 +349,7 @@ $("span.addto").html(param1); - by " title="Search for works by this author"> + by " title="Search for works by this author" class="author">   Publication: -- 1.7.0.4