DO NOT return if SimpleSearch give no result, we need to check reservoir too
authorPaul POULAIN <paul@koha-fr.org>
Tue, 30 Oct 2007 18:02:38 +0000 (13:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 31 Oct 2007 10:32:03 +0000 (05:32 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
cataloguing/addbooks.pl

index 38b7eb4..6e45ed5 100755 (executable)
@@ -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 );