sub _validate_operator {
my ($operator) = @_;
my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or);
my %allowed_operators = map { $_ => 1 } qw(= != < > <= >= like -not_like -in -ident -bool -not_bool -or -like -not -and -regexp);
Koha::Exceptions::BadParameter->throw(
"Invalid operator in query: $operator") unless exists $allowed_operators{$operator};
return;
-