[Koha-patches] [PATCH] 3.0.x fix for Bug 3613, search term highlighting too aggressive
Owen Leonard
oleonard at myacpl.org
Wed Aug 11 14:52:56 CEST 2010
---
.../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);
</a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for works by this author"><!-- TMPL_VAR NAME="author" --></a>
+ <!-- TMPL_IF NAME="author" -->by <a href="/cgi-bin/koha/opac-search.pl?q=au:<!-- TMPL_VAR NAME="author" ESCAPE="URL" -->" title="Search for works by this author" class="author"><!-- TMPL_VAR NAME="author" --></a>
<!-- TMPL_ELSE -->
<!-- /TMPL_IF -->
<span class="results_summary"><span class="label">Publication:</span>
--
1.7.0.4
More information about the Koha-patches
mailing list