diff --git a/C4/Search.pm b/C4/Search.pm index a9448e483b..bd4953e67b 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1264,7 +1264,6 @@ See verbose embedded documentation. sub buildQuery { my ( $operators, $operands, $indexes, $limits, $sort_by, $scan, $lang) = @_; - warn "---------\nEnter buildQuery\n---------" if $DEBUG; my $query_desc; @@ -1534,7 +1533,7 @@ sub buildQuery { if ( $k !~ /mc-i(tem)?type/ ) { # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes $this_limit =~ tr/"//d; - $this_limit = $k.":'".$v."'"; + $this_limit = $k.':"'.$v.'"'; } $group_OR_limits{$k} .= " or " if $group_OR_limits{$k};