Bugzilla – Attachment 120026 Details for
Bug 28193
OpacLoginInstructions news block broken by Bug 20168
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28193: OpacLoginInstructions news block broken by Bug 20168
Bug-28193-OpacLoginInstructions-news-block-broken-.patch (text/plain), 2.77 KB, created by
David Nind
on 2021-04-22 20:38:09 UTC
(
hide
)
Description:
Bug 28193: OpacLoginInstructions news block broken by Bug 20168
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-04-22 20:38:09 UTC
Size:
2.77 KB
patch
obsolete
>From b7f9f6edd0edaa65e3ecb0862ae4f4aca7a9d68c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 22 Apr 2021 14:33:25 +0000 >Subject: [PATCH] Bug 28193: OpacLoginInstructions news block broken by Bug > 20168 > >This patch fixes a regression which was introduced by Bug 20168, causing >the OpacLoginInstructions template code to revert back to the old system >preference behavior. This patch returns the correct markup. > >To test, apply the patch and view the OPAC login page >(/cgi-bin/koha/opac-user.pl) > > - With no news entry for OpacLoginInstructions you should see the > default: A block of text with two headings, "Don't have a password > yet?" and "Don't have a library card?" > - Go to Tools -> News and create an entry for OpacLoginInstructions. > - Return to the OPAC and confirm that your custom text appears. > - Try updating/installing another translation and adding a different > news entry for that language. Confirm that the correct entry appears. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >index 28906cf217..6392fda6cd 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt >@@ -201,14 +201,14 @@ > </div> > [% END %] > <div id="nologininstructions"> >- [% IF Koha.Preference('OpacLoginInstructions') %] >- [% Koha.Preference('OpacLoginInstructions') | $raw %] >+ [% IF ( OpacLoginInstructions ) %] >+ [% PROCESS koha_news_block news => OpacLoginInstructions %] > [% ELSE %] > <h3>Don't have a password yet?</h3> > <p>If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p> > <h3>Don't have a library card?</h3> > <p>If you don't have a library card, stop by your local library to sign up.</p> >- [% END # / IF Koha.Preference('OpacLoginInstructions') %] >+ [% END # / IF OpacLoginInstructions %] > > [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] > <span id="registrationinstructions"> >-- >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 28193
:
120008
|
120026
|
120037
|
120095
|
120096
|
120097
|
120098