<<

NAME

Koha::Preservation::Train - Koha Train Object class

API

Class methods

default_processing

Return the default processing object for this train

add_item

Add item to this train

my $train_item = $train->add_item({item_id => $itemnumber, processing_id => $processing_id}, { skip_waiting_list_check => 0|1 }); my $train_item = $train->add_item({barcode => $barcode, processing_id => $processing_id, { skip_waiting_list_check => 0|1 });

skip_waitin_list_check can be set to true if the item can be added to the train even if the item is not in the waiting list.

add_items

my $train_items = $train->add_items([$item_1, $item_2]);

Add items in batch.

items

my $items = $train->items;

Return the items in this train.

Internal methods

_type

<<