From f568c90593cb08251e2cc063e3856ad711eef654 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 13 Jun 2024 17:58:45 +0000 Subject: [PATCH] Bug 36868: Add logic for OPAC 1. APPLY PATCH, updatedatabase, restart_all 2. Search for the new AutoDeleteFromCartWhenHoldPlaced system preference 3. Turn it on for both staff and OPAC 4. From the staff interface put some items in your cart. 5. Place a hold on all of them. 6. Once the hold(s) have been successfully done those items should no longer be in your cart. 7. Put more items into your staff cart, place a hold on some of them but not all. 8. Only the items you have placed a hold on should be removed. 9. Go to the OPAC and put some items in your cart. 10. Place a hold on all of them, those items should now be deleted from the cart. 11. Place more items into your OPAC cart, place a hold on some of them but not all. 12. Only the items you have placed a hold on should be removed. 13. Switch the AutoDeleteFromCartWhenHoldPlaced to only be for 'staff'. 14. Try steps 4-8 again. 15. Switch the AutoDeleteFromCartWhenHoldPlaced to only be for 'opac'. 16. Try steps 9 -12 again. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++++- opac/opac-reserve.pl | 4 +++- opac/opac-user.pl | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index b9be5c22c5..5f7bf3c335 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -58,7 +58,6 @@ Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]

[% IF ( patronupdate ) %]

Thank you!

Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.

[% END %] - [% IF failed_holds %]

Notice:

@@ -1088,6 +1087,11 @@ [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %]