Bugzilla – Attachment 92035 Details for
Bug 23253
OpacNavRight does not display correctly for opacuserlogin disabled or self registration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23253: Fix OpacNavRight for self reg by email
Bug-23253-Fix-OpacNavRight-for-self-reg-by-email.patch (text/plain), 4.47 KB, created by
Owen Leonard
on 2019-08-06 17:04:48 UTC
(
hide
)
Description:
Bug 23253: Fix OpacNavRight for self reg by email
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-08-06 17:04:48 UTC
Size:
4.47 KB
patch
obsolete
>From 80f04468c53d759a30f9111006340cf55f7e752f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Aug 2019 09:04:25 -0500 >Subject: [PATCH] Bug 23253: Fix OpacNavRight for self reg by email > >The code expects to display OpacNavRight content at the bottom of the >login form when a user just registered. > >Test plan: >- Turn PatronSelfRegistrationVerifyByEmail on >- Register a patron >- Confirm by clicking on the link you received by email (or see the >message_queue table) >=> The OpacNavRight content should be displayed > >QA Note: This code smells, the code in the pl should not be needed. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > C4/Auth.pm | 2 -- > .../opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt | 4 +++- > opac/opac-registration-verify.pl | 3 +++ > 3 files changed, 6 insertions(+), 3 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index e658c8947c3..a7ef5fe2538 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -570,7 +570,6 @@ sub get_template_and_user { > OpacKohaUrl => C4::Context->preference("OpacKohaUrl"), > OpacMainUserBlock => "" . C4::Context->preference("OpacMainUserBlock"), > OpacNav => "" . C4::Context->preference("OpacNav"), >- OpacNavRight => "" . C4::Context->preference("OpacNavRight"), > OpacNavBottom => "" . C4::Context->preference("OpacNavBottom"), > OpacPasswordChange => C4::Context->preference("OpacPasswordChange"), > OPACPatronDetails => C4::Context->preference("OPACPatronDetails"), >@@ -1249,7 +1248,6 @@ sub checkauth { > LibraryNameTitle => "" . $LibraryNameTitle, > opacuserlogin => C4::Context->preference("opacuserlogin"), > OpacNav => C4::Context->preference("OpacNav"), >- OpacNavRight => C4::Context->preference("OpacNavRight"), > OpacNavBottom => C4::Context->preference("OpacNavBottom"), > opaccredits => C4::Context->preference("opaccredits"), > OpacFavicon => C4::Context->preference("OpacFavicon"), >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt >index 5a62324d2dd..d8ea3c42950 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt >@@ -1,5 +1,6 @@ > [% USE raw %] > [% USE Koha %] >+[% USE KohaNews %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -67,6 +68,7 @@ > > </div> <!-- / .span7/9 --> > >+ [% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => news_lang, library => branchcode ) %] > [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) || OpacNavRight ) %] > <div class="span3"> > [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] >@@ -101,7 +103,7 @@ > [% END # /opacuserlogin %] > [% IF ( OpacNavRight ) %] > <div id="opacnavright"> >- [% OpacNavRight | $raw %] >+ [% PROCESS koha_news_block news => OpacNavRight %] > </div> > [% END # /OpacNavRight %] > </div> <!-- / .span3 --> >diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl >index 91e31c0d8ea..7e058fa7654 100755 >--- a/opac/opac-registration-verify.pl >+++ b/opac/opac-registration-verify.pl >@@ -79,6 +79,9 @@ if ( > C4::Context->preference( > 'PatronSelfRegistrationAdditionalInstructions') > ); >+ >+ my ($theme, $news_lang, $availablethemes) = C4::Templates::themelanguage(C4::Context->config('opachtdocs'),'opac-registration-confirmation.tt','opac',$cgi); >+ $template->param( news_lang => $news_lang ); > } > > } >-- >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 23253
:
91996
|
91997
|
92034
|
92035
|
92194
|
92195
|
92210
|
92211