When creating a request using the basic TLR implementation, only ten items associated with the indicated instance are checked for availability. This leads to situations where holds are being placed on items rather than creating pages for available items (or, I assume, holds on items with longer queues).
Steps to Reproduce:
- Log in to https://folio-snapshot.dev.folio.org
- Create more than 10 items associated with a single instance
- Arrange it so that the first ten items returned by /inventory/items?query=(instance.id==<instanceId>) all have a status other than "Available" (checked out is best), and that one of the remaining is status "Available"
- Attempt to create a "title-level request" via mod-patron (eg. /patron/account/<userId>/instance/<instanceId>/hold ) for the above instance record.
The request results in a Page of an available item.
A hold request is created for one of the first 10 items.
It's unclear, to me, how the items are being retrieved to determine which will fill the request in this case. Chalmers was able to verify the behavior in their production environment (Juniper), and I duplicated in snapshot. Best guess is a "limit=10" issue.
Manually reviewing request queues and moving requests to available items (labor-intensive).
Interested parties: MarieWi