From 133d31e4911cfa3008f92d48b88939db62d7f1a2 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 | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index 08a8cedbc7..9ceef57c64 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') ? -- 2.11.0