From e1b470ed8e539edbd88f07a8be0329e8012f6dab Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Wed, 5 Jun 2024 17:57:10 +0000 Subject: [PATCH] Bug 35869: Removes the dismiss button from messages on OPAC SCO module This removes the "Dismiss" button from the SCO module. Currently, the "Dismiss" button is present, however it does not function properly and logs the user out if they press it. As noted on previous chats, keeping the button would require serious changes, thus it's easier just to remove the functionallity. To test: 1) Enable WebBasedSelfCheck 2) Add an OPAC mesaage to a patron account 3) Login to self check ( http://localhost:8080/cgi-bin/koha/sco/sco-main.pl ) 4) See the OPAC message, click dismiss. 5) Notice you are logged out at redirected to: ( http://localhost:8080/cgi-bin/koha/opac-dismiss-message.pl ) 6) Apply patch 7) Log back into the self checkout module 8) Notice that there is no longer a "Dismiss" button for the message. 9) Log into OPAC into the same user's account 10) On the summary page, note that there is still a dismiss button. 11) Ensure this still works properly 12) sign-off Signed-off-by: Lucas Gass Signed-off-by: Matt Blenkinsop Signed-off-by: Martin Renvoize (cherry picked from commit 2313bc310373778338bcbf7ab38a415f10bfbda1) Signed-off-by: Lucas Gass (cherry picked from commit 4056c1e0c2cd0ba654e459bd755564230a8e15ef) Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/en/includes/opac-note.inc | 10 ++++++---- .../opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc index 09562c9b3d..ac657f36f6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-note.inc @@ -7,10 +7,12 @@ [% message.message | html | html_line_break %]
   Written on [% message.message_date | $KohaDates %] by [% Branches.GetName(message.branchcode) | html %] -
- - -
+ [% IF sco != "true" %] +
+ + +
+ [% END %] [% END %] [% IF ( opacnote ) %]
  • [% opacnote | html | html_line_break %]
  • [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 61ca7f9d57..88f6158323 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -241,7 +241,7 @@ [% IF ( patronid ) %] [% IF ( validuser ) %]
    You are logged in as [% borrowername | html %].
    - [% INCLUDE 'opac-note.inc' %] + [% INCLUDE 'opac-note.inc' sco="true" %] [% IF patron_has_hold_fee %]
    A hold fee was charged to your account for collecting this item.
    [% END %] -- 2.39.5