@@ -, +, @@ searches --- authorities/authorities-home.pl | 4 ++-- opac/opac-authorities-home.pl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) --- a/authorities/authorities-home.pl +++ a/authorities/authorities-home.pl @@ -87,9 +87,9 @@ if ( $op eq "do_search" ) { [$marclist], [$and_or], [$excluding], [$operator], [$value], $authtypecode, $orderby ); - $startfrom = $startfrom // 0; + my $offset = ( $startfrom - 1 ) * $resultsperpage + 1; my ( $results, $total ) = - $searcher->search_auth_compat( $search_query, $startfrom, + $searcher->search_auth_compat( $search_query, $offset, $resultsperpage ); #my ( $results, $total ) = SearchAuthorities( # [$marclist], [$and_or], --- a/opac/opac-authorities-home.pl +++ a/opac/opac-authorities-home.pl @@ -64,8 +64,9 @@ if ( $op eq "do_search" ) { { index => $Koha::SearchEngine::AUTHORITIES_INDEX } ); my $search_query = $builder->build_authorities_query_compat( \@marclist, \@and_or, \@excluding, \@operator, \@value, $authtypecode, $orderby ); + my $offset = ( $startfrom - 1 ) * $resultsperpage + 1; my ( $results, $total ) = - $searcher->search_auth_compat( $search_query, $startfrom, $resultsperpage ); + $searcher->search_auth_compat( $search_query, $offset, $resultsperpage ); ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "opac-authoritiessearchresultlist.tt", --