https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20747
Jason Robb <jr...@sekls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #182008|0 |1 is obsolete| | --- Comment #30 from Jason Robb <jr...@sekls.org> --- Created attachment 182048 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182048&action=edit Bug 20747: (follow-up) Fix hold queue to work with LocalHoldPriority Group options This fixes the holds queue and associated tests. I also updated the sql file to fix an issue and the LocalHoldsPriority tests to fix a typo. I'm working on final unit tests for the holds queue for all the options for QA but I wanted to get the queue changes ready for sign-off. UPDATED TEST PLAN This patch adds new options to the LocalHoldsPriority system preference to allow for the following options: 'None' the equivalent to 'Don't' pre-patch 'GiveLibrary' the equivalent to 'Do' pre-patch 'GiveLibraryAndGroup' Allows for checking the library first, then hold groups 'GiveGroup' Allows to prioritize within a group without prioritizing any library first. The included patches will update the preference in existing installations to maintain current behavior. To Test: BEFORE APPLYING THE PATCH /Tip/ I kept the following tabs open: -The holds screen (for suspending, checking order, etc) -Check in screen (can ignore holds to keep them all in place) -Holds to Pull with "All" for Libraries -System Preferences /Setup Groups and confirm current behavior/ 1. Set the following system preferences: -" LocalHoldsPriority " system preference to "Give" -"LocalHoldsPriorityPatronControl" to "home library" -"LocalHoldsPriorityItemControl" to "home library" -"RealTimeHoldsQueue" to "Enable" 2. Create 2 Library Groups - Set them to be hold groups - I called mine group 1 & group 2 3. Add 2 libraries each to each group. - Group 1 - Centerville - Fairfield - Group 2 - Fairview - Franklin 4. Find a patron for each branch in the groups - Centerville - Changed 23529000035676 (Henry) - Fairfield - Changed 23529000050113 (Jordan) - Fairview - Changed 23529001000463 (Edna) - Franklin - 23529000121682 (Nicole) 5. Find a record with at least 2 items 6. If needed change the home and holding libraries so you have at least one item for each hold group - Centerville - 39999000000252 - Fairview - Changed 39999000000238 7. Place 2 record level holds for the record. - One for 23529000035676 (Henry) for pickup at Centerville (Priority 1) - One for 23529001000463 (Edna) for pickup at Fairview (Priority 2) 8. Check in 39999000000238. The hold popup should be for the second hold (Henry), not the first (Edna.) Ignore the hold 9. Edit the record then save to trigger real time queue update 10. On the Holds Queue (submit after each set of changes): - Centerville should be for Henry - Fairview should be for Edna /apply patch and confirm behavior still works/ 10. Apply patch 11. Rebuild the database then restart_all (in sandboxes it's an action, in ktd " dbic && updatedatabase && restart_all ") 12. Confirm that " LocalHoldsPriority " is set to "Give Library" 13. Repeat steps 8-10, behavior should be the same. / check library then library group setting/ 14. Change " LocalHoldsPriority " to "Give library then library group" 15. Set the following record level holds for the record in the following order: *You can add Jordan and Nicole's, then rearrange the order. - Pickup at Fairfield - 23529000050113 (Jordan) - Pickup at Franklin - 23529000121682 (Nicole) - Pickup at Centerville - 23529000035676 (Henry) - Pickup at Fairview - 23529001000463 (Edna) 17. Check in 39999000000252 - should try and fill to Centerville - 23529000035676 (Henry) 17. Check in 39999000000238 - should try and fill to Fairview - 23529001000463 (Edna) 18. On the Hold Queue: - Centerville should be for Henry - Fairview should be for Edna 19. Suspend the hold for 23529001000463 (Edna) 20. Check in 39999000000238 should try and fill to 23529000121682 (Nicole) (ignore the hold) 21. On the Holds Queue: - Centerville should be for Henry - Fairview should be for Nicole / check library group setting / 22. Reset the holds to match step 15. 23. Change " LocalHoldsPriority " to "Give group" 24. Check in 39999000000252 - should try and fill to Fairfield (Jordan) (ignore the hold) 25. Check in 39999000000238 - should try and fill to Franklin (Nicole) (ignore the hold) 26. On the Holds Queue: - Centerville should be for Jordan - Fairview should be for Nicole /check no priority / 27. Change " LocalHoldsPriority " to "Don't give" 28. Reset the holds to match step 15. 29. Check in 39999000000238 - Should fill to Fairfield (Jordan) (ignore the hold) 30. Check in 39999000000252 - Should fill to Fairfield hold (Jordan) (ignore the hold) 31. On the Holds Queue: - Centerville should be for Jordan - Fairview should be for Nicole /Also check/ Item level holds behave as expected Different combinations of LocalHoldsPriorityItemControl and LocalHoldsPriorityPatronControl Sponsored by: Cape Libraries Automated Materials Sharing Sponsored by: Northeast Kansas Library System (NEKLS) Signed-off-by: Jason Robb <jr...@sekls.org> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/