View | Details | Raw Unified | Return to bug 8367
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_8367-add_holds_pickup_period_circrule.perl (-10 lines)
Lines 1-10 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT INTO circulation_rules (branchcode, categorycode, itemtype, rule_name, rule_value)
5
        SELECT u.* FROM (SELECT NULL as branchcode, NULL as categorycode, NULL as itemtype, 'holds_pickup_period' as rule_name, '' as rule_value) u
6
        WHERE NOT EXISTS ( SELECT rule_name FROM circulation_rules where rule_name = 'holds_pickup_period' );
7
    });
8
9
    NewVersion( $DBversion, 8367, "Add holds_pickup_period circulation rule" );
10
}
(-)a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl (-12 lines)
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
- 

Return to bug 8367