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

(-)a/catalogue/itemsearch.pl (-7 / +4 lines)
Lines 58-70 if (defined $format and $format eq 'json') { Link Here
58
    foreach my $i (0 .. ($iColumns - 1)) {
58
    foreach my $i (0 .. ($iColumns - 1)) {
59
        my $sSearch = $cgi->param("sSearch_$i");
59
        my $sSearch = $cgi->param("sSearch_$i");
60
        if (defined $sSearch and $sSearch ne '') {
60
        if (defined $sSearch and $sSearch ne '') {
61
            my @words = split /\s+/, $sSearch;
61
            push @f, $columns[$i];
62
            foreach my $word (@words) {
62
            push @q, "$sSearch";
63
                push @f, $columns[$i];
63
            push @op, 'like';
64
                push @q, "%$word%";
64
            push @c, 'and';
65
                push @op, 'like';
66
                push @c, 'and';
67
            }
68
        }
65
        }
69
    }
66
    }
70
    $cgi->param('f', @f);
67
    $cgi->param('f', @f);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-2 / +7 lines)
Lines 303-311 Link Here
303
                .append("<h1>" + _("Item search results") + "</h1>")
303
                .append("<h1>" + _("Item search results") + "</h1>")
304
                .append($('<p>').append(advSearchLink))
304
                .append($('<p>').append(advSearchLink))
305
                .append(editSearchAndExportLinks);
305
                .append(editSearchAndExportLinks);
306
307
            var results_footer = $('<p>')
308
                .addClass('hint')
309
                .html(_("You can use the following wildcard characters: % _"));
310
306
            $('#results-wrapper').empty()
311
            $('#results-wrapper').empty()
307
                .append(results_heading)
312
                .append(results_heading)
308
                .append(table);
313
                .append(table)
314
                .append(results_footer);
309
315
310
            var params = [];
316
            var params = [];
311
            $form.find('select').not(':disabled').find('option:selected').each(function () {
317
            $form.find('select').not(':disabled').find('option:selected').each(function () {
312
- 

Return to bug 18961