Bugzilla – Attachment 1464 Details for
Bug 3613
highlight fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bugfix
0001--bug-3613-fix-opac-highlight.patch (text/plain), 2.07 KB, created by
Chris Cormack
on 2009-09-14 11:32:00 UTC
(
hide
)
Description:
bugfix
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-09-14 11:32:00 UTC
Size:
2.07 KB
patch
obsolete
>From 72ca1af2d425a622be58e7e0a1bedc0d737aa28b Mon Sep 17 00:00:00 2001 >From: Nahuel ANGELINETTI <nahuel.angelinetti@biblibre.com> >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(){ > <!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <!-- TMPL_IF NAME="title" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_ELSE -->No title<!-- /TMPL_IF --> <!-- TMPL_LOOP NAME="subtitle" --><!--TMPL_VAR Name="subfield"--><!--/TMPL_LOOP--></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"><!-- 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.6.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