Lines 2037-2061
sub _koha_notify_reserve {
Link Here
|
2037 |
}; |
2037 |
}; |
2038 |
|
2038 |
|
2039 |
while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) { |
2039 |
while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) { |
2040 |
next |
2040 |
if ( |
2041 |
if ( |
|
|
2042 |
( $mtt eq 'email' and not $to_address ) # No email address |
2041 |
( $mtt eq 'email' and not $to_address ) # No email address |
2043 |
or ( $mtt eq 'sms' and not $patron->smsalertnumber ) # No SMS number |
2042 |
or ( $mtt eq 'sms' and not $patron->smsalertnumber ) # No SMS number |
2044 |
or ( $mtt eq 'itiva' |
2043 |
or ( $mtt eq 'itiva' |
2045 |
and C4::Context->preference('TalkingTechItivaPhoneNotification') |
2044 |
and C4::Context->preference('TalkingTechItivaPhoneNotification') |
2046 |
) # Notice is handled by TalkingTech_itiva_outbound.pl |
2045 |
) # Notice is handled by TalkingTech_itiva_outbound.pl |
2047 |
or ( $mtt eq 'phone' and not $patron->phone ) # No phone number to call |
2046 |
or ( $mtt eq 'phone' and not $patron->phone ) # No phone number to call |
2048 |
); |
2047 |
) |
|
|
2048 |
{ |
2049 |
unless ($notification_sent) { |
2050 |
$notification_sent++; |
2051 |
&$send_notification( 'print', 'HOLD' ); |
2052 |
} |
2053 |
next; |
2054 |
} |
2049 |
|
2055 |
|
2050 |
&$send_notification( $mtt, $letter_code, $messagingprefs->{wants_digest} ); |
2056 |
&$send_notification( $mtt, $letter_code, $messagingprefs->{wants_digest} ); |
2051 |
$notification_sent++; |
|
|
2052 |
} |
2053 |
|
2054 |
#Making sure that a print notification is sent if no other transport types can be utilized. |
2055 |
if ( !$notification_sent ) { |
2056 |
&$send_notification( 'print', 'HOLD' ); |
2057 |
} |
2057 |
} |
2058 |
|
|
|
2059 |
} |
2058 |
} |
2060 |
|
2059 |
|
2061 |
=head2 _koha_notify_hold_changed |
2060 |
=head2 _koha_notify_hold_changed |
2062 |
- |
|
|