Koha::Preservation::Train - Koha Train Object class
Return the default processing object for this train
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.
my $train_items = $train->add_items([$item_1, $item_2]);
Add items in batch.
my $items = $train->items;
Return the items in this train.