|
Lines 573-580
sub pickup_locations {
Link Here
|
| 573 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
573 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
| 574 |
|
574 |
|
| 575 |
if(defined $patron) { |
575 |
if(defined $patron) { |
| 576 |
return Koha::Libraries->new()->empty if $branchitemrule->{holdallowed} == 3 && !$self->home_branch->validate_hold_sibling( {branchcode => $patron->branchcode} ); |
576 |
return Koha::Libraries->search(\'0 = 1') if $branchitemrule->{holdallowed} == 3 && !$self->home_branch->validate_hold_sibling( {branchcode => $patron->branchcode} ); |
| 577 |
return Koha::Libraries->new()->empty if $branchitemrule->{holdallowed} == 1 && $self->home_branch->branchcode ne $patron->branchcode; |
577 |
return Koha::Libraries->search(\'0 = 1') if $branchitemrule->{holdallowed} == 1 && $self->home_branch->branchcode ne $patron->branchcode; |
| 578 |
} |
578 |
} |
| 579 |
|
579 |
|
| 580 |
my $pickup_libraries = Koha::Libraries->search(); |
580 |
my $pickup_libraries = Koha::Libraries->search(); |
| 581 |
- |
|
|