Bugzilla – Attachment 2504 Details for
Bug 3613
highlight fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix for 3.0.x
0001-3.0.x-fix-for-Bug-3613-search-term-highlighting-too-.patch (text/plain), 1.83 KB, created by
Owen Leonard
on 2010-08-11 12:56:22 UTC
(
hide
)
Description:
Proposed fix for 3.0.x
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2010-08-11 12:56:22 UTC
Size:
1.83 KB
patch
obsolete
>From 78008ed120082298143ce3976a8d9d1f0652cd10 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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); > </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 >
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 3613
:
1464
| 2504