From 66b6b284daeb7d6d2a8e624499ee4910c6fb8147 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 --- 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 0bdb49d70d..e11b5202ad 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -38,7 +38,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 40edbee41c..a57b29c305 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