From c7026b28718897c45b8c2f9b9946f40fcf00eb4d Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 11 Dec 2014 18:38:31 -0500 Subject: [PATCH] Corrected KPAC hold notification code to allow for text messaging preferences. Signed-off-by: Terran McCanna --- Open-ILS/src/templates/kpac/getit.tt2 | 42 +++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index 15d51c2b55..6ad3562964 100644 --- a/Open-ILS/src/templates/kpac/getit.tt2 +++ b/Open-ILS/src/templates/kpac/getit.tt2 @@ -78,26 +78,40 @@ [%- IF ctx.notify_method -%] - [%- IF ctx.notify_method == '' OR ctx.notify_method == 'phone:email' -%] + [%- IF ctx.notify_method == '' -%] [%- SET ctx.notify_method = 'email|phone' -%] [%- END -%] [%- ELSE -%] [%- SET ctx.notify_method = 'email|phone' -%] [%- END -%] + + + [% ctx.notify_method.search('email') ? + '' : '' %] + + + [%- IF allow_phone_notifications == 'true' -%] + [% IF ctx.default_phone %] + [% phone_value = ctx.default_phone %] + [% ELSE %] + [% phone_value= ctx.user.day_phone %] + [% END %] + + [% ctx.notify_method.search('phone') ? + ' + ' : '' %] + [%- END -%] + - [%- IF ctx.user.email -%] - [%- IF ctx.notify_method == 'email' OR ctx.notify_method == 'email|phone' -%] - - [%- END -%] - [%- END -%] - - [%- IF allow_phone_notifications == 'true' -%] - [%- IF ctx.notify_method == 'phone' OR ctx.notify_method == 'email|phone' -%] - - - [%- END -%] - [%- END -%] + [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %] + [% setting_notify = 'opac.default_sms_notify'; + setting_carrier = 'opac.default_sms_carrier'; %] + [% ctx.notify_method.search('sms') ? + ' + + ' : '' %] + [% END %] + [% END %] -- 2.11.0