Merge remote-tracking branch 'origin/new/bug_6488'
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 20 Feb 2012 15:28:14 +0000 (16:28 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 20 Feb 2012 15:28:14 +0000 (16:28 +0100)
C4/Search.pm

index c4276a3..e326986 100644 (file)
@@ -1758,10 +1758,10 @@ sub searchResults {
                 }
             }
         }    # notforloan, item level and biblioitem level
-
+       if ($items_count > 0) {
         next if $is_opac       && $hideatopac_count >= $items_count;
         next if $hidelostitems && $itemlost_count   >= $items_count;
-
+       }
         my ( $availableitemscount, $onloanitemscount, $otheritemscount );
         for my $key ( sort keys %$onloan_items ) {
             (++$onloanitemscount > $maxitems) and last;