Bugzilla – Attachment 122867 Details for
Bug 28662
Not possible to log out of patron account in OPAC with JavaScript disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28662: Not possible to log out of patron account in OPAC with JavaScript disabled
Bug-28662-Not-possible-to-log-out-of-patron-accoun.patch (text/plain), 2.49 KB, created by
Marcel de Rooy
on 2021-07-16 06:39:07 UTC
(
hide
)
Description:
Bug 28662: Not possible to log out of patron account in OPAC with JavaScript disabled
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-07-16 06:39:07 UTC
Size:
2.49 KB
patch
obsolete
>From 02cc9563c184b8862214922b9d7b768453ab247b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 >Content-Type: text/plain; charset=utf-8 > >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> >--- > 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 e44ae2f111..0e8d59b5f1 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 @@ > <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 %] >-- >2.20.1
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 28662
:
122619
|
122756
| 122867