View | Details | Raw Unified | Return to bug 6149
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +7 lines)
Lines 1269-1277 Link Here
1269
            var x;
1269
            var x;
1270
            for (x in q_array) {
1270
            for (x in q_array) {
1271
                q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1271
                q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1272
                $(".title").highlight(q_array[x]);
1272
                q_array[x] = q_array[x]toLowerCase();
1273
                $(".author").highlight(q_array[x]);
1273
                var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
1274
                $(".results_summary").highlight(q_array[x]);
1274
                if( $.inArray(q_array[x], myStopwords) == -1 ) {
1275
                    $(".title").highlight(q_array[x]);
1276
                    $(".author").highlight(q_array[x]);
1277
                    $(".results_summary").highlight(q_array[x]);
1278
                }
1275
            }
1279
            }
1276
            $(".highlight_toggle").toggle();
1280
            $(".highlight_toggle").toggle();
1277
        }
1281
        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +3 lines)
Lines 648-654 function highlightOn() { Link Here
648
    var x;
648
    var x;
649
    for (x in q_array) {
649
    for (x in q_array) {
650
        q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
650
        q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
651
        if ( q_array[x].length > 0 ) {
651
        q_array[x] = q_array[x].toLowerCase();
652
        var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
653
        if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
652
            $(".title").highlight(q_array[x]);
654
            $(".title").highlight(q_array[x]);
653
            $(".author").highlight(q_array[x]);
655
            $(".author").highlight(q_array[x]);
654
            $(".results_summary").highlight(q_array[x]);
656
            $(".results_summary").highlight(q_array[x]);
655
- 

Return to bug 6149