Lines 1975-1988
sub can_be_waiting_recall {
Link Here
|
1975 |
} |
1975 |
} |
1976 |
|
1976 |
|
1977 |
# Check the circulation rule for each relevant itemtype for this item |
1977 |
# Check the circulation rule for each relevant itemtype for this item |
1978 |
my $rule = Koha::CirculationRules->get_effective_rules({ |
1978 |
my $most_relevant_recall = $self->check_recalls; |
1979 |
branchcode => $branchcode, |
1979 |
my $rule = Koha::CirculationRules->get_effective_rules( |
1980 |
categorycode => $self->check_recalls ? $self->check_recalls->patron->categorycode : undef, |
1980 |
{ |
1981 |
itemtype => $self->effective_itemtype, |
1981 |
branchcode => $branchcode, |
1982 |
rules => [ |
1982 |
categorycode => $most_relevant_recall ? $most_relevant_recall->patron->categorycode : undef, |
1983 |
'recalls_allowed', |
1983 |
itemtype => $self->effective_itemtype, |
1984 |
], |
1984 |
rules => [ 'recalls_allowed', ], |
1985 |
}); |
1985 |
} |
|
|
1986 |
); |
1986 |
|
1987 |
|
1987 |
# check recalls allowed has been set and is not zero |
1988 |
# check recalls allowed has been set and is not zero |
1988 |
return 0 if ( !defined($rule->{recalls_allowed}) || $rule->{recalls_allowed} == 0 ); |
1989 |
return 0 if ( !defined($rule->{recalls_allowed}) || $rule->{recalls_allowed} == 0 ); |
1989 |
- |
|
|