Lines 64-71
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
Link Here
|
64 |
} |
64 |
} |
65 |
); |
65 |
); |
66 |
|
66 |
|
67 |
my $multihold = $input->param('multi_hold'); |
|
|
68 |
$template->param(multi_hold => $multihold); |
69 |
my $showallitems = $input->param('showallitems'); |
67 |
my $showallitems = $input->param('showallitems'); |
70 |
|
68 |
|
71 |
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
69 |
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
Lines 133-138
if ($multihold) {
Link Here
|
133 |
push @biblionumbers, $input->multi_param('biblionumber'); |
131 |
push @biblionumbers, $input->multi_param('biblionumber'); |
134 |
} |
132 |
} |
135 |
|
133 |
|
|
|
134 |
# FIXME multi_hold should not be a variable but depends on the number of elements in @biblionumbers |
135 |
$template->param(multi_hold => scalar $input->param('multi_hold')); |
136 |
|
136 |
|
137 |
# If we have the borrowernumber because we've performed an action, then we |
137 |
# If we have the borrowernumber because we've performed an action, then we |
138 |
# don't want to try to place another reserve. |
138 |
# don't want to try to place another reserve. |
Lines 641-650
$template->param( biblionumbers => $biblionumbers );
Link Here
|
641 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
641 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
642 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
642 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
643 |
|
643 |
|
644 |
if ($multihold) { |
|
|
645 |
$template->param( multi_hold => 1 ); |
646 |
} |
647 |
|
648 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
644 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
649 |
$template->param( reserve_in_future => 1 ); |
645 |
$template->param( reserve_in_future => 1 ); |
650 |
} |
646 |
} |
651 |
- |
|
|