Bug 34675

Summary: Build and use the holds queue when checking in an item and searching for holds
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Hold requestsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2023-08-31 15:18:45 UTC
Currently we have two distinct but very similar codepaths

When building the queue we use the code in C4/HoldsQueue.pm to map all available items on a bib to the holds requests, choosing the most prioritized hold per item

When checking in an item we use the CheckReserves code in C4/Reserves.pm to map a single item to the most prioritized hold request

It seems these processes should be combined and standardized.