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