https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32776
Aleisha Amohia <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #157005|0 |1 is obsolete| | --- Comment #10 from Aleisha Amohia <[email protected]> --- Created attachment 159125 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159125&action=edit Bug 32776: Select reserves to convert using new syspref This patchset enhances the convert_reserves_to_recalls.pl cronjob by allowing libraries to be more specific about which reserves should be converted to recalls. The new ConvertSelectedReservesToRecalls adds the flexibility to choose: - the oldest placed reserve to be converted to a recall - each reserve will be converted, one by one, until all recallable items are recalled When reserves are converted to recalls, they will be allocated a specific item and become an item-level recall. This is so recallable items can be allocated one by one. To test: 1. Apply Bug 31415 and configure recalls 2. Apply these patches and update database 3. Create a biblio with 3 items 4. Check out all 3 items to 3 different patrons 5. Place 4 biblio-level reserves for 4 different patrons 6. Set the ConvertSelectedReservesToRecalls system preference to 'oldest' 7. In your shell, run the script misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 8. Confirm there is now 1 recall and 3 biblio-level reserves on the record 9. Confirm the recall has been allocated to one item (there should be a barcode next to the title in the recalls table) 10. In your shell, run the script misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 11. Confirm there are now 2 recalls and 2 biblio-level reserves on the record 12. Confirm the second recall was allocated to the second item. NOT the same item as the first recall. 13. In your shell, run the script twice misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 14. Confirm there is still one reserve remaining that can't be converted because all recallable items are already recalled. 15. Set the ConvertSelectedReservesToRecalls system preference to 'recallable' 16. Select all of the recalls on the record and delete them 17. Place 4 biblio-level reserves for 4 different patrons 18. In your shell, run the script misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 19. Confirm all reserves have been converted to recalls and allocated an item. The fourth reserve will have been allocated as a second recall to the first item. 20. Select all of the recalls on the record and delete them. 21. Place 2 biblio-level recalls and 2 item-level recalls for 4 different patrons, in any order 22. In your shell, run the script misc/cronjobs/recalls/convert_reserves_to_recalls.pl -v --min 1 23. Confirm all reserves have been converted to recalls and allocated an item. The item-level reserves should have been allocated to their intended item. The biblio-level reserves should have been allocated to the other items. Sponsored-by: Auckland University of Technology -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] 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/
