[open-ils-commits] r9013 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Search

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 14 12:22:35 EDT 2008


Author: erickson
Date: 2008-03-14 11:48:57 -0400 (Fri, 14 Mar 2008)
New Revision: 9013

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
fixed assumption that available=0 implies no hits, some cleanup

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-03-14 15:14:41 UTC (rev 9012)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm	2008-03-14 15:48:57 UTC (rev 9013)
@@ -807,17 +807,12 @@
         $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



More information about the open-ils-commits mailing list