1 package Koha::AdditionalContentsLocalization;
3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
21 use Koha::AdditionalContents;
23 use base qw(Koha::Object);
27 Koha::AdditionalContentsLocalization - Koha Additional content localization object class
35 =head3 additional_content
37 $c->additional_content;
39 Return the Koha::AdditionalContent for this translated content.
43 sub additional_content {
45 my $rs = $self->_result->additional_content;
46 return Koha::AdditionalContent->_new_from_dbic($rs);
53 Return the author of the content
58 my ( $self, @params ) = @_;
59 return $self->additional_content->author(@params);
66 Return $content->is_expired
71 my ( $self, @params ) = @_;
72 return $self->additional_content->is_expired(@params);
79 Return the library of the content
84 my ( $self, @params ) = @_;
85 return $self->additional_content->library(@params);
92 Return the category of the content
97 my ( $self, @params ) = @_;
98 return $self->additional_content->category;
105 Return the code of the content
110 my ( $self, @params ) = @_;
111 return $self->additional_content->code(@params);
118 Return the location of the content
123 my ( $self, @params ) = @_;
124 return $self->additional_content->location(@params);
131 Return the branchcode of the content
136 my ( $self, @params ) = @_;
137 return $self->additional_content->branchcode(@params);
144 Return the publication date of the content
149 my ( $self, @params ) = @_;
150 return $self->additional_content->published_on(@params);
153 =head3 expirationdate
157 Return the expiration date of the content
162 my ( $self, @params ) = @_;
163 return $self->additional_content->expirationdate(@params);
170 Return the number (order of display) of the content
175 my ( $self, @params ) = @_;
176 return $self->additional_content->number(@params);
179 =head3 borrowernumber
183 Return the borrowernumber of the content
188 my ( $self, @params ) = @_;
189 return $self->additional_content->borrowernumber(@params);
201 return 'AdditionalContentsLocalization';