From: Terran McCanna Date: Thu, 11 Dec 2014 23:38:31 +0000 (-0500) Subject: Corrected KPAC hold notification code to allow for text messaging preferences. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f87bf92bdaff4ffec992cec37312f5648bfc5afc;p=evergreen%2Fpines.git Corrected KPAC hold notification code to allow for text messaging preferences. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index 87bd70b2f2..8c2a5870ae 100644 --- a/Open-ILS/src/templates/kpac/getit.tt2 +++ b/Open-ILS/src/templates/kpac/getit.tt2 @@ -78,12 +78,30 @@ [%- 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 -%] [% ctx.notify_method.search('email') ?