Lines 460-473
sub cancellation_requestable_from_opac {
Link Here
|
460 |
$controlbranch = $item->homebranch; |
460 |
$controlbranch = $item->homebranch; |
461 |
} |
461 |
} |
462 |
|
462 |
|
463 |
return Koha::CirculationRules->get_effective_rule( |
463 |
my $rule = Koha::CirculationRules->get_effective_rule( |
464 |
{ |
464 |
{ |
465 |
categorycode => $patron->categorycode, |
465 |
categorycode => $patron->categorycode, |
466 |
itemtype => $item->itype, |
466 |
itemtype => $item->itype, |
467 |
branchcode => $controlbranch, |
467 |
branchcode => $controlbranch, |
468 |
rule_name => 'waiting_hold_cancellation', |
468 |
rule_name => 'waiting_hold_cancellation', |
469 |
} |
469 |
} |
470 |
)->rule_value ? 1 : 0; |
470 |
); |
|
|
471 |
return ( $rule && $rule->rule_value ) ? 1 : 0; |
471 |
} |
472 |
} |
472 |
|
473 |
|
473 |
=head3 is_at_destination |
474 |
=head3 is_at_destination |
474 |
- |
|
|