Lines 339-355
sub GetWaitingHolds {
Link Here
|
339 |
|
339 |
|
340 |
my $waiting_date = dt_from_string( $issue->{waitingdate}, 'sql' ); |
340 |
my $waiting_date = dt_from_string( $issue->{waitingdate}, 'sql' ); |
341 |
|
341 |
|
342 |
my $rule = Koha::CirculationRules->get_effective_rule({ |
|
|
343 |
categorycode => $issue->{categorycode}, |
344 |
itemtype => $item->effective_itemtype, |
345 |
branchcode => $issue->{branchcode}, |
346 |
rule_name => 'holds_pickup_period', |
347 |
}); |
348 |
if ( defined($rule) and $rule->rule_value ne '' ){ |
349 |
# circulation rule overrides ReservesMaxPickUpDelay |
350 |
$pickupdelay = $rule->rule_value; |
351 |
} |
352 |
|
353 |
$issue->{'date_due'} = output_pref({dt => dt_from_string($issue->{expirationdate}), dateformat => 'iso' }); |
342 |
$issue->{'date_due'} = output_pref({dt => dt_from_string($issue->{expirationdate}), dateformat => 'iso' }); |
354 |
$issue->{'level'} = 1; # only one level for Hold Waiting notifications |
343 |
$issue->{'level'} = 1; # only one level for Hold Waiting notifications |
355 |
|
344 |
|
356 |
- |
|
|