<<

NAME

Koha::Old::Item - Koha Old::Item Object class

API

Class methods

biblio

    my $biblio = $deleted_item->biblio;

Returns the Koha::Biblio or Koha::Old::Biblio object for this item, checking first in the biblio table and then in deletedbiblio table.

restore

    my $item = $deleted_item->restore;

Restores the deleted item record back to the items table. This removes the record from the deleteditems table and re-inserts it into the items table. The biblio record will be reindexed after restoration.

Throws an exception if the biblio record does not exist.

Returns the newly restored Koha::Item object.

to_api_mapping

This method returns the mapping for representing a Koha::Old::Item object on the API.

Internal methods

_type

<<