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

(-)a/opac/opac-authorities-home.pl (-6 / +5 lines)
Lines 129-136 if ( $op eq "cud-do_search" ) { Link Here
129
        }
129
        }
130
    }
130
    }
131
131
132
    $template->param( result => $results ) if $results;
133
134
    $template->param(
132
    $template->param(
135
        pagination_bar => pagination_bar(
133
        pagination_bar => pagination_bar(
136
            $base_url,  int( $total / $resultsperpage ) + 1,
134
            $base_url,  int( $total / $resultsperpage ) + 1,
Lines 142-152 if ( $op eq "cud-do_search" ) { Link Here
142
    );
140
    );
143
141
144
    unless (C4::Context->preference('OPACShowUnusedAuthorities')) {
142
    unless (C4::Context->preference('OPACShowUnusedAuthorities')) {
145
#        TODO implement usage counts
143
#       TODO implement usage counts in the indexes to filter during searching
146
#        my @usedauths = grep { $_->{used} > 0 } @$results;
144
        my @usedauths = grep { $_->{used} > 0 } @$results;
147
#        $results = \@usedauths;
145
        $results = \@usedauths;
148
    }
146
    }
149
147
148
    $template->param( result => $results ) if $results;
149
150
    # Opac search history
150
    # Opac search history
151
    if (C4::Context->preference('EnableOpacSearchHistory')) {
151
    if (C4::Context->preference('EnableOpacSearchHistory')) {
152
        if ( $startfrom == 1) {
152
        if ( $startfrom == 1) {
153
- 

Return to bug 37057