Lines 1333-1338
sub _SearchItems_build_where_fragment {
Link Here
|
1333 |
push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; |
1333 |
push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; |
1334 |
push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; |
1334 |
push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; |
1335 |
my @operators = qw(= != > < >= <= like); |
1335 |
my @operators = qw(= != > < >= <= like); |
|
|
1336 |
push @operators, 'not like'; |
1336 |
my $field = $filter->{field} // q{}; |
1337 |
my $field = $filter->{field} // q{}; |
1337 |
if ( (0 < grep { $_ eq $field } @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
1338 |
if ( (0 < grep { $_ eq $field } @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
1338 |
my $op = $filter->{operator}; |
1339 |
my $op = $filter->{operator}; |
Lines 1415-1421
A filter has the following keys:
Link Here
|
1415 |
|
1416 |
|
1416 |
=item * query: the value to search in this column |
1417 |
=item * query: the value to search in this column |
1417 |
|
1418 |
|
1418 |
=item * operator: comparison operator. Can be one of = != > < >= <= like |
1419 |
=item * operator: comparison operator. Can be one of = != > < >= <= like 'not like' |
1419 |
|
1420 |
|
1420 |
=back |
1421 |
=back |
1421 |
|
1422 |
|