DO NOT return if SimpleSearch give no result, we need to check reservoir too

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-30 13:02:38 -05:00 committed by Joshua Ferraro
parent 5f43dddef5
commit 289e8f445e

View file

@ -77,13 +77,6 @@ if ($query) {
exit;
}
if(not defined $marcresults){
$template->param(query => $query);
warn "no result found";
output_html_with_http_headers $input, $cookie, $template->output;
exit;
}
# format output
my $total = scalar @$marcresults;
my @newresults = searchResults( $query, $total, $results_per_page, $page-1, @$marcresults );