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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (-1 / +1 lines)
Lines 22-28 Link Here
22
                <li><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></li>
22
                <li><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></li>
23
            [% END %]
23
            [% END %]
24
            [% IF ( CAN_user_tools_edit_notices ) %]
24
            [% IF ( CAN_user_tools_edit_notices ) %]
25
                <li><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></li>
25
                <li><a href="/cgi-bin/koha/tools/letter.pl">Templates</a></li>
26
            [% END %]
26
            [% END %]
27
            [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
27
            [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
28
                <li><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></li>
28
                <li><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-2 / +2 lines)
Lines 597-604 Link Here
597
                        <tr>
597
                        <tr>
598
                            <th scope="row"><strong>Warning</strong> </th>
598
                            <th scope="row"><strong>Warning</strong> </th>
599
                            <td
599
                            <td
600
                                >System preference 'NotifyPasswordChange' is enabled, but the PASSWORD_CHANGE notice template is missing. Patrons will not be notified about password changes. Please create the PASSWORD_CHANGE notice template
600
                                >System preference 'NotifyPasswordChange' is enabled, but the PASSWORD_CHANGE notice template is missing. Patrons will not be notified about password changes. Please create the PASSWORD_CHANGE template in
601
                                in <a href="/cgi-bin/koha/tools/letter.pl">Tools &gt; Notices and slips</a>.</td
601
                                <a href="/cgi-bin/koha/tools/letter.pl">Tools &gt; Templates</a>.</td
602
                            >
602
                            >
603
                        </tr>
603
                        </tr>
604
                    [% END %]
604
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref (-2 / +2 lines)
Lines 73-77 I18N/L10N: Link Here
73
          choices:
73
          choices:
74
              1: Allow
74
              1: Allow
75
              0: "Don't allow"
75
              0: "Don't allow"
76
        - notices to be translated.
76
        - templates to be translated.
77
        - If set, notices will be translatable from the "Notices and slips" interface. The language used to send a notice to a patron will be the one defined for the patron.
77
        - If set, templates will be translatable from the "Templates" interface. The language used to send a notice to a patron will be the one defined for the patron.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-21 / +21 lines)
Lines 11-25 Link Here
11
    >[% FILTER collapse %]
11
    >[% FILTER collapse %]
12
        [% IF ( add_form or copy_form ) %]
12
        [% IF ( add_form or copy_form ) %]
13
            [% IF ( modify ) %]
13
            [% IF ( modify ) %]
14
                [% t("Modify notice") | html %]
14
                [% t("Modify template") | html %]
15
                &rsaquo;
15
                &rsaquo;
16
            [% ELSE %]
16
            [% ELSE %]
17
                [% t("New notice") | html %]
17
                [% t("New template") | html %]
18
                &rsaquo;
18
                &rsaquo;
19
            [% END %]
19
            [% END %]
20
        [% END %]
20
        [% END %]
21
        [% IF ( add_validate or copy_validate) %]
21
        [% IF ( add_validate or copy_validate) %]
22
            [% t("Notice added") | html %]
22
            [% t("Template added") | html %]
23
            &rsaquo;
23
            &rsaquo;
24
        [% END %]
24
        [% END %]
25
        [% IF ( delete_confirm ) %]
25
        [% IF ( delete_confirm ) %]
Lines 30-36 Link Here
30
            [% Branches.GetName( branchcode ) | html %]
30
            [% Branches.GetName( branchcode ) | html %]
31
            &rsaquo;
31
            &rsaquo;
32
        [% END %]
32
        [% END %]
33
        [% t("Notices and slips") | html %]
33
        [% t("Templates") | html %]
34
        &rsaquo; [% t("Tools") | html %] &rsaquo; [% t("Koha") | html %]
34
        &rsaquo; [% t("Tools") | html %] &rsaquo; [% t("Koha") | html %]
35
    [% END %]</title
35
    [% END %]</title
36
>
36
>
Lines 83-100 Link Here
83
83
84
        [% IF ( add_form OR copy_form OR add_validate OR copy_validate OR delete_confirm OR branchcode ) %]
84
        [% IF ( add_form OR copy_form OR add_validate OR copy_validate OR delete_confirm OR branchcode ) %]
85
            [% WRAPPER breadcrumb_item %]
85
            [% WRAPPER breadcrumb_item %]
86
                <a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a>
86
                <a href="/cgi-bin/koha/tools/letter.pl">Templates</a>
87
            [% END %]
87
            [% END %]
88
        [% END %]
88
        [% END %]
89
89
90
        [% IF ( add_form or copy_form) %]
90
        [% IF ( add_form or copy_form) %]
91
            [% IF ( modify ) %]
91
            [% IF ( modify ) %]
92
                [% WRAPPER breadcrumb_item bc_active= 1 %]
92
                [% WRAPPER breadcrumb_item bc_active= 1 %]
93
                    <span>Modify notice</span>
93
                    <span>Modify template</span>
94
                [% END %]
94
                [% END %]
95
            [% ELSE %]
95
            [% ELSE %]
96
                [% WRAPPER breadcrumb_item bc_active= 1 %]
96
                [% WRAPPER breadcrumb_item bc_active= 1 %]
97
                    <span>New notice</span>
97
                    <span>New template</span>
98
                [% END %]
98
                [% END %]
99
            [% END # /IF modify %]
99
            [% END # /IF modify %]
100
        [% ELSIF ( branchcode ) %]
100
        [% ELSIF ( branchcode ) %]
Lines 104-110 Link Here
104
        [% ELSE %]
104
        [% ELSE %]
105
            [% IF ( add_validate or copy_validate) %]
105
            [% IF ( add_validate or copy_validate) %]
106
                [% WRAPPER breadcrumb_item bc_active= 1 %]
106
                [% WRAPPER breadcrumb_item bc_active= 1 %]
107
                    <span>Notice added</span>
107
                    <span>Template added</span>
108
                [% END %]
108
                [% END %]
109
            [% ELSE %]
109
            [% ELSE %]
110
                [% IF ( delete_confirm ) %]
110
                [% IF ( delete_confirm ) %]
Lines 113-119 Link Here
113
                    [% END %]
113
                    [% END %]
114
                [% ELSE %]
114
                [% ELSE %]
115
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
115
                    [% WRAPPER breadcrumb_item bc_active= 1 %]
116
                        <span>Notices and slips</span>
116
                        <span>Templates</span>
117
                    [% END %]
117
                    [% END %]
118
                [% END # /IF ( delete_confirm ) %]
118
                [% END # /IF ( delete_confirm ) %]
119
            [% END # /IF ( add_validate or copy_validate) %]
119
            [% END # /IF ( add_validate or copy_validate) %]
Lines 125-131 Link Here
125
    <div class="modal-dialog modal-lg">
125
    <div class="modal-dialog modal-lg">
126
        <div class="modal-content">
126
        <div class="modal-content">
127
            <div class="modal-header">
127
            <div class="modal-header">
128
                <h1 class="modal-title" id="preview_template_label">Preview notice template</h1>
128
                <h1 class="modal-title" id="preview_template_label">Preview template</h1>
129
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
129
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
130
            </div>
130
            </div>
131
            <div class="modal-body">
131
            <div class="modal-body">
Lines 168-174 Link Here
168
[% WRAPPER 'main-container.inc' aside=aside %]
168
[% WRAPPER 'main-container.inc' aside=aside %]
169
169
170
    [% IF ( no_op_set ) %]
170
    [% IF ( no_op_set ) %]
171
        <h1>Notices and slips</h1>
171
        <h1>Templates</h1>
172
        [% IF ( branchcode ) %]
172
        [% IF ( branchcode ) %]
173
            <h2>[% Branches.GetName( branchcode ) | html %]</h2>
173
            <h2>[% Branches.GetName( branchcode ) | html %]</h2>
174
        [% END %]
174
        [% END %]
Lines 188-194 Link Here
188
188
189
        <div id="toolbar" class="btn-toolbar">
189
        <div id="toolbar" class="btn-toolbar">
190
            <div class="btn-group">
190
            <div class="btn-group">
191
                <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New notice</button>
191
                <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New template</button>
192
                <ul class="dropdown-menu">
192
                <ul class="dropdown-menu">
193
                    <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;module=acquisition">Acquisition</a></li>
193
                    <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;module=acquisition">Acquisition</a></li>
194
                    <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;module=catalogue">Catalog</a></li>
194
                    <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;module=catalogue">Catalog</a></li>
Lines 237-243 Link Here
237
                            <th>Code</th>
237
                            <th>Code</th>
238
                            <th>Name</th>
238
                            <th>Name</th>
239
                            <th>Last updated</th>
239
                            <th>Last updated</th>
240
                            <th class="no-sort no-export">Copy notice</th>
240
                            <th class="no-sort no-export">Copy template</th>
241
                            <th class="no-sort no-export">Actions</th>
241
                            <th class="no-sort no-export">Actions</th>
242
                        </tr>
242
                        </tr>
243
                    </thead>
243
                    </thead>
Lines 337-345 Link Here
337
        [% ELSE # IF lette %]
337
        [% ELSE # IF lette %]
338
            <div class="alert alert-info">
338
            <div class="alert alert-info">
339
                [% IF ( branchcode ) %]
339
                [% IF ( branchcode ) %]
340
                    <p>There are no notices for this library.</p>
340
                    <p>There are no templates for this library.</p>
341
                [% ELSE %]
341
                [% ELSE %]
342
                    <p>There are no notices.</p>
342
                    <p>There are no templates.</p>
343
                [% END %]
343
                [% END %]
344
            </div>
344
            </div>
345
        [% END # /IF lette %]
345
        [% END # /IF lette %]
Lines 348-356 Link Here
348
    [% IF add_form or copy_form %]
348
    [% IF add_form or copy_form %]
349
        <h1>
349
        <h1>
350
            [% IF ( modify ) %]
350
            [% IF ( modify ) %]
351
                <span>Modify notice</span>
351
                <span>Modify template</span>
352
            [% ELSE %]
352
            [% ELSE %]
353
                <span>New notice</span>
353
                <span>New template</span>
354
            [% END %]
354
            [% END %]
355
        </h1>
355
        </h1>
356
356
Lines 587-593 Link Here
587
587
588
    [% IF ( delete_confirm ) %]
588
    [% IF ( delete_confirm ) %]
589
        <div class="alert alert-warning">
589
        <div class="alert alert-warning">
590
            <h1>Delete notice?</h1>
590
            <h1>Delete template?</h1>
591
            <table>
591
            <table>
592
                <thead>
592
                <thead>
593
                    <tr>
593
                    <tr>
Lines 776-782 Link Here
776
                                    <a
776
                                    <a
777
                                        href="/cgi-bin/koha/svc/letters/preview"
777
                                        href="/cgi-bin/koha/svc/letters/preview"
778
                                        class="preview_template btn btn-default btn-xs"
778
                                        class="preview_template btn btn-default btn-xs"
779
                                        title="Preview this notice template"
779
                                        title="Preview this template"
780
                                        data-mtt="[% letter.message_transport_type | html %]"
780
                                        data-mtt="[% letter.message_transport_type | html %]"
781
                                        data-lang="[% lang | html %]"
781
                                        data-lang="[% lang | html %]"
782
                                        ><i class="fa-solid fa-eye"></i> Preview</a
782
                                        ><i class="fa-solid fa-eye"></i> Preview</a
Lines 810-816 Link Here
810
            <div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading">
810
            <div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading">
811
                <div class="panel-body">
811
                <div class="panel-body">
812
                    <fieldset class="rows">
812
                    <fieldset class="rows">
813
                        <div class="alert alert-info">These format settings apply when a notice is printed.</div>
813
                        <div class="alert alert-info">These format settings apply when a template is printed.</div>
814
                        <div class="col-md-12">
814
                        <div class="col-md-12">
815
                            <ol>
815
                            <ol>
816
                                <li id="css-helpers">
816
                                <li id="css-helpers">
Lines 824-830 Link Here
824
                                    <textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea>
824
                                    <textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea>
825
                                </li>
825
                                </li>
826
                                <li class="format_all_notices_option">
826
                                <li class="format_all_notices_option">
827
                                    <label for="format_all_[% lang | html %]">Apply format settings to all notices[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label>
827
                                    <label for="format_all_[% lang | html %]">Apply format settings to all templates[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label>
828
                                    <input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" />
828
                                    <input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" />
829
                                    <span class="hint">Existing format settings will be overwritten.</span>
829
                                    <span class="hint">Existing format settings will be overwritten.</span>
830
                                </li>
830
                                </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-2 / +2 lines)
Lines 59-66 Link Here
59
                [% END %]
59
                [% END %]
60
60
61
                [% IF ( CAN_user_tools_edit_notices ) %]
61
                [% IF ( CAN_user_tools_edit_notices ) %]
62
                    <dt><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></dt>
62
                    <dt><a href="/cgi-bin/koha/tools/letter.pl">Templates</a></dt>
63
                    <dd>Define notices (print and email notification messages for overdues, etc.)</dd>
63
                    <dd>Define custom templates, including notices and slips</dd>
64
                [% END %]
64
                [% END %]
65
65
66
                [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
66
                [% IF ( CAN_user_tools_edit_notice_status_triggers ) %]
(-)a/misc/cronjobs/advance_notices.pl (-1 / +1 lines)
Lines 121-127 Defaults to 'item-issuebranch' Link Here
121
=head2 Configuration
121
=head2 Configuration
122
122
123
This script pays attention to the advanced notice configuration
123
This script pays attention to the advanced notice configuration
124
performed by borrowers in the OPAC, or by staff in the patron detail page of the intranet. The content of the messages is configured in Tools -> Notices and slips. Advanced notices use the PREDUE template, due notices use DUE. More information about the use of this
124
performed by borrowers in the OPAC, or by staff in the patron detail page of the intranet. The content of the messages is configured in Tools -> Templates. Advanced notices use the PREDUE template, due notices use DUE. More information about the use of this
125
section of Koha is available in the Koha manual.
125
section of Koha is available in the Koha manual.
126
126
127
=head2 Outgoing emails
127
=head2 Outgoing emails
(-)a/misc/cronjobs/holds/holds_reminder.pl (-1 / +1 lines)
Lines 130-136 holds. Link Here
130
=head2 Configuration
130
=head2 Configuration
131
131
132
This script sends reminders to patrons with waiting holds using a notice
132
This script sends reminders to patrons with waiting holds using a notice
133
defined in the Tools > Notices and slips module within Koha. The lettercode
133
defined in the Tools > Templates module within Koha. The lettercode
134
is passed into this script and, along with other options, determine the content
134
is passed into this script and, along with other options, determine the content
135
of the notices sent to patrons.
135
of the notices sent to patrons.
136
136
(-)a/misc/cronjobs/membership_expiry.pl (-2 / +1 lines)
Lines 124-130 They will be informed by a patron renewal notice. Link Here
124
124
125
=head1 CONFIGURATION
125
=head1 CONFIGURATION
126
126
127
The content of the messages is configured in Tools -> Notices and slips. Use the MEMBERSHIP_EXPIRY notice or
127
The content of the messages is configured in Tools -> Templates. Use the MEMBERSHIP_EXPIRY notice or
128
supply another via the parameters.
128
supply another via the parameters.
129
129
130
Typically, messages are prepared for each patron when the memberships are going to expire.
130
Typically, messages are prepared for each patron when the memberships are going to expire.
131
- 

Return to bug 36525