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