From 015004d41873f338a3c4f83d09c8accdd4e976c5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 25 Oct 2022 13:34:40 +0100 Subject: [PATCH] Bug 31028: Add ability to report catalog concerns from the OPAC This patch adds the ability for patrons to report catalog concerns via the opac. Test plan 1) Enable the new `OpacCatalogConcerns` system preference 2) Navigate to the record details page of a biblio record on the OPAC 3) You should see a new 'Report a concern' option in the right side actions box 4) If not logged in you should have the login modal displayed and upon a successful login you should be redirected back to the details page with a new model displayed for entering concern details 5) Submit your concern with a title and details. Signed-off-by: David Nind Signed-off-by: Helen Oliver Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../en/includes/modals/catalog_concern.inc | 31 ++++++++++++ .../bootstrap/en/includes/opac-bottom.inc | 3 ++ .../en/includes/opac-detail-sidebar.inc | 4 ++ .../bootstrap/en/modules/opac-detail.tt | 7 +++ .../bootstrap/js/modals/catalog_concern.js | 47 +++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_concern.inc create mode 100644 koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_concern.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_concern.inc new file mode 100644 index 0000000000..6d6de1041e --- /dev/null +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_concern.inc @@ -0,0 +1,31 @@ + + 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 ) %]