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 225-230
foreach my $biblionumber (@biblionumbers) {
Link Here
|
225 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
226 |
elsif ( $canReserve eq 'tooManyReserves' ) { |
226 |
$exceeded_maxreserves = 1; |
227 |
$exceeded_maxreserves = 1; |
227 |
} |
228 |
} |
|
|
229 |
elsif ( $canReserve eq 'tooManyHoldsForThisRecord' ) { |
230 |
$exceeded_holds_per_record = 1; |
231 |
$biblioloopiter{$canReserve} = 1; |
232 |
} |
228 |
elsif ( $canReserve eq 'ageRestricted' ) { |
233 |
elsif ( $canReserve eq 'ageRestricted' ) { |
229 |
$template->param( $canReserve => 1 ); |
234 |
$template->param( $canReserve => 1 ); |
230 |
$biblioloopiter{$canReserve} = 1; |
235 |
$biblioloopiter{$canReserve} = 1; |
Lines 254-262
foreach my $biblionumber (@biblionumbers) {
Link Here
|
254 |
# For a librarian to be able to place multiple record holds for a patron for a record, |
259 |
# For a librarian to be able to place multiple record holds for a patron for a record, |
255 |
# we must find out what the maximum number of holds they can place for the patron is |
260 |
# we must find out what the maximum number of holds they can place for the patron is |
256 |
my $max_holds_for_record = GetMaxPatronHoldsForRecord( $borrowerinfo->{borrowernumber}, $biblionumber ); |
261 |
my $max_holds_for_record = GetMaxPatronHoldsForRecord( $borrowerinfo->{borrowernumber}, $biblionumber ); |
257 |
$max_holds_for_record = $max_holds_for_record - $holds->count(); |
262 |
my $remaining_holds_for_record = $max_holds_for_record - $holds->count(); |
258 |
$biblioloopiter{max_holds_for_record} = $max_holds_for_record; |
263 |
$biblioloopiter{remaining_holds_for_record} = $max_holds_for_record; |
259 |
$template->param( max_holds_for_record => $max_holds_for_record ); |
264 |
$template->param( max_holds_for_record => $max_holds_for_record ); |
|
|
265 |
$template->param( remaining_holds_for_record => $remaining_holds_for_record ); |
260 |
} |
266 |
} |
261 |
|
267 |
|
262 |
# Check to see if patron is allowed to place holds on records where the |
268 |
# Check to see if patron is allowed to place holds on records where the |
Lines 628-633
foreach my $biblionumber (@biblionumbers) {
Link Here
|
628 |
$template->param( biblioloop => \@biblioloop ); |
634 |
$template->param( biblioloop => \@biblioloop ); |
629 |
$template->param( biblionumbers => $biblionumbers ); |
635 |
$template->param( biblionumbers => $biblionumbers ); |
630 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
636 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
|
|
637 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
631 |
|
638 |
|
632 |
if ($multihold) { |
639 |
if ($multihold) { |
633 |
$template->param( multi_hold => 1 ); |
640 |
$template->param( multi_hold => 1 ); |
634 |
- |
|
|