From 10fcf80ddacb276ce37ec4d1022a38ba59f02a1b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Jul 2021 13:07:42 +0000 Subject: [PATCH] Bug 28662: Not possible to log out of patron account in OPAC with JavaScript disabled This patch adds a "Log out" link to the OPAC header which is hidden by CSS when JavaScript is enabled. To test, apply the patch and rebuild the OPAC CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). - Log in to the OPAC with JavaScript disabled in your browser. - In the header next to the logged-in user's name there should be a "Log out." link. - Confirm that it logs the user out. - Enable JavaScript and repeat the process to confirm that the new logout link doesn't appear. Signed-off-by: Lucas Gass Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 7bab9bc9b6..077eb709e3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -25,7 +25,8 @@ .js { .dateformat, #sortsubmit, - #sorting-form { + #sorting-form, + .js-hide { display: none; } } diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 823c24dce0..60af130531 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -93,6 +93,7 @@ Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %] + Log out [% ELSE %] [% IF Koha.Preference('casAuthentication') %] [%# CAS authentication is too complicated for modal window %] -- 2.39.5