From 398121e4caf86c3f36ad6668d1908608a556d49a 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 Signed-off-by: Sarah Fletcher --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++++- opac/opac-reserve.pl | 6 +++++- opac/opac-user.pl | 1 + reserve/placerequest.pl | 4 ++-- 4 files changed, 13 insertions(+), 4 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 27d287c20b2..6233c73e4d5 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:

@@ -1051,6 +1050,11 @@ [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %]