From 4025e6fd38d9f293adc6e25b38129869f0450f74 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Sun, 30 Sep 2007 22:22:35 +0200 Subject: [PATCH] BUGFIX: we show the 1st page, that is numbered 0 Without this, the search in catalogue showed the # of results, but not the results ! Signed-off-by: Chris Cormack --- cataloguing/addbooks.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 7efc178fe2..e22556a0fd 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -87,8 +87,7 @@ if ($query) { # 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, -- 2.39.5