From f9ff0ae6c5228149c21f376332334daceb43fa3a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 18 Jul 2022 14:49:16 +0100 Subject: [PATCH] Bug 31028: Trigger login modal when not logged in This isn't perfect, we detect if there is a logged in user on the OPAC and replace the concern report modal with the login modal if we don't find a valid session. Unfortunelty, we can't then trigger a redirect back to the record details as that's not how our get_template_and_user authentication system works.. instead we end up back at opac-user.pl. --- .../opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 3 +++ .../opac-tmpl/bootstrap/js/modals/catalog_concern.js | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index 4fab59077d..960a87fd69 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -124,6 +124,9 @@ [% Asset.js("lib/bootstrap/js/bootstrap.bundle.min.js") | $raw %] [% Asset.js("lib/fontfaceobserver.min.js") | $raw %] [% Asset.js("lib/enquire.min.js") | $raw %] + [% Asset.js("js/global.js") | $raw %] [% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]