@@ -, +, @@ --- opac/opac-reserve.pl | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) --- a/opac/opac-reserve.pl +++ a/opac/opac-reserve.pl @@ -147,22 +147,20 @@ foreach my $biblioNumber (@biblionumbers) { $itemInfoHash{$itemInfo->{itemnumber}} = $itemInfo; } - if ($show_holds_count) { - # Compute the priority rank. - my ( $rank, $reserves ) = GetReservesFromBiblionumber($biblioNumber,1); - $biblioData->{reservecount} = 1; # new reserve - foreach my $res (@$reserves) { - my $found = $res->{'found'}; - if ( $found && ($found eq 'W') ) { - $rank--; - } - else { - $biblioData->{reservecount}++; - } + # Compute the priority rank. + my ( $rank, $reserves ) = + GetReservesFromBiblionumber( $biblioNumber, 1 ); + $biblioData->{reservecount} = 1; # new reserve + foreach my $res (@{$reserves}) { + my $found = $res->{found}; + if ( $found && $found eq 'W' ) { + $rank--; + } + else { + $biblioData->{reservecount}++; } - $rank++; - $biblioData->{rank} = $rank; } + $biblioData->{rank} = $rank + 1; } # --