Bug 34675 - Build and use the holds queue when checking in an item and searching for holds
Summary: Build and use the holds queue when checking in an item and searching for holds
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-31 15:18 UTC by Nick Clemens (kidclamp)
Modified: 2023-08-31 15:18 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.