|
Text to go in the release notes:
|
Staff can now group existing patron holds together directly from the patron holds table, in addition to creating hold groups when placing new holds.
Previously, hold groups could only be created when placing new holds (if the DisplayAddHoldGroups system preference was enabled). With this enhancement, staff can now select multiple existing holds from a patron's holds list and group them together using a new "Group selected" button.
**Key features:**
- **Group selected button**: Select two or more holds from the patron holds table and click "Group selected" to create a new hold group
- **Visual group IDs**: Hold groups are displayed with easy-to-understand sequential numbers (1, 2, 3, etc.) rather than internal database IDs
- **Automatic cleanup**: If a hold group is left with only one hold (or none) after cancellations or fulfilment, the group is automatically deleted
- **Smart restrictions**: You cannot group holds that have already been found (waiting for pickup)
- **Multiple groups**: Create as many different hold groups as needed for a patron
**Using hold groups:**
1. Navigate to a patron's record and click the "Holds" tab
2. Select two or more holds using the checkboxes
3. Click the "Group selected" button and confirm
4. The holds are now grouped together with a visual group ID displayed in the holds table
5. Click on the group number to view or manage the hold group
**For administrators:**
This feature requires the DisplayAddHoldGroups system preference to be enabled. The new "Group selected" button appears alongside other hold management buttons on patron holds pages.
**REST API:**
A new API endpoint `/api/v1/patrons/{patron_id}/hold_groups` has been added to support listing and creating hold groups programmatically.
|