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 1603-1611 Link Here
1603
                                    [% IF print_notice_charging && !patron_has_email %]
1603
                                    [% IF print_notice_charging && !patron_has_email %]
1604
                                        <div class="alert alert-warning">
1604
                                        <div class="alert alert-warning">
1605
                                            <i class="fa fa-exclamation-triangle"></i>
1605
                                            <i class="fa fa-exclamation-triangle"></i>
1606
                                            <strong>Notice:</strong> This patron has no email address.
1606
                                            <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
1607
                                            Print notices will incur a charge of [% print_notice_charge_amount | $Price %] each.
1607
                                            address to avoid these charges.
1608
                                            Consider encouraging the patron to provide an email address to avoid these charges.
1609
                                        </div>
1608
                                        </div>
1610
                                    [% END %]
1609
                                    [% END %]
1611
                                    <div class="messaging_prefs">
1610
                                    <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
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
Lines 36-41 Link Here
36
                                ><p><strong>Settings updated</strong></p></div
37
                                ><p><strong>Settings updated</strong></p></div
37
                            >
38
                            >
38
                        [% END %]
39
                        [% END %]
40
                        [% IF print_notice_charging && !patron_has_email %]
41
                            <div class="alert alert-warning">
42
                                <h4><i class="fa fa-exclamation-triangle"></i> Print Notice Charges</h4>
43
                                <p><strong>Important:</strong> Print notices incur a charge of
44
                                   [% print_notice_charge_amount | $Price %] each to cover postage and processing costs.</p>
45
                                <p>To avoid these charges, please:</p>
46
                                <ul>
47
                                    <li>Provide an email address in your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li>
48
                                    <li>Select email delivery for your notice preferences below</li>
49
                                    <li>Uncheck any print notice options if they are enabled</li>
50
                                </ul>
51
                            </div>
52
                        [% END %]
53
39
                        <form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging">
54
                        <form action="/cgi-bin/koha/opac-messaging.pl" method="post" name="opacmessaging">
40
                            [% INCLUDE 'csrf-token.inc' %]
55
                            [% INCLUDE 'csrf-token.inc' %]
41
                            <input type="hidden" name="op" value="cud-modify" />
56
                            <input type="hidden" name="op" value="cud-modify" />
Lines 269-274 Link Here
269
                                </table>
284
                                </table>
270
                            [% END %]
285
                            [% END %]
271
286
287
                            [% IF print_notice_charging %]
288
                                <div class="alert alert-info">
289
                                    <h5><i class="fa fa-info-circle"></i> About Print Notice Charges</h5>
290
                                    <p>Print notices incur a charge of
291
                                       [% IF print_notice_charge_amount %][% print_notice_charge_amount | $Price %][% ELSE %]0.00[% END %]
292
                                       each to cover postage and processing costs.</p>
293
                                    <p><strong>To avoid these charges:</strong></p>
294
                                    <ul>
295
                                        [% IF !patron_has_email %]
296
                                            <li><strong>Add an email address</strong> to your <a href="/cgi-bin/koha/opac-memberentry.pl">account details</a></li>
297
                                        [% END %]
298
                                        <li>Select "Email" instead of any print options for your notice preferences above</li>
299
                                        <li>Ask library staff to disable print notices for your account</li>
300
                                    </ul>
301
                                    [% IF patron_has_email %]
302
                                        <p class="text-success">✓ You have an email address on file. Make sure to select email delivery for notices to avoid print charges.</p>
303
                                    [% ELSE %]
304
                                        <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>
305
                                    [% END %]
306
                                </div>
307
                            [% END %]
308
272
                            [% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %]
309
                            [% IF ( SMSSendDriver || Koha.Preference('TranslateNotices') ) %]
273
                                <fieldset class="rows d-print-none">
310
                                <fieldset class="rows d-print-none">
274
                                    <ol>
311
                                    <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