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 1345-1353 Link Here
1345
            var x;
1345
            var x;
1346
            for (x in q_array) {
1346
            for (x in q_array) {
1347
                q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1347
                q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1348
                $(".title").highlight(q_array[x]);
1348
                q_array[x] = q_array[x].toLowerCase();
1349
                $(".author").highlight(q_array[x]);
1349
                var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
1350
                $(".results_summary").highlight(q_array[x]);
1350
                if( $.inArray(q_array[x], myStopwords) == -1 ) {
1351
                    $(".title").highlight(q_array[x]);
1352
                    $(".author").highlight(q_array[x]);
1353
                    $(".results_summary").highlight(q_array[x]);
1354
                }
1351
            }
1355
            }
1352
            $(".highlight_toggle").toggle();
1356
            $(".highlight_toggle").toggle();
1353
        }
1357
        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +3 lines)
Lines 652-658 function highlightOn() { Link Here
652
    var x;
652
    var x;
653
    for (x in q_array) {
653
    for (x in q_array) {
654
        q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
654
        q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
655
        if ( q_array[x].length > 0 ) {
655
        q_array[x] = q_array[x].toLowerCase();
656
        var myStopwords = "[% Koha.Preference('HighlightedStopWords') %]".toLowerCase().split('|');
657
        if ( (q_array[x].length > 0) && ($.inArray(q_array[x], myStopwords) == -1) ) {
656
            $(".title").highlight(q_array[x]);
658
            $(".title").highlight(q_array[x]);
657
            $(".author").highlight(q_array[x]);
659
            $(".author").highlight(q_array[x]);
658
            $(".results_summary").highlight(q_array[x]);
660
            $(".results_summary").highlight(q_array[x]);
659
- 

Return to bug 6149