Revert "[followup](MT #2298) fix bad conditions"

This reverts commit 0f7d9aa432.
This commit is contained in:
Henri-Damien LAURENT 2009-12-07 11:17:20 +01:00
parent 33f5580546
commit d433bcf6d1
2 changed files with 4 additions and 3 deletions

View File

@ -1659,7 +1659,7 @@ sub searchResults {
? C4::Context->preference('maxItemsinSearchResults') - 1
: 1;
if(not $limit_available){
if(! $limit_available){
for my $key ( sort keys %$onloan_items) {
(++$onloanitemscount > $maxitems) and last;
push @onloan_items_loop, $onloan_items->{$key};
@ -1707,7 +1707,8 @@ sub searchResults {
$oldbiblio->{orderedcount} = $ordered_count;
$oldbiblio->{isbn} =~
s/-//g; # deleting - in isbn to enable amazon content
push( @newresults, $oldbiblio ) if (not $limit_available or ($limit_available and $available_count));
push( @newresults, $oldbiblio ) if ((not $limit_available and ($items_count))
or ($limit_available and $available_count));
#if((not $hidelostitems and not $limit_available )
#or ($items_count > $itemlost_count and $available_count ));

View File

@ -378,7 +378,7 @@ if($params->{'multibranchlimit'}) {
push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
}
my $available = $params->{'available'} || "0";
my $available = $params->{'available'};
$template->param(available => $available);