View | Details | Raw Unified | Return to bug 17048
Collapse All | Expand All

(-)a/authorities/authorities-home.pl (-2 / +2 lines)
Lines 87-95 if ( $op eq "do_search" ) { Link Here
87
        [$marclist], [$and_or], [$excluding], [$operator],
87
        [$marclist], [$and_or], [$excluding], [$operator],
88
        [$value], $authtypecode, $orderby
88
        [$value], $authtypecode, $orderby
89
    );
89
    );
90
    $startfrom = $startfrom // 0;
90
    my $offset = ( $startfrom - 1 ) * $resultsperpage + 1;
91
    my ( $results, $total ) =
91
    my ( $results, $total ) =
92
      $searcher->search_auth_compat( $search_query, $startfrom,
92
      $searcher->search_auth_compat( $search_query, $offset,
93
        $resultsperpage );
93
        $resultsperpage );
94
    #my ( $results, $total ) = SearchAuthorities(
94
    #my ( $results, $total ) = SearchAuthorities(
95
    #    [$marclist],  [$and_or],
95
    #    [$marclist],  [$and_or],
(-)a/opac/opac-authorities-home.pl (-2 / +2 lines)
Lines 64-71 if ( $op eq "do_search" ) { Link Here
64
        { index => $Koha::SearchEngine::AUTHORITIES_INDEX } );
64
        { index => $Koha::SearchEngine::AUTHORITIES_INDEX } );
65
    my $search_query = $builder->build_authorities_query_compat( \@marclist, \@and_or,
65
    my $search_query = $builder->build_authorities_query_compat( \@marclist, \@and_or,
66
        \@excluding, \@operator, \@value, $authtypecode, $orderby );
66
        \@excluding, \@operator, \@value, $authtypecode, $orderby );
67
    my $offset = ( $startfrom - 1 ) * $resultsperpage + 1;
67
    my ( $results, $total ) =
68
    my ( $results, $total ) =
68
      $searcher->search_auth_compat( $search_query, $startfrom, $resultsperpage );
69
      $searcher->search_auth_compat( $search_query, $offset, $resultsperpage );
69
    ( $template, $loggedinuser, $cookie ) = get_template_and_user(
70
    ( $template, $loggedinuser, $cookie ) = get_template_and_user(
70
        {
71
        {
71
            template_name   => "opac-authoritiessearchresultlist.tt",
72
            template_name   => "opac-authoritiessearchresultlist.tt",
72
- 

Return to bug 17048