[Koha-patches] [PATCH] Bug 8462: OpacHiddenItems and hidelostitems hide items, but query result count is off

Fridolyn SOMERS fridolyn.somers at biblibre.com
Fri Sep 28 15:34:10 CEST 2012


---
 C4/Search.pm |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index 7c20780..97d7d15 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1884,11 +1884,6 @@ sub searchResults {
             }
         }    # notforloan, item level and biblioitem level
 
-        # if all items are hidden, do not show the record
-        if ($items_count > 0 && $hideatopac_count == $items_count) {
-            next;
-        }
-
         my ( $availableitemscount, $onloanitemscount, $otheritemscount );
         for my $key ( sort keys %$onloan_items ) {
             (++$onloanitemscount > $maxitems) and last;
-- 
1.7.9.5



More information about the Koha-patches mailing list