@@ -, +, @@
---
C4/Items.pm | 3 ++-
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
--- a/C4/Items.pm
+++ a/C4/Items.pm
@@ -2102,6 +2102,7 @@ sub _SearchItems_build_where_fragment {
push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns;
push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns;
my @operators = qw(= != > < >= <= like);
+ push @operators, 'not like';
my $field = $filter->{field};
if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) {
my $op = $filter->{operator};
@@ -2184,7 +2185,7 @@ A filter has the following keys:
=item * query: the value to search in this column
-=item * operator: comparison operator. Can be one of = != > < >= <= like
+=item * operator: comparison operator. Can be one of = != > < >= <= like 'not like'
=back
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt
@@ -85,16 +85,16 @@
[% IF params.exists('op') %]
[% ELSE %]
[% END %]
--