2313bc3103
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 <lucas@bywatersolutions.com> Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
23 lines
1.2 KiB
HTML
23 lines
1.2 KiB
HTML
[% IF patron_messages.filter_by_unread.count OR opacnote %]
|
|
<div class="alert alert-info">
|
|
<h3>Messages for you</h3>
|
|
<ul>
|
|
[% FOREACH message IN patron_messages.filter_by_unread %]
|
|
<li>
|
|
<strong>[% message.message | html | html_line_break %]</strong><br>
|
|
<em>Written on [% message.message_date | $KohaDates %] by [% Branches.GetName(message.branchcode) | html %]</em>
|
|
</li>
|
|
[% IF sco != "true" %]
|
|
<form id="dismiss-message-form" class="d-print-none" action="/cgi-bin/koha/opac-dismiss-message.pl" method="post">
|
|
[% INCLUDE 'csrf-token.inc' %]
|
|
<input type="hidden" name="message_id" value="[% message.message_id | html %]">
|
|
<input type="hidden" name="op" value="cud-update" />
|
|
<button type="submit" class="dismiss-message-button btn btn-primary"><i class="fa fa-trash" aria-hidden="true"></i> Dismiss</button>
|
|
</form>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF ( opacnote ) %]<li>[% opacnote | html | html_line_break %]</li>[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|