|
Lines 25-30
use Koha::Biblioitem;
Link Here
|
| 25 |
use Koha::Biblio::Metadata; |
25 |
use Koha::Biblio::Metadata; |
| 26 |
use Koha::Old::Biblio::Metadatas; |
26 |
use Koha::Old::Biblio::Metadatas; |
| 27 |
use Koha::Old::Biblioitems; |
27 |
use Koha::Old::Biblioitems; |
|
|
28 |
use Koha::Old::Items; |
| 28 |
use Koha::SearchEngine::Indexer; |
29 |
use Koha::SearchEngine::Indexer; |
| 29 |
|
30 |
|
| 30 |
=head1 NAME |
31 |
=head1 NAME |
|
Lines 93-98
sub biblioitem {
Link Here
|
| 93 |
return Koha::Old::Biblioitems->find( { biblionumber => $self->biblionumber } ); |
94 |
return Koha::Old::Biblioitems->find( { biblionumber => $self->biblionumber } ); |
| 94 |
} |
95 |
} |
| 95 |
|
96 |
|
|
|
97 |
=head3 items |
| 98 |
|
| 99 |
my $items = $deleted_biblio->items; |
| 100 |
|
| 101 |
Returns the related Koha::Old::Items for this deleted biblio |
| 102 |
|
| 103 |
=cut |
| 104 |
|
| 105 |
sub items { |
| 106 |
my ($self) = @_; |
| 107 |
return Koha::Old::Items->search( { biblionumber => $self->biblionumber } ); |
| 108 |
} |
| 109 |
|
| 96 |
=head3 to_api |
110 |
=head3 to_api |
| 97 |
|
111 |
|
| 98 |
my $json = $deleted_biblio->to_api; |
112 |
my $json = $deleted_biblio->to_api; |