Lines 241-246
if ( $query->param('place_reserve') ) {
Link Here
|
241 |
$branch = $patron->branchcode; |
241 |
$branch = $patron->branchcode; |
242 |
} |
242 |
} |
243 |
|
243 |
|
|
|
244 |
# When choosing a specific item, the default pickup library should be dictated by the default hold policy |
245 |
if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $itemNum ) { |
246 |
my $item = Koha::Items->find( $itemNum ); |
247 |
my $type = $item->effective_itemtype; |
248 |
my $rule = GetBranchItemRule( $patron->branchcode, $type ); |
249 |
|
250 |
if ( $rule->{hold_fulfillment_policy} eq 'any' ) { |
251 |
$branch = $patron->branchcode; |
252 |
} else { |
253 |
my $policy = $rule->{hold_fulfillment_policy}; |
254 |
$branch = $item->$policy; |
255 |
} |
256 |
} |
257 |
|
244 |
#item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber |
258 |
#item may belong to a host biblio, if yes change biblioNum to hosts bilbionumber |
245 |
if ( $itemNum ne '' ) { |
259 |
if ( $itemNum ne '' ) { |
246 |
my $item = Koha::Items->find( $itemNum ); |
260 |
my $item = Koha::Items->find( $itemNum ); |
247 |
- |
|
|