|
Lines 148-153
if ($borrowernumber_hold && !$action) {
Link Here
|
| 148 |
my $new_reserves_count = scalar( @biblionumbers ); |
148 |
my $new_reserves_count = scalar( @biblionumbers ); |
| 149 |
|
149 |
|
| 150 |
my $maxreserves = C4::Context->preference('maxreserves'); |
150 |
my $maxreserves = C4::Context->preference('maxreserves'); |
|
|
151 |
$template->param( maxreserves => $maxreserves ); |
| 152 |
|
| 151 |
if ( $maxreserves |
153 |
if ( $maxreserves |
| 152 |
&& ( $reserves_count + $new_reserves_count > $maxreserves ) ) |
154 |
&& ( $reserves_count + $new_reserves_count > $maxreserves ) ) |
| 153 |
{ |
155 |
{ |
|
Lines 210-215
my $logged_in_patron = Koha::Patrons->find( $borrowernumber );
Link Here
|
| 210 |
|
212 |
|
| 211 |
my $itemdata_enumchron = 0; |
213 |
my $itemdata_enumchron = 0; |
| 212 |
my @biblioloop = (); |
214 |
my @biblioloop = (); |
|
|
215 |
my $no_reserves_allowed = 0; |
| 213 |
foreach my $biblionumber (@biblionumbers) { |
216 |
foreach my $biblionumber (@biblionumbers) { |
| 214 |
next unless $biblionumber =~ m|^\d+$|; |
217 |
next unless $biblionumber =~ m|^\d+$|; |
| 215 |
|
218 |
|
|
Lines 226-231
foreach my $biblionumber (@biblionumbers) {
Link Here
|
| 226 |
|
229 |
|
| 227 |
#All is OK and we can continue |
230 |
#All is OK and we can continue |
| 228 |
} |
231 |
} |
|
|
232 |
elsif ( $canReserve eq 'noReservesAllowed') { |
| 233 |
$no_reserves_allowed = 1; |
| 234 |
} |
| 229 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
235 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
| 230 |
$exceeded_maxreserves = 1; |
236 |
$exceeded_maxreserves = 1; |
| 231 |
} |
237 |
} |
|
Lines 636-641
foreach my $biblionumber (@biblionumbers) {
Link Here
|
| 636 |
|
642 |
|
| 637 |
$template->param( biblioloop => \@biblioloop ); |
643 |
$template->param( biblioloop => \@biblioloop ); |
| 638 |
$template->param( biblionumbers => $biblionumbers ); |
644 |
$template->param( biblionumbers => $biblionumbers ); |
|
|
645 |
$template->param( no_reserves_allowed => $no_reserves_allowed ); |
| 639 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
646 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
| 640 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
647 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
| 641 |
|
648 |
|
| 642 |
- |
|
|