Bugzilla – Attachment 92210 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: (bug 22318 follow-up) Fix OpacNavRight even if opacuserlogin is off
Bug-23253-bug-22318-follow-up-Fix-OpacNavRight-eve.patch (text/plain), 1.90 KB, created by
Katrin Fischer
on 2019-08-15 06:11:58 UTC
(
hide
)
Description:
Bug 23253: (bug 22318 follow-up) Fix OpacNavRight even if opacuserlogin is off
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-08-15 06:11:58 UTC
Size:
1.90 KB
patch
obsolete
>From aea28842108c071e229b63557ba1ae91b0ffcafd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Aug 2019 09:02:15 -0500 >Subject: [PATCH] Bug 23253: (bug 22318 follow-up) Fix OpacNavRight even if > opacuserlogin is off > >There are other occurrences of OpavNavRight that bug 22318 forgot to >adjust to use the news system instead of the syspref. > >Test plan: >- turn off opacuserlogin >- create a news for OpacNavRight >- go to the opac main page >=> Confirm that the OpacNavRight content is displayed correctly. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index b48e92284f..0150881623 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -42,6 +42,7 @@ > </div> > [% END %] > >+ [% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => news_lang, library => branchcode ) %] > [% IF ( OpacNav || OpacNavBottom ) && (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %] > <div class="span7"> > [% ELSIF (Koha.Preference( 'opacuserlogin' ) == 1 || OpacNavRight) %] >@@ -213,7 +214,7 @@ > [% END %] > [% END # /loggedinusername %] > [% END # /opacuserlogin %] >- [% PROCESS koha_news_block news => KohaNews.get( location => "OpacNavRight", lang => news_lang, library => branchcode ) %] >+ [% PROCESS koha_news_block news => OpacNavRight %] > </div> <!-- / .span3 --> > [% END # /opacuserlogin || OpacNavRight %] > >-- >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