Bug 6488 - followup - fixes issue with bibs with no items and serials being suppressed
[koha.git] / C4 / Search.pm
index f090fd8..18d6905 100644 (file)
@@ -1756,10 +1756,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;