$limit_cgi .= "&limit=available";
$limit_desc .="";
}
+
# these are treated as OR
elsif ( $this_limit =~ /mc/ ) {
$group_OR_limits .= " or " if $group_OR_limits;
$limit_cgi .="&limit=$this_limit";
$limit_desc .= " or $this_limit";
}
+
+ # regular old limits
else {
$limit .= " and " if $limit || $query;
$limit .= "$this_limit";
$limit_desc .=" and $this_limit";
}
}
- $limit.=" and " if ($query && $limit);
- $limit.="($group_OR_limits)" if $group_OR_limits;
+ if ($group_OR_limits) {
+ $limit.=" and " if ($query || $limit );
+ $limit.="($group_OR_limits)";
+ }
# normalize the strings
for ($query, $query_search_desc, $limit, $limit_desc) {
$_ =~ s/ / /g; # remove extra spaces
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
if($params->{'multibranchlimit'}) {
-push @limits, join(" or ", map { "homebranch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
+push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
}
my $available;