Lines 230-238
if ( $query->param('place_reserve') ) {
Link Here
|
230 |
my $item = $itemNum ? Koha::Items->find( $itemNum ) : undef; |
230 |
my $item = $itemNum ? Koha::Items->find( $itemNum ) : undef; |
231 |
# When choosing a specific item, the default pickup library should be dictated by the default hold policy |
231 |
# When choosing a specific item, the default pickup library should be dictated by the default hold policy |
232 |
if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $item ) { |
232 |
if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $item ) { |
233 |
my $type = $item->effective_itemtype; |
233 |
my $type = $item->effective_itemtype; |
234 |
my $reserves_control_branch = GetReservesControlBranch($item->unblessed, $patron->unblessed); |
234 |
my $reserves_control_branch = GetReservesControlBranch( $item->unblessed, $patron->unblessed ); |
235 |
my $rule = GetBranchItemRule( $reserves_control_branch, $type ); |
235 |
my $rule = GetBranchItemRule( $reserves_control_branch, $type ); |
236 |
|
236 |
|
237 |
if ( $rule->{hold_fulfillment_policy} eq 'any' || $rule->{hold_fulfillment_policy} eq 'patrongroup' ) { |
237 |
if ( $rule->{hold_fulfillment_policy} eq 'any' || $rule->{hold_fulfillment_policy} eq 'patrongroup' ) { |
238 |
$branch = $patron->branchcode; |
238 |
$branch = $patron->branchcode; |
239 |
- |
|
|