BUGFIX: we show the 1st page, that is numbered 0
authorPaul POULAIN <paul@koha-fr.org>
Sun, 30 Sep 2007 20:22:35 +0000 (22:22 +0200)
committerChris Cormack <crc@liblime.com>
Sun, 30 Sep 2007 21:03:45 +0000 (16:03 -0500)
Without this, the search in catalogue showed the # of results, but not the results !

Signed-off-by: Chris Cormack <crc@liblime.com>
cataloguing/addbooks.pl

index 7efc178..e22556a 100755 (executable)
@@ -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,