Bugzilla – Attachment 119802 Details for
Bug 28086
Email address shown on OpacMaintenancePage should use ReplytoDefault if set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28086: OpacMaintenance page should use ReplytoDefault if set
Bug-28086-OpacMaintenance-page-should-use-ReplytoD.patch (text/plain), 2.86 KB, created by
Katrin Fischer
on 2021-04-17 19:05:53 UTC
(
hide
)
Description:
Bug 28086: OpacMaintenance page should use ReplytoDefault if set
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-04-17 19:05:53 UTC
Size:
2.86 KB
patch
obsolete
>From 7c6e866b06b35687cff2cbee514623a4ad566a5f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 6 Apr 2021 12:12:47 +0000 >Subject: [PATCH] Bug 28086: OpacMaintenance page should use ReplytoDefault if > set > >This patch changes the OPAC maintenance template so that it checks for a >value in the ReplyToDefault system preference when displaying the >"please contact the site administrator" email link. > >Also changed: If neither ReplytoDefault nor KohaAdminEmailAddress is >defined, it won't show the link at all. > >To test, apply the patch and set the OpacMaintenance preference to >"Show." > > - In the OPAC you should see the "System Maintenance" page. > - Test this page with various settings: > - ReplytoDefault and KohaAdminEmailAddress both populated. > - Only ReplytoDefault > - Only KohaAdminEmailAddress > - Neither. > > Confirm that the correct email address is used in each case. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >index 92c46520ef..665d32087d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >@@ -40,7 +40,14 @@ > [% Koha.Preference( 'OpacMaintenanceNotice' ) | $raw %] > [% ELSE %] > <h1>System Maintenance</h1> >- <p>The [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog is offline for system maintenance. We'll be back soon! If you have any questions, please contact the <a href="mailto:[% Koha.Preference( 'KohaAdminEmailAddress' ) | $raw %]">site administrator</a></p> >+ <p> >+ The [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog is offline for system maintenance. We'll be back soon! >+ [% IF ( Koha.Preference( 'ReplytoDefault' ) ) %] >+ If you have any questions, please contact the <a href="mailto:[% Koha.Preference( 'ReplytoDefault' ) | $raw %]">site administrator</a> >+ [% ELSIF ( Koha.Preference( 'KohaAdminEmailAddress' ) ) %] >+ If you have any questions, please contact the <a href="mailto:[% Koha.Preference( 'KohaAdminEmailAddress' ) | $raw %]">site administrator</a> >+ [% END %] >+ </p> > [% END %] > </div> > </div> >-- >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 28086
:
119325
|
119561
|
119564
|
119568
| 119802