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

(-)a/catalogue/itemsearch.pl (-3 / +8 lines)
Lines 61-69 if (defined $format and $format eq 'json') { Link Here
61
            my @words = split /\s+/, $sSearch;
61
            my @words = split /\s+/, $sSearch;
62
            foreach my $word (@words) {
62
            foreach my $word (@words) {
63
                push @f, $columns[$i];
63
                push @f, $columns[$i];
64
                push @q, "%$word%";
65
                push @op, 'like';
66
                push @c, 'and';
64
                push @c, 'and';
65
66
                if ( grep /^$columns[$i]$/, qw( ccode homebranch holdingbranch location notforloan ) ) {
67
                    push @q, "$word";
68
                    push @op, '=';
69
                } else {
70
                    push @q, "%$word%";
71
                    push @op, 'like';
72
                }
67
            }
73
            }
68
        }
74
        }
69
    }
75
    }
70
- 

Return to bug 18961