<<

NAME

Koha::Holds - Koha Hold object set class

API

Class methods

filter_by_found

    my $found_holds = $holds->filter_by_found;

Returns a filtered resultset without holds that are considered found. i.e. 'P', 'T' and 'W'.

waiting

returns a set of holds that are waiting from an existing set

processing

returns a set of holds that are processing from an existing set

unfilled

returns a set of holds that are unfilled from an existing set

forced_hold_level

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.

get_items_that_can_fill

    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

filter_by_has_cancellation_requests

    my $with_cancellation_reqs = $holds->filter_by_has_cancellation_requests;

Returns a filtered resultset only containing holds that have cancellation requests.

filter_out_has_cancellation_requests

    my $holds_without_cancellation_requests = $holds->filter_out_has_cancellation_requests;

Returns a filtered resultset without holds with cancellation requests.

Internal methods

_type

object_class

AUTHOR

Kyle M Hall <kyle@bywatersolutions.com>

<<