diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 00ccd7ad65..d52977267c 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -79,8 +79,9 @@ if ($query) { } # format output + # SimpleSearch() give the results per page we want, so 0 offet here my $total = scalar @$marcresults; - my @newresults = searchResults( $query, $total, $results_per_page, $page-1, 0, @$marcresults ); + my @newresults = searchResults( $query, $total, $results_per_page, 0, 0, @$marcresults ); $template->param( total => $total_hits, query => $query,