Using Hold Groups in Koha

Using Hold Groups

Sometimes when patrons want a specific title, they aren't particular about the version or format - speed is more important! For instance, when their favorite author releases a new book, they may want whichever is available first from the standard print, audiobook, and large print versions. Or perhaps they want a Canadian travel guide, but don't have a preference between Lonely Planet, Fodor's, and Rick Steves - they want whichever is available soonest so that they can plan their trip.

Prior to 25.11, patrons in this situation had to place holds on each bib for all three versions of the same title (for the favorite author example) or on all three different titles (for the travel guide). Then when one of those holds was filled, they would need to remember to cancel the other holds manually. This meant extra work for patrons, and potentially an unnecessary wait for patrons further down the holds list if the first patron forgot to cancel the holds they no longer needed.

Koha 25.11+ streamlines this process with hold groups, which allow patrons and staff to place a hold on the first available title or item from a user-defined group. When one title/item from the group fills the hold and is subsequently checked out, the other holds in the group are automatically cancelled, freeing them up for other patrons without relying on the original patron remembering to cancel the holds they no longer need.

Hold groups are useful for a variety of scenarios. In addition to the examples above, they are a great option for patrons preparing for a book club, students who need to choose from a list of titles for summer reading or a school project, or folks who want to learn a language and are agnostic on the publisher.

Info
In Koha, these are referred to as 'hold groups'. In Aspen, the feature is referred to as 'hyperholds'.

Setup and structure

This feature is optional with the new system preference DisplayAddHoldGroups: "[Enable/Don’t enable] the ability to create hold groups which are fulfilled by one item." Set it to [Enable] to begin using hold groups.
Alert
To create hold groups directly from search results, the system preference DisplayMultiPlaceHold must also be set to "[Enable] the ability to place holds on multiple bibliographic records from the search results". Libraries that allow item-level holds must also set DisplayMultiItemHolds to "[Enable] the ability to place holds on different items at the same time in staff interface and OPAC" if they want staff and patrons to be able to create item-level hold groups from search results.
In the database schema, hold groups are identified by the column hold_group_id in the hold_groups table. The hold_group_id column links to the reserves, old_reserves, and hold_groups_target_holds tables. 

Creating hold groups in the staff interface

Creating from search results

To create a hold group at the time holds are placed, start the same way as placing 'normal' holds: search for titles, select the results that should be gathered as a hold group, and click 'Place hold'. On the 'Hold details' screen, check the 'Treat as hold group' box to make this a hold group (rather than separate holds on each of the selected bibs), then click 'Place holds':


Creating hold groups from existing holds

Hold groups can also be created from existing 'standard' holds. Starting at the patron's Holds tab, select the holds that should be grouped, then click 'Group selected':



Click 'Group' on the confirmation screen to proceed:


This is the same process staff will use to add a separate hold to an existing hold group. Note that two of these holds are already part of a group, but the third is separate:


When a group is created where one or more holds are already grouped, the confirmation message will look like this:


When holds grouped this way were already part of a group, this process technically creates an entirely new hold group rather than updating the existing one. This means that they will get a new hold_group_id. After grouping, the Holds table in this example would be:

Viewing hold groups

On the bib's 'Holds' tab, holds that are part of a group will have a link to the hold group in the Details column:


Clicking on 'hold group' in the holds table brings up a modal with links to all of the bibs in the hold group:

In patron accounts, the Holds table includes a 'Hold group' column. The number in that column indicates holds that are part of a group. Note that this number is not the hold_group_id. Holds with no value in that column are standard, non-grouped holds:


Clicking on the number in the 'Hold group' column will bring up a modal with options to select all holds in the group or ungroup the holds:

Clicking 'Select group holds' from that modal will select all of the holds in that group, which is helpful if staff want to cancel, suspend, or unsuspend all holds in the group. Clicking 'Ungroup holds' will retain the holds, but will ungroup them so that they behave like 'standard', separate holds.

Alert
While the above example uses bib-level holds, note that hold groups can be bib-level, item-level, or a combination.

Creating hold groups in the OPAC

In the OPAC, patrons will select multiple titles from search results, and then click 'Place hold'. On the 'Placing a hold' screen, they will select the 'Treat as hold group' option:


In patrons' OPAC accounts, hold groups are noted with '(part of hold group)' under each title:

If patrons click on that text, the table will expand to show details of each group:

Info
There is no way for patrons to group existing 'standard' holds from the OPAC. If a patron wishes to group holds that they have placed separately, they should either contact the library for assistance or cancel the existing holds and re-place them as a group.
Here is the corresponding staff interface view for that patron:

Filling group holds

Using the Holds queue

At this time, if multiple bibs/items from the same hold group are available, they will all show on the Holds queue (see Bug 42054 - Group holds and real time holds queue: multiple titles show at once). In 26.05+, hold groups will be noted with '(part of a hold group)' under each title in the Holds queue.

Once an item that satisfies a group hold is checked in and fills the hold, other titles from the group will not trigger to fill the hold. 

WarningOther titles on the Holds queue for the same group will disappear on the next run of the build_holds_queue cron. However, libraries using the real-time holds queue should note that filling a group hold does not trigger a rebuild of the holds queue (see Bug 42055 - Real time holds queue doesn't rebuild when hold from group hold is filled).

Using Holds to pull

As with the Holds queue, if multiple items are available to satisfy a hold group, those multiple items will show in Holds to pull at the same time. However, Holds to pull has a '(part of a hold group)' link in 25.11+, so staff should check that for groups before pulling multiple titles for the same patron:


Once an item that satisfies a group is checked in to fill the hold, other titles from the group will disappear from Holds to pull. Other titles from a filled group will not trigger to fill the hold again if checked in. 

Checking in a hold group target

When staff check in an item that fills a hold group, there will be links on the hold confirmation modal to details about the group:

Both links go to the Holds table on patrons' Checkout tab.

Checkouts before holds are filled

If a patron checks out an item that is part of a group hold before the hold has been filled, the other holds in the group will be automatically cancelled. This is the same behavior as non-group holds.

Working with filled hold groups

When an item belonging to a group hold is checked in and fills the hold, note that the other bibs/items in the group will still show as on hold from the bib(s) and from patron’s account. However, as noted above, they will not trigger to fill the hold for that patron if checked in. (If other patrons are on the hold list, items will trigger to fill those other patrons' holds.) This is the expected behavior. Groups are retained even once a hold is filled in case, for instance, the filled hold has to be reverted - since the group still exists, the next available item will trigger without having to re-create the group.

Other holds from the group will automatically cancel once the filled hold is checked out.

Cancelling group holds

For unfilled group holds, cancelling an individual bib/item from the hold will not cancel the entire group. (If the group only has two bibs/items, the remaining hold will be automatically converted to a 'standard' hold.)

For filled holds that are part of a group, cancelling the waiting hold can optionally cancel the entire group. When checking in an item to cancel a filled hold, staff will have options to cancel only that hold or to cancel all holds in the group:


The link to view the patron's Holds table will also be available from that modal.

Considerations for managers

Hold groups and circulation limits

In 25.11.05+, hold groups count as a single hold for each applicable circulation rule's "Holds allowed (total)" and the library's "Maximum total holds allowed (count)".

For instance, if the circulation rule for Adult patrons and Book items is set to 10 for "Holds allowed (total)", the library's "Maximum total holds allowed (count)" is set to 30, and an Adult patron's hold group consists of 3 different Book bibs, the group will count as 1 hold toward the Adult/Book "Holds allowed (total)" and 1 toward the library's "Maximum total holds allowed (count)".

Or consider a patron preparing for a book club with a hold group consisting of the same title in multiple formats at a library where Adult patrons can have 10 Book, 10 Audiobook, and 5 Large print holds, with the same "Maximum total holds allowed (count)" of 30. A hold group of the same title in those three format will count as 1 each toward the Book, Audiobook, and Large print "Holds allowed (total)" limits, but still 1 toward the umbrella "Maximum total holds allowed (count)".

As with other hold rules, Koha will look for limits at the appropriate library based on ReservesControlBranch.

Hold groups in logs

In hold logs, group holds can be identified by their hold_group_id:

Note that this is in addition to the reserve_id, and that reserve_id is the Object. The hold_group_id isn't a searchable Object, but managers can search using 'hold_group_id' => [#] in Info:
Creating a hold group from existing separate holds and ungrouping an existing hold group will trigger a 'Modify' entry in the Holds action log.  

Hold groups in hold history

In patrons' OPAC accounts, holds that were part of a group will have the hold_group_id visible in the 'Hold group ID' column of their 'Holds history' tab.

In patrons' 'Holds history' tab in the staff interface, the hold_group_id will show in a 'Hold group ID' column in the 'Past holds' table.