View | Details | Raw Unified | Return to bug 4858
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +2 lines)
Lines 1535-1543 Link Here
1535
                                    [% IF print_notice_charging && !patron_has_email %]
1535
                                    [% IF print_notice_charging && !patron_has_email %]
1536
                                        <div class="alert alert-warning">
1536
                                        <div class="alert alert-warning">
1537
                                            <i class="fa fa-exclamation-triangle"></i>
1537
                                            <i class="fa fa-exclamation-triangle"></i>
1538
                                            <strong>Notice:</strong> This patron has no email address.
1538
                                            <strong>Notice:</strong> This patron has no email address. Print notices will incur a charge of [% print_notice_charge_amount | $Price %] each. Consider encouraging the patron to provide an email
1539
                                            Print notices will incur a charge of [% print_notice_charge_amount | $Price %] each.
1539
                                            address to avoid these charges.
1540
                                            Consider encouraging the patron to provide an email address to avoid these charges.
1541
                                        </div>
1540
                                        </div>
1542
                                    [% END %]
1541
                                    [% END %]
1543
                                    <div class="messaging_prefs">
1542
                                    <div class="messaging_prefs">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt (+14 lines)
Lines 69-74 Link Here
69
                    [% END %]
69
                    [% END %]
70
70
71
                    [% PROCESS 'account-table.inc' ACCOUNT_LINES = ACCOUNT_LINES, ENABLE_OPAC_PAYMENTS = ENABLE_OPAC_PAYMENTS, plugins = plugins %]
71
                    [% PROCESS 'account-table.inc' ACCOUNT_LINES = ACCOUNT_LINES, ENABLE_OPAC_PAYMENTS = ENABLE_OPAC_PAYMENTS, plugins = plugins %]
72
73
                    [% IF logged_in_user.category.print_notice_charge > 0 %]
74
                        <div class="alert alert-info">
75
                            <h5><i class="fa fa-info-circle"></i> About Print Notice Charges</h5>
76
                            <p>Print notice charges of [% logged_in_user.category.print_notice_charge | $Price %]
77
                               each help cover postage and processing costs when notices are sent by mail.</p>
78
                            <p><strong>To avoid future print notice charges:</strong></p>
79
                            <ul>
80
                                <li>Make sure your <a href="/cgi-bin/koha/opac-memberentry.pl">contact information</a> includes an email address</li>
81
                                <li>Update your <a href="/cgi-bin/koha/opac-messaging.pl">messaging preferences</a> to use email instead of print</li>
82
                                <li>Contact library staff to review your notification settings</li>
83
                            </ul>
84
                        </div>
85
                    [% END %]
72
                </div>
86
                </div>
73
                <!-- / #useraccount -->
87
                <!-- / #useraccount -->
74
            </div>
88
            </div>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (+37 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Price %]
3
[% USE AdditionalContents %]
4
[% USE AdditionalContents %]
4
[% PROCESS 'i18n.inc' %]
5
[% PROCESS 'i18n.inc' %]
5
[% PROCESS 'html_helpers.inc' %]
6
[% PROCESS 'html_helpers.inc' %]
Lines 43-48 Link Here
43
                                ><p><strong>Settings updated</strong></p></div
44
                                ><p><strong>Settings updated</strong></p></div
44
                            >
45
                            >
45
                        [% END %]
46
                        [% END %]
47
                        [% IF print_notice_charging && !patron_has_email %]
48
                            <div class="alert alert-warning">
49
                                <h4><i class="fa fa-exclamation-triangle"></i> Print Notice Charges</h4>
50
                                <p><strong>Important:</strong> Print notices incur a charge of
51
                                   [% print_notice_charge_amount | $Price %] each to cover postage and processing costs.</p>
52
                                <p>To avoid these charges, please:</p>
53
                                <ul>
54
                                    <li>Provide an email address in your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li>
55
                                    <li>Select email delivery for your notice preferences below</li>
56
                                    <li>Uncheck any print notice options if they are enabled</li>
57
                                </ul>
58
                            </div>
59
                        [% END %]
60
46
                        <form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging">
61
                        <form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging">
47
                            [% INCLUDE 'csrf-token.inc' %]
62
                            [% INCLUDE 'csrf-token.inc' %]
48
                            <input type="hidden" name="op" value="cud-modify" />
63
                            <input type="hidden" name="op" value="cud-modify" />
Lines 276-281 Link Here
276
                                </table>
291
                                </table>
277
                            [% END %]
292
                            [% END %]
278
293
294
                            [% IF print_notice_charging %]
295
                                <div class="alert alert-info">
296
                                    <h5><i class="fa fa-info-circle"></i> About Print Notice Charges</h5>
297
                                    <p>Print notices incur a charge of
298
                                       [% IF print_notice_charge_amount %][% print_notice_charge_amount | $Price %][% ELSE %]0.00[% END %]
299
                                       each to cover postage and processing costs.</p>
300
                                    <p><strong>To avoid these charges:</strong></p>
301
                                    <ul>
302
                                        [% IF !patron_has_email %]
303
                                            <li><strong>Add an email address</strong> to your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li>
304
                                        [% END %]
305
                                        <li>Select "Email" instead of any print options for your notice preferences above</li>
306
                                        <li>Ask library staff to disable print notices for your account</li>
307
                                    </ul>
308
                                    [% IF patron_has_email %]
309
                                        <p class="text-success">✓ You have an email address on file. Make sure to select email delivery for notices to avoid print charges.</p>
310
                                    [% ELSE %]
311
                                        <p class="text-warning"><strong>⚠ Important:</strong> You don't have an email address on file. Print notices may be automatically selected for your account.</p>
312
                                    [% END %]
313
                                </div>
314
                            [% END %]
315
279
                            [% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %]
316
                            [% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %]
280
                                <fieldset class="rows d-print-none">
317
                                <fieldset class="rows d-print-none">
281
                                    <ol>
318
                                    <ol>
(-)a/opac/opac-messaging.pl (-1 / +9 lines)
Lines 87-92 $template->param( Link Here
87
    enforce_expiry_notice => $patron->category->enforce_expiry_notice,
87
    enforce_expiry_notice => $patron->category->enforce_expiry_notice,
88
);
88
);
89
89
90
# Print notice charging context - category-based
91
if ($patron && $patron->category && $patron->category->print_notice_charge > 0) {
92
    $template->param(
93
        print_notice_charging => 1,
94
        print_notice_charge_amount => $patron->category->print_notice_charge,
95
        patron_has_email => $patron->notice_email_address,
96
    );
97
}
98
90
if ( $opac_messaging && C4::Context->preference("SMSSendDriver") eq 'Email' ) {
99
if ( $opac_messaging && C4::Context->preference("SMSSendDriver") eq 'Email' ) {
91
    my @providers = Koha::SMS::Providers->search( {}, { order_by => 'name' } )->as_list;
100
    my @providers = Koha::SMS::Providers->search( {}, { order_by => 'name' } )->as_list;
92
    $template->param(
101
    $template->param(
93
- 

Return to bug 4858