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