3 # Copyright ByWater Solutions 2014
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with Koha; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 use C4
::Biblio
qw( GetRecordValue GetMarcBiblio GetFrameworkCode );
28 use base
qw(Koha::Object);
32 Koha::Biblio - Koha Biblio Object class
42 my @subtitles = $biblio->subtitles();
44 Returns list of subtitles for a record.
46 Keyword to MARC mapping for subtitle must be set for this method to return any possible values.
53 return map { $_->{subfield
} } @
{ GetRecordValue
( 'subtitle', GetMarcBiblio
( $self->id ), $self->frameworkcode ) };
58 Returns the related Koha::Items object for this biblio in scalar context,
59 or list of Koha::Item objects in list context.
66 $self->{_items
} ||= Koha
::Items
->search( { biblionumber
=> $self->biblionumber() } );
68 return wantarray ?
$self->{_items
}->as_list : $self->{_items
};
81 Kyle M Hall <kyle@bywatersolutions.com>