From 4fbb3ed06bbe18f78e87f8da60c49467edca6e41 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 If the user is not logged in we should trigger the login modal in place of the report a concern modal and then use the code added in bug 31699 to redirect the user back to the current content and open the report a concern modal upon successful login. --- .../bootstrap/en/includes/opac-bottom.inc | 3 +++ .../bootstrap/js/modals/catalog_concern.js | 17 +++++++++++++++++ 2 files changed, 20 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 ) %]