From 04ce2b54998ae8ad3c35cb3932da95236d4ae36f Mon Sep 17 00:00:00 2001 From: Nicholas van Oudtshoorn Date: Thu, 25 Aug 2016 14:11:25 +0800 Subject: [PATCH] Fix authority paging --- authorities/authorities-home.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/authorities-home.pl b/authorities/authorities-home.pl index 426b1ba..f41d212 100755 --- a/authorities/authorities-home.pl +++ b/authorities/authorities-home.pl @@ -89,7 +89,7 @@ if ( $op eq "do_search" ) { ); $startfrom = $startfrom // 0; my ( $results, $total ) = - $searcher->search_auth_compat( $search_query, $startfrom, + $searcher->search_auth_compat( $search_query, (($startfrom - 1) * $resultsperpage) + 1, $resultsperpage ); #my ( $results, $total ) = SearchAuthorities( # [$marclist], [$and_or], -- 2.7.4