Lines 2102-2108
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 |
my $field = $filter->{field}; |
2105 |
my $field = $filter->{field} // q{}; |
2106 |
if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
2106 |
if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) { |
2107 |
my $op = $filter->{operator}; |
2107 |
my $op = $filter->{operator}; |
2108 |
my $query = $filter->{query}; |
2108 |
my $query = $filter->{query}; |
2109 |
- |
|
|