|
Lines 975-981
sub CheckReserves {
Link Here
|
| 975 |
$patron //= Koha::Patrons->find( $res->{borrowernumber} ); |
975 |
$patron //= Koha::Patrons->find( $res->{borrowernumber} ); |
| 976 |
my $branch = Koha::Policy::Holds->holds_control_library( $item, $patron ); |
976 |
my $branch = Koha::Policy::Holds->holds_control_library( $item, $patron ); |
| 977 |
my $branchitemrule = C4::Circulation::GetBranchItemRule($branch,$item->effective_itemtype); |
977 |
my $branchitemrule = C4::Circulation::GetBranchItemRule($branch,$item->effective_itemtype); |
| 978 |
next if ($branchitemrule->{'holdallowed'} eq 'not_allowed'); |
|
|
| 979 |
next if (($branchitemrule->{'holdallowed'} eq 'from_home_library') && ($item->homebranch ne $patron->branchcode)); |
978 |
next if (($branchitemrule->{'holdallowed'} eq 'from_home_library') && ($item->homebranch ne $patron->branchcode)); |
| 980 |
my $library = Koha::Libraries->find({branchcode=>$item->homebranch}); |
979 |
my $library = Koha::Libraries->find({branchcode=>$item->homebranch}); |
| 981 |
next if (($branchitemrule->{'holdallowed'} eq 'from_local_hold_group') && (!$library->validate_hold_sibling({branchcode => $patron->branchcode}) )); |
980 |
next if (($branchitemrule->{'holdallowed'} eq 'from_local_hold_group') && (!$library->validate_hold_sibling({branchcode => $patron->branchcode}) )); |
| 982 |
- |
|
|