From 9f14fbf144cd1a5edb25106bb60d290557616dcc Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 24 May 2021 12:56:39 +0000 Subject: [PATCH] Bug 28437: [POC] Add 'print' option to messaging preferences This patch simply adds a print option to the patron messaging preferences form on the staff side. Doing so seems to work for message generation as we simply loop on the transports selected. We would need ot add the same to forms on the OPAC, but as a POC this works --- .../prog/en/includes/messaging-preference-form.inc | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc index 1d508565d8..388b569bef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc @@ -9,6 +9,7 @@ [% IF Koha.Preference('SMSSendDriver') %]SMS[% END %] [% IF Koha.Preference('TalkingTechItivaPhoneNotification') || Koha.Preference('PhoneNotification') %]Phone[% END %] Email + Print Digests only @@ -180,6 +181,36 @@ - [% END %] + [% IF ( messaging_preference.transport_print ) %] + + [% IF ( messaging_form_inactive ) %] + [% IF ( messaging_preference.transports_print ) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + [% IF ( messaging_preference.transports_print ) %] + + [% ELSE %] + + [% END %] + [% END %] + + [% END %] + [% IF ( messaging_preference.has_digest ) %] [% IF ( messaging_form_inactive ) %] -- 2.11.0