@@ -, +, @@
(master)
---
.../bootstrap/en/includes/opac-highlight.inc | 26 ++++++++++++++++++++++
.../bootstrap/en/modules/opac-results-grouped.tt | 17 --------------
.../opac-tmpl/bootstrap/en/modules/opac-results.tt | 26 ++--------------------
3 files changed, 28 insertions(+), 41 deletions(-)
create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-highlight.inc
--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-highlight.inc
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-highlight.inc
@@ -0,0 +1,26 @@
+
+
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results-grouped.tt
@@ -335,23 +335,6 @@ $(document).ready(function(){
$("#highlight_toggle_off").show().click(function() {highlightOff();});
[% END %]
});
-
-function highlightOff() {
- $("td").removeHighlight();
- $(".highlight_toggle").toggle();
-}
-function highlightOn() {
- var x;
- for (x in q_array) {
- q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
- q_array[x] = q_array[x].toLowerCase();
- var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
- if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
- $("td").highlight(q_array[x]);
- }
- }
- $(".highlight_toggle").toggle();
-}
//]]>
[% END %]
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
@@ -583,8 +583,8 @@
[% IF ( OpacStarRatings == 'all' || Koha.Preference('Babeltheque') ) %][% END %]
[% IF ( OverDriveEnabled ) %][% END %]
-[% IF ( OpacHighlightedWords ) %]
-[% END %]