Lines 82-87
my $messageborrower;
Link Here
|
82 |
my $warnings; |
82 |
my $warnings; |
83 |
my $messages; |
83 |
my $messages; |
84 |
my $exceeded_maxreserves; |
84 |
my $exceeded_maxreserves; |
|
|
85 |
my $exceeded_holds_per_record; |
85 |
|
86 |
|
86 |
my $date = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
87 |
my $date = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
87 |
my $action = $input->param('action'); |
88 |
my $action = $input->param('action'); |
Lines 227-232
foreach my $biblionumber (@biblionumbers) {
Link Here
|
227 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
228 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
228 |
$exceeded_maxreserves = 1; |
229 |
$exceeded_maxreserves = 1; |
229 |
} |
230 |
} |
|
|
231 |
elsif ( $canReserve eq 'tooManyHoldsForThisRecord' ) { |
232 |
$exceeded_holds_per_record = 1; |
233 |
$biblioloopiter{$canReserve} = 1; |
234 |
} |
230 |
elsif ( $canReserve eq 'ageRestricted' ) { |
235 |
elsif ( $canReserve eq 'ageRestricted' ) { |
231 |
$template->param( $canReserve => 1 ); |
236 |
$template->param( $canReserve => 1 ); |
232 |
$biblioloopiter{$canReserve} = 1; |
237 |
$biblioloopiter{$canReserve} = 1; |
Lines 256-264
foreach my $biblionumber (@biblionumbers) {
Link Here
|
256 |
# For a librarian to be able to place multiple record holds for a patron for a record, |
261 |
# For a librarian to be able to place multiple record holds for a patron for a record, |
257 |
# we must find out what the maximum number of holds they can place for the patron is |
262 |
# we must find out what the maximum number of holds they can place for the patron is |
258 |
my $max_holds_for_record = GetMaxPatronHoldsForRecord( $borrowerinfo->{borrowernumber}, $biblionumber ); |
263 |
my $max_holds_for_record = GetMaxPatronHoldsForRecord( $borrowerinfo->{borrowernumber}, $biblionumber ); |
259 |
$max_holds_for_record = $max_holds_for_record - $holds->count(); |
264 |
my $remaining_holds_for_record = $max_holds_for_record - $holds->count(); |
260 |
$biblioloopiter{max_holds_for_record} = $max_holds_for_record; |
265 |
$biblioloopiter{remaining_holds_for_record} = $max_holds_for_record; |
261 |
$template->param( max_holds_for_record => $max_holds_for_record ); |
266 |
$template->param( max_holds_for_record => $max_holds_for_record ); |
|
|
267 |
$template->param( remaining_holds_for_record => $remaining_holds_for_record ); |
262 |
} |
268 |
} |
263 |
|
269 |
|
264 |
# Check to see if patron is allowed to place holds on records where the |
270 |
# Check to see if patron is allowed to place holds on records where the |
Lines 635-640
foreach my $biblionumber (@biblionumbers) {
Link Here
|
635 |
$template->param( biblioloop => \@biblioloop ); |
641 |
$template->param( biblioloop => \@biblioloop ); |
636 |
$template->param( biblionumbers => $biblionumbers ); |
642 |
$template->param( biblionumbers => $biblionumbers ); |
637 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
643 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
|
|
644 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
638 |
|
645 |
|
639 |
if ($multihold) { |
646 |
if ($multihold) { |
640 |
$template->param( multi_hold => 1 ); |
647 |
$template->param( multi_hold => 1 ); |
641 |
- |
|
|