Koha::Old::Biblio - Koha Old::Biblio Object class
my $metadata = $deleted_biblio->metadata();
Returns a Koha::Biblio::Metadata object
my $record = $deleted_biblio->record();
Returns a Marc::Record object
my $schema = $deleted_biblio->record_schema();
Returns the record schema (MARC21, USMARC or UNIMARC).
my $field = $self->biblioitem
Returns the related Koha::Old::Biblioitem object for this Biblio object
my $items = $deleted_biblio->items;
Returns the related Koha::Old::Items for this deleted biblio
my $json = $deleted_biblio->to_api;
Overloaded method that returns a JSON representation of the Koha::Old::Biblio object, suitable for API output. The related Koha::Old::Biblioitem object is merged as expected on the API.
This method returns the mapping for representing a Koha::Old::Biblio object on the API.
my $biblio = $deleted_biblio->restore;
my $biblio = $deleted_biblio->restore({
patron => $patron,
item_ids => \@item_ids,
restore_all => 0
});
Restores the deleted biblio record back to the biblio table along with its biblioitems and metadata. This removes the record from the deleted tables and re-inserts it into the active tables. The biblio record will be reindexed after restoration.
Optional parameters: patron - Koha::Patron object. If provided, only items the patron can edit will be restored. item_ids - Arrayref of item IDs to restore. If not provided and restore_all is false, no items will be restored. restore_all - Boolean. If true and no item_ids provided, restore all items the patron has permission to edit.
Returns the newly restored Koha::Biblio object.