<<

NAME

Koha::HoldGroup - Koha Hold Group object class

API

Class Methods

to_api

    my $json = $hold_group->to_api;

Overloaded method that returns a JSON representation of the Koha::HoldGroup object, suitable for API output. The related Koha::Holds objects are merged as expected on the API.

holds

    $holds = $hold_group->holds

Return all holds associated with this group

target_hold_id

    $holds = $hold_group->target_hold_id

Return the target_hold_id

skip_non_target_holds_query

    $where{'me.hold_group_id'} = Koha::HoldGroup::skip_non_target_holds_query('dbix')

Static method, returns the query part be added if DisplayAddHoldGroups Accepts a $query_type of 'dbix' or 'sql' and returns the respective query The query is designed to skip non target holds that are part of a hold group which already has a hold target

_type

AUTHORS

Josef Moravec <josef.moravec@gmail.com>

<<