fixed assumption that available=0 implies no hits, some cleanup
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 15:48:57 +0000 (15:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 14 Mar 2008 15:48:57 +0000 (15:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9013 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index 5e160d2..06b65bb 100644 (file)
@@ -807,17 +807,12 @@ sub staged_search {
         $logger->debug("staged search: located $current_count, with estimated hits=".
             $summary->{estimated_hit_count}." : visible=".$summary->{visible});
 
-        # no results for this search
-        last if $current_count == 0;
-
         # we've found all the possible hits
-        last if $current_count == $summary->{visible} 
+        last if $current_count == $summary->{visible}
             and not defined $summary->{estimated_hit_count};
 
         # we've found enough results to satisfy the requested limit/offset
         last if $current_count >= ($user_limit + $user_offset);
-
-
     }
 
     # calculate the average estimated hit count from the data we've collected thus far