[Koha-bugs] [Bug 31557] Add ability for holds queue builder to prioritize either matching a patron's home library to the item's home or holding library

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 7 23:12:13 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31557

Christopher Brannon <cbrannon at cdalibrary.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbrannon at cdalibrary.org

--- Comment #13 from Christopher Brannon <cbrannon at cdalibrary.org> ---
(In reply to Nick Clemens from comment #12)
> So, this is slightly confusing to explain.
> 
> 
> We group all the possible items by their holding branch ( $items_by_branch
> variable )
> 554         push @{ $items_by_branch{ $item->{holdingbranch} } }, $item
> 
> Then we get all the items that are held at the hold's pickup location ( here
> we fall back to the borrowers branch if there is no hold pickup location,
> but a hold must have a pickuplocation, so it's moot)
> 568         my $pickup_branch = $request->{branchcode} ||
> $request->{borrowerbranch}
> 571         my $holding_branch_items = $items_by_branch{$pickup_branch};
> 
> And set the priority value:
> 572         my $priority_branch =
> C4::Context->preference('HoldsQueuePrioritizeBranch') // 'homebranch';
> 
> Then we will assign the hold to the first item where:
> $request->{borrowerbranch} eq $item->{$priority_branch}
> and the hold is allowed
> 
> So we are already in the subset of items where the holding branch matches
> the pickup branch, and then we give priority to patrons from the holding
> branch, or patrons from the owning branch.

I would be wonderful if we had flowcharts for these types of things.  Many of
us are visual learners.  Flowcharts, man! :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list