Koha::Holds - Koha Hold object set class
my $found_holds = $holds->filter_by_found;
Returns a filtered resultset without holds that are considered found. i.e. 'P', 'T' and 'W'.
returns a set of holds that are waiting from an existing set
returns a set of holds that are processing from an existing set
returns a set of holds that are unfilled from an existing set
If a patron has multiple holds for a single record, those holds must be either all record level holds, or they must all be item level holds.
This method should be used with Hold sets where all Hold objects share the same patron and record.
This method will return 'item' if the patron has at least one item level hold. It will return 'record' if the patron has holds but none are item level, Finally, if the patron has no holds, it will return undef which indicates the patron may select either record or item level holds, barring any other rules that would prevent one or the other.
my $items = $holds->get_items_that_can_fill();
Return the list of items that can fill the hold set.
Items that are not:
in transit waiting lost widthdrawn not for loan not on loan
my $with_cancellation_reqs = $holds->filter_by_has_cancellation_requests;
Returns a filtered resultset only containing holds that have cancellation requests.
my $holds_without_cancellation_requests = $holds->filter_out_has_cancellation_requests;
Returns a filtered resultset without holds with cancellation requests.
Kyle M Hall <kyle@bywatersolutions.com>