From 79e2a65017809be6e306d991deeed41d3798dbd8 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 27 Nov 2024 10:55:01 +0100 Subject: [PATCH] Bug 38544: OPAC Modal login not generated when OPAC login is disabled When OPAC login is disabled (system preference opacuserlogin), the modal login should not exist in HTML. Note the access to opac-user.pl shows a message and not auth form. You may look at commit with : git diff --ignore-space-change Test plan : 1.1) Set system preference opacuserlogin to "Allow" 1.2) Go to OPAC main page 1.3) Check you see in source : div id="loginModal" 1.4) Click on "Log in to your account" 1.5) Check you see the modal login 2.1) Set system preference opacuserlogin to "Don't allow" 2.2) Go to OPAC main page 2.3) Check you do not see in source : div id="loginModal" Signed-off-by: David Cook Signed-off-by: Matt Blenkinsop --- .../bootstrap/en/includes/masthead.inc | 157 +++++++++--------- 1 file changed, 80 insertions(+), 77 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 312955ba47b..70713da7f0d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -387,86 +387,89 @@ [% END # / OpacPublic %] - - + [% END # / IF opacuserlogin %] + [% IF Koha.Preference( 'CookieConsent' ) %]