|
Lines 65-72
my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
Link Here
|
| 65 |
} |
65 |
} |
| 66 |
); |
66 |
); |
| 67 |
|
67 |
|
| 68 |
my $multihold = $input->param('multi_hold'); |
|
|
| 69 |
$template->param(multi_hold => $multihold); |
| 70 |
my $showallitems = $input->param('showallitems'); |
68 |
my $showallitems = $input->param('showallitems'); |
| 71 |
|
69 |
|
| 72 |
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
70 |
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; |
|
Lines 127-139
if ($findborrower) {
Link Here
|
| 127 |
} |
125 |
} |
| 128 |
|
126 |
|
| 129 |
my @biblionumbers = (); |
127 |
my @biblionumbers = (); |
|
|
128 |
my $biblionumber = $input->param('biblionumber'); |
| 130 |
my $biblionumbers = $input->param('biblionumbers'); |
129 |
my $biblionumbers = $input->param('biblionumbers'); |
| 131 |
if ($multihold) { |
130 |
if ( $biblionumbers ) { |
| 132 |
@biblionumbers = split '/', $biblionumbers; |
131 |
@biblionumbers = split '/', $biblionumbers; |
| 133 |
} else { |
132 |
} else { |
| 134 |
push @biblionumbers, $input->multi_param('biblionumber'); |
133 |
push @biblionumbers, $input->multi_param('biblionumber'); |
| 135 |
} |
134 |
} |
| 136 |
|
135 |
|
|
|
136 |
# FIXME multi_hold should not be a variable but depends on the number of elements in @biblionumbers |
| 137 |
$template->param(multi_hold => scalar $input->param('multi_hold')); |
| 137 |
|
138 |
|
| 138 |
# If we have the borrowernumber because we've performed an action, then we |
139 |
# If we have the borrowernumber because we've performed an action, then we |
| 139 |
# don't want to try to place another reserve. |
140 |
# don't want to try to place another reserve. |
|
Lines 618-627
$template->param( biblionumbers => $biblionumbers );
Link Here
|
| 618 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
619 |
$template->param( exceeded_maxreserves => $exceeded_maxreserves ); |
| 619 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
620 |
$template->param( exceeded_holds_per_record => $exceeded_holds_per_record ); |
| 620 |
|
621 |
|
| 621 |
if ($multihold) { |
|
|
| 622 |
$template->param( multi_hold => 1 ); |
| 623 |
} |
| 624 |
|
| 625 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
622 |
if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { |
| 626 |
$template->param( reserve_in_future => 1 ); |
623 |
$template->param( reserve_in_future => 1 ); |
| 627 |
} |
624 |
} |
| 628 |
- |
|
|