From 81b1c692dfbcbe8fd59b15dd2ae8ca718680f730 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 1 Sep 2009 15:59:50 -0600 Subject: [PATCH] cataloging search results from catalog don't show on later pages In the cataloging search results from the catalog, the result set would decrease by one per page. Past page 19 there was an empty table. The reason is that SimpleSearch gives the result set ( 20 records here ), and searchResults expects to trim the result set to just the 20 records we want. This changes the call to searchResults() to have a 0 offset to the result set. Signed-off-by: Galen Charlton --- cataloguing/addbooks.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5