bug 1893: add jump link to reservoir search results
[koha_gimpoz] / cataloguing / addbooks.pl
index 7efc178..a24797b 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/perl
 
-# $Id$
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -78,17 +77,9 @@ 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, @$marcresults );
-    
+    my @newresults = searchResults( $query, $total, $results_per_page, $page-1, @$marcresults );
     $template->param(
         total       => $total,
         query       => $query,
@@ -135,6 +126,7 @@ for ( my $i = 0 ; $i <= $#resultsbr ; $i++ ) {
 
 $template->param(
     frameworkcodeloop => \@frameworkcodeloop,
+    breeding_count    => $countbr,
     breeding_loop     => \@breeding_loop,
 );