Lines 2102-2107
sub _SearchItems_build_where_fragment {
Link Here
|
2102 |
push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; |
2102 |
push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; |
2103 |
push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; |
2103 |
push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; |
2104 |
my @operators = qw(= != > < >= <= like); |
2104 |
my @operators = qw(= != > < >= <= like); |
|
|
2105 |
push @operators, 'not like'; |
2105 |
my $field = $filter->{field}; |
2106 |
my $field = $filter->{field}; |
2106 |
if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
2107 |
if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
2107 |
my $op = $filter->{operator}; |
2108 |
my $op = $filter->{operator}; |
Lines 2184-2190
A filter has the following keys:
Link Here
|
2184 |
|
2185 |
|
2185 |
=item * query: the value to search in this column |
2186 |
=item * query: the value to search in this column |
2186 |
|
2187 |
|
2187 |
=item * operator: comparison operator. Can be one of = != > < >= <= like |
2188 |
=item * operator: comparison operator. Can be one of = != > < >= <= like 'not like' |
2188 |
|
2189 |
|
2189 |
=back |
2190 |
=back |
2190 |
|
2191 |
|