View | Details | Raw Unified | Return to bug 17196
Collapse All | Expand All

(-)a/Koha/Biblioitem.pm (-1 / +18 lines)
Lines 33-38 Koha::Biblioitem - Koha Biblioitem Object class Link Here
33
33
34
=cut
34
=cut
35
35
36
=head3 items
37
38
my @items = $biblioitem->items();
39
my $items = $biblioitem->items();
40
41
Returns the related Koha::Items object for this biblio in scalar context,
42
or list of Koha::Item objects in list context.
43
44
=cut
45
46
sub items {
47
    my ($self) = @_;
48
49
    $self->{_items} ||= Koha::Items->search( { biblionumber => $self->biblionumber() } );
50
51
    return wantarray ? $self->{_items}->as_list : $self->{_items};
52
}
53
36
=head3 type
54
=head3 type
37
55
38
=cut
56
=cut
39
- 

Return to bug 17196