Bugzilla – Attachment 188252 Details for
Bug 36525
Rename Notices and slips tool to Templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36525: Get all occurrences of Notices and slips
Bug-36525-Get-all-occurrences-of-Notices-and-slips.patch (text/plain), 14.59 KB, created by
Lucas Gass (lukeg)
on 2025-10-21 17:37:03 UTC
(
hide
)
Description:
Bug 36525: Get all occurrences of Notices and slips
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-10-21 17:37:03 UTC
Size:
14.59 KB
patch
obsolete
>From 6a49b301ec594130fac40ed6f76807dbb3e555b5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 21 Oct 2025 17:35:37 +0000 >Subject: [PATCH] Bug 36525: Get all occurrences of Notices and slips > >--- > .../prog/en/includes/tools-menu.inc | 2 +- > .../intranet-tmpl/prog/en/modules/about.tt | 4 +- > .../modules/admin/preferences/i18n_l10n.pref | 4 +- > .../prog/en/modules/tools/letter.tt | 42 +++++++++---------- > .../prog/en/modules/tools/tools-home.tt | 4 +- > misc/cronjobs/advance_notices.pl | 2 +- > misc/cronjobs/holds/holds_reminder.pl | 2 +- > misc/cronjobs/membership_expiry.pl | 2 +- > 8 files changed, 31 insertions(+), 31 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc >index d436580537f..e6d5b405675 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc >@@ -22,7 +22,7 @@ > <li><a href="/cgi-bin/koha/tools/import_borrowers.pl">Import patrons</a></li> > [% END %] > [% IF ( CAN_user_tools_edit_notices ) %] >- <li><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></li> >+ <li><a href="/cgi-bin/koha/tools/letter.pl">Templates</a></li> > [% END %] > [% IF ( CAN_user_tools_edit_notice_status_triggers ) %] > <li><a href="/cgi-bin/koha/tools/overduerules.pl">Overdue notice/status triggers</a></li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 7d8e3d4bdad..b7f4ab5059c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -597,8 +597,8 @@ > <tr> > <th scope="row"><strong>Warning</strong> </th> > <td >- >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 >- in <a href="/cgi-bin/koha/tools/letter.pl">Tools > Notices and slips</a>.</td >+ >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 >+ <a href="/cgi-bin/koha/tools/letter.pl">Tools > Templates</a>.</td > > > </tr> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref >index e95b3454347..5bfb6cdcd16 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/i18n_l10n.pref >@@ -73,5 +73,5 @@ I18N/L10N: > choices: > 1: Allow > 0: "Don't allow" >- - notices to be translated. >- - 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. >+ - templates to be translated. >+ - 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. >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index 6ec0ce10799..f417ef43012 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -11,15 +11,15 @@ > >[% FILTER collapse %] > [% IF ( add_form or copy_form ) %] > [% IF ( modify ) %] >- [% t("Modify notice") | html %] >+ [% t("Modify template") | html %] > › > [% ELSE %] >- [% t("New notice") | html %] >+ [% t("New template") | html %] > › > [% END %] > [% END %] > [% IF ( add_validate or copy_validate) %] >- [% t("Notice added") | html %] >+ [% t("Template added") | html %] > › > [% END %] > [% IF ( delete_confirm ) %] >@@ -30,7 +30,7 @@ > [% Branches.GetName( branchcode ) | html %] > › > [% END %] >- [% t("Notices and slips") | html %] >+ [% t("Templates") | html %] > › [% t("Tools") | html %] › [% t("Koha") | html %] > [% END %]</title > > >@@ -83,18 +83,18 @@ > > [% IF ( add_form OR copy_form OR add_validate OR copy_validate OR delete_confirm OR branchcode ) %] > [% WRAPPER breadcrumb_item %] >- <a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a> >+ <a href="/cgi-bin/koha/tools/letter.pl">Templates</a> > [% END %] > [% END %] > > [% IF ( add_form or copy_form) %] > [% IF ( modify ) %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Modify notice</span> >+ <span>Modify template</span> > [% END %] > [% ELSE %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>New notice</span> >+ <span>New template</span> > [% END %] > [% END # /IF modify %] > [% ELSIF ( branchcode ) %] >@@ -104,7 +104,7 @@ > [% ELSE %] > [% IF ( add_validate or copy_validate) %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Notice added</span> >+ <span>Template added</span> > [% END %] > [% ELSE %] > [% IF ( delete_confirm ) %] >@@ -113,7 +113,7 @@ > [% END %] > [% ELSE %] > [% WRAPPER breadcrumb_item bc_active= 1 %] >- <span>Notices and slips</span> >+ <span>Templates</span> > [% END %] > [% END # /IF ( delete_confirm ) %] > [% END # /IF ( add_validate or copy_validate) %] >@@ -125,7 +125,7 @@ > <div class="modal-dialog modal-lg"> > <div class="modal-content"> > <div class="modal-header"> >- <h1 class="modal-title" id="preview_template_label">Preview notice template</h1> >+ <h1 class="modal-title" id="preview_template_label">Preview template</h1> > <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> > </div> > <div class="modal-body"> >@@ -168,7 +168,7 @@ > [% WRAPPER 'main-container.inc' aside=aside %] > > [% IF ( no_op_set ) %] >- <h1>Notices and slips</h1> >+ <h1>Templates</h1> > [% IF ( branchcode ) %] > <h2>[% Branches.GetName( branchcode ) | html %]</h2> > [% END %] >@@ -188,7 +188,7 @@ > > <div id="toolbar" class="btn-toolbar"> > <div class="btn-group"> >- <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New notice</button> >+ <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New template</button> > <ul class="dropdown-menu"> > <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=acquisition">Acquisition</a></li> > <li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=catalogue">Catalog</a></li> >@@ -237,7 +237,7 @@ > <th>Code</th> > <th>Name</th> > <th>Last updated</th> >- <th class="no-sort no-export">Copy notice</th> >+ <th class="no-sort no-export">Copy template</th> > <th class="no-sort no-export">Actions</th> > </tr> > </thead> >@@ -337,9 +337,9 @@ > [% ELSE # IF lette %] > <div class="alert alert-info"> > [% IF ( branchcode ) %] >- <p>There are no notices for this library.</p> >+ <p>There are no templates for this library.</p> > [% ELSE %] >- <p>There are no notices.</p> >+ <p>There are no templates.</p> > [% END %] > </div> > [% END # /IF lette %] >@@ -348,9 +348,9 @@ > [% IF add_form or copy_form %] > <h1> > [% IF ( modify ) %] >- <span>Modify notice</span> >+ <span>Modify template</span> > [% ELSE %] >- <span>New notice</span> >+ <span>New template</span> > [% END %] > </h1> > >@@ -587,7 +587,7 @@ > > [% IF ( delete_confirm ) %] > <div class="alert alert-warning"> >- <h1>Delete notice?</h1> >+ <h1>Delete template?</h1> > <table> > <thead> > <tr> >@@ -776,7 +776,7 @@ > <a > href="/cgi-bin/koha/svc/letters/preview" > class="preview_template btn btn-default btn-xs" >- title="Preview this notice template" >+ title="Preview this template" > data-mtt="[% letter.message_transport_type | html %]" > data-lang="[% lang | html %]" > ><i class="fa-solid fa-eye"></i> Preview</a >@@ -810,7 +810,7 @@ > <div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> > <div class="panel-body"> > <fieldset class="rows"> >- <div class="alert alert-info">These format settings apply when a notice is printed.</div> >+ <div class="alert alert-info">These format settings apply when a template is printed.</div> > <div class="col-md-12"> > <ol> > <li id="css-helpers"> >@@ -824,7 +824,7 @@ > <textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> > </li> > <li class="format_all_notices_option"> >- <label for="format_all_[% lang | html %]">Apply format settings to all notices[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label> >+ <label for="format_all_[% lang | html %]">Apply format settings to all templates[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label> > <input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" /> > <span class="hint">Existing format settings will be overwritten.</span> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >index 8f9ebe64b92..8e6d226f63a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt >@@ -59,8 +59,8 @@ > [% END %] > > [% IF ( CAN_user_tools_edit_notices ) %] >- <dt><a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a></dt> >- <dd>Define notices (print and email notification messages for overdues, etc.)</dd> >+ <dt><a href="/cgi-bin/koha/tools/letter.pl">Templates</a></dt> >+ <dd>Define custom templates, including notices and slips</dd> > [% END %] > > [% IF ( CAN_user_tools_edit_notice_status_triggers ) %] >diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/advance_notices.pl >index 5c1236981a2..06d2c1d7c4d 100755 >--- a/misc/cronjobs/advance_notices.pl >+++ b/misc/cronjobs/advance_notices.pl >@@ -121,7 +121,7 @@ Defaults to 'item-issuebranch' > =head2 Configuration > > This script pays attention to the advanced notice configuration >-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 >+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 > section of Koha is available in the Koha manual. > > =head2 Outgoing emails >diff --git a/misc/cronjobs/holds/holds_reminder.pl b/misc/cronjobs/holds/holds_reminder.pl >index 33ccfb37c8d..1074a7f6035 100755 >--- a/misc/cronjobs/holds/holds_reminder.pl >+++ b/misc/cronjobs/holds/holds_reminder.pl >@@ -130,7 +130,7 @@ holds. > =head2 Configuration > > This script sends reminders to patrons with waiting holds using a notice >-defined in the Tools > Notices and slips module within Koha. The lettercode >+defined in the Tools > Templates module within Koha. The lettercode > is passed into this script and, along with other options, determine the content > of the notices sent to patrons. > >diff --git a/misc/cronjobs/membership_expiry.pl b/misc/cronjobs/membership_expiry.pl >index 5cecbe8fc32..cc76af429ac 100755 >--- a/misc/cronjobs/membership_expiry.pl >+++ b/misc/cronjobs/membership_expiry.pl >@@ -124,7 +124,7 @@ They will be informed by a patron renewal notice. > > =head1 CONFIGURATION > >-The content of the messages is configured in Tools -> Notices and slips. Use the MEMBERSHIP_EXPIRY notice or >+The content of the messages is configured in Tools -> Templates. Use the MEMBERSHIP_EXPIRY notice or > supply another via the parameters. > > Typically, messages are prepared for each patron when the memberships are going to expire. >-- >2.39.5
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 36525
: 188252