From 3cb2961647acae8f0842ef1a3a75a6e62c2b4cd6 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 14 Mar 2008 15:48:57 +0000 Subject: [PATCH] fixed assumption that available=0 implies no hits, some cleanup 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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 5e160d2513..06b65bb43a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -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 -- 2.43.2