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

--- Comment #53 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 203512
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203512&action=edit
Bug 42386: Add Koha::Biblio::Availability::Hold

Biblio-level hold availability. Runs patron eligibility once, then
iterates items looking for at least one that is holdable (using
Koha::Item::Availability::Hold with skip_patron_checks).

Returns the first available item in context for callers that need it.

Blockers:
- Patron-level blockers (from chained patron check)
- no_item_available (items exist but none holdable)
- no_items (biblio has no items)

Assisted-by: Sonnet 4.6 (Anthropic)

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ prove t/db_dependent/Koha/Biblio/Availability/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to