https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8137 --- Comment #175 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 208535 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208535&action=edit Bug 8137: Add global circulation rules, used for checkout limits With CircControl set to the library the item is from (or the pickup library), checkout limits only count the patron's checkouts from one library, so a patron can accumulate checkouts across libraries. When a global limit is reached, the checkout message says the maximum comes from the global checkout limit. Global rules are not cloned nor removed when cloning circulation rules, and are not returned by GET /circulation_rules. Test plan (the global checkout limits table is added by the next patch): 1. Apply the patches, run updatedatabase, restart all 2. Set CircControl to "the library the item is from" 3. Circulation and fines rules, all libraries: - default rule, all/all: current checkouts allowed 5 - Global checkout limits, All/All: current checkouts allowed 2 4. Check out 2 items from library A to a patron 5. Check out an item from library B to the same patron => Too many checked out. 2 checked out, only 2 are allowed. => "Maximum checkouts calculated from the global checkout limit for" 6. Add a global checkout limit All/BOOK: 1, and change All/All to 5 7. Check in all items, check out a BOOK item from library A 8. Check out a BOOK item from library B => Blocked, only 1 is allowed (global limit for BOOK) 9. Check out 4 items of other item types from any library 10. Check out a fifth one => Blocked, only 5 are allowed (global limit for all item types) 11. Add a global checkout limit for the patron's category, All item types: 7 => The patron can check out up to 7 items, BOOK still limited to 1 12. Clone the rules from "all libraries" to library A => The global checkout limits are unchanged and not copied to library A 13. prove t/db_dependent/Koha/CirculationRules.t t/db_dependent/Circulation/TooMany.t Sponsored-by: BibLibre Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.