Browse Source

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 <lucas@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
21.05.x
Owen Leonard 3 years ago
committed by Kyle M Hall
parent
commit
10fcf80dda
  1. 3
      koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss
  2. 1
      koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc

3
koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss

@ -25,7 +25,8 @@
.js {
.dateformat,
#sortsubmit,
#sorting-form {
#sorting-form,
.js-hide {
display: none;
}
}

1
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc

@ -93,6 +93,7 @@
<i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i>
<span class="userlabel">Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %]</span>
</a>
<a tabindex="-1" role="menuitem" class="logout js-hide" href="/cgi-bin/koha/opac-main.pl?logout.x=1"><i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> Log out</a>
[% ELSE %]
[% IF Koha.Preference('casAuthentication') %]
[%# CAS authentication is too complicated for modal window %]

Loading…
Cancel
Save