Bugzilla – Attachment 121325 Details for
Bug 28437
Provide 'print' as an option for patron messaging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28437: [POC] Add 'print' option to messaging preferences
Bug-28437-POC-Add-print-option-to-messaging-prefer.patch (text/plain), 3.33 KB, created by
Nick Clemens (kidclamp)
on 2021-05-24 12:57:55 UTC
(
hide
)
Description:
Bug 28437: [POC] Add 'print' option to messaging preferences
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-05-24 12:57:55 UTC
Size:
3.33 KB
patch
obsolete
>From 9f14fbf144cd1a5edb25106bb60d290557616dcc Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >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') %]<th>SMS</th>[% END %] > [% IF Koha.Preference('TalkingTechItivaPhoneNotification') || Koha.Preference('PhoneNotification') %]<th>Phone</th>[% END %] > <th>Email</th> >+ <th>Print</th> > <th>Digests only <i id="info_digests" data-toggle="tooltip" title="You can ask for a digest to reduce the number of messages. Messages will be saved and sent as a single message." data-placement="right" class="fa fa-info-circle"></i></th> > <!-- <th>RSS</th> --> > </tr> >@@ -180,6 +181,36 @@ > <td>-</td> > [% END %] > >+ [% IF ( messaging_preference.transport_print ) %] >+ <td> >+ [% IF ( messaging_form_inactive ) %] >+ [% IF ( messaging_preference.transports_print ) %] >+ <input type="checkbox" >+ id="email[% messaging_preference.message_attribute_id | html %]" >+ name="[% messaging_preference.message_attribute_id | html %]" >+ value="print" class="pmp_print" checked="checked" disabled="disabled" /> >+ [% ELSE %] >+ <input type="checkbox" >+ id="email[% messaging_preference.message_attribute_id | html %]" >+ name="[% messaging_preference.message_attribute_id | html %]" >+ value="email" class="pmp_print" disabled="disabled" /> >+ [% END %] >+ [% ELSE %] >+ [% IF ( messaging_preference.transports_print ) %] >+ <input type="checkbox" >+ id="email[% messaging_preference.message_attribute_id | html %]" >+ name="[% messaging_preference.message_attribute_id | html %]" >+ value="print" checked="checked" class="pmp_print active_notify" data-attr-id="[% messaging_preference.message_attribute_id | html %]" /> >+ [% ELSE %] >+ <input type="checkbox" >+ id="email[% messaging_preference.message_attribute_id | html %]" >+ name="[% messaging_preference.message_attribute_id | html %]" >+ value="print" class="pmp_print active_notify" data-attr-id="[% messaging_preference.message_attribute_id | html %]" /> >+ [% END %] >+ [% END %] >+ </td> >+ [% END %] >+ > [% IF ( messaging_preference.has_digest ) %] > <td> > [% IF ( messaging_form_inactive ) %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28437
: 121325