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

(-)a/C4/Reserves.pm (-11 / +9 lines)
Lines 2054-2078 sub _koha_notify_reserve { Link Here
2054
    };
2054
    };
2055
2055
2056
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
2056
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
2057
        next
2057
        if (
2058
            if (
2059
            ( $mtt eq 'email'  and not $to_address )                # No email address
2058
            ( $mtt eq 'email'  and not $to_address )                # No email address
2060
            or ( $mtt eq 'sms' and not $patron->smsalertnumber )    # No SMS number
2059
            or ( $mtt eq 'sms' and not $patron->smsalertnumber )    # No SMS number
2061
            or ( $mtt eq 'itiva'
2060
            or ( $mtt eq 'itiva'
2062
                and C4::Context->preference('TalkingTechItivaPhoneNotification')
2061
                and C4::Context->preference('TalkingTechItivaPhoneNotification')
2063
            )                                                       # Notice is handled by TalkingTech_itiva_outbound.pl
2062
            )                                                       # Notice is handled by TalkingTech_itiva_outbound.pl
2064
            or ( $mtt eq 'phone' and not $patron->phone )           # No phone number to call
2063
            or ( $mtt eq 'phone' and not $patron->phone )           # No phone number to call
2065
            );
2064
            )
2065
        {
2066
            unless ($notification_sent) {
2067
                $notification_sent++;
2068
                &$send_notification( 'print', 'HOLD' );
2069
            }
2070
            next;
2071
        }
2066
2072
2067
        &$send_notification( $mtt, $letter_code, $messagingprefs->{wants_digest} );
2073
        &$send_notification( $mtt, $letter_code, $messagingprefs->{wants_digest} );
2068
        $notification_sent++;
2069
    }
2070
2071
    #Making sure that a print notification is sent if no other transport types can be utilized.
2072
    if ( !$notification_sent ) {
2073
        &$send_notification( 'print', 'HOLD' );
2074
    }
2074
    }
2075
2076
}
2075
}
2077
2076
2078
=head2 _koha_notify_hold_changed
2077
=head2 _koha_notify_hold_changed
2079
- 

Return to bug 40960