From a70146d32d0e86e6b15b186975bd48cf6d7874da 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. Signed-off-by: Sam Lau --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++++- opac/opac-reserve.pl | 5 ++++- opac/opac-user.pl | 1 + 3 files changed, 10 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 438878a6f15..8e7c4fad874 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -61,7 +61,6 @@ > [% 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:

@@ -1077,6 +1076,11 @@ [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %]