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

(-)a/Koha/Biblio.pm (+16 lines)
Lines 36-41 use Koha::Acquisition::Orders; Link Here
36
use Koha::ArticleRequest::Status;
36
use Koha::ArticleRequest::Status;
37
use Koha::ArticleRequests;
37
use Koha::ArticleRequests;
38
use Koha::Biblio::Metadatas;
38
use Koha::Biblio::Metadatas;
39
use Koha::Biblio::Volumes;
39
use Koha::Biblioitems;
40
use Koha::Biblioitems;
40
use Koha::CirculationRules;
41
use Koha::CirculationRules;
41
use Koha::Item::Transfer::Limits;
42
use Koha::Item::Transfer::Limits;
Lines 114-119 sub active_orders { Link Here
114
    return $self->orders->search({ datecancellationprinted => undef });
115
    return $self->orders->search({ datecancellationprinted => undef });
115
}
116
}
116
117
118
=head3 volumes
119
120
my $volumes = $biblio->volumes();
121
122
Returns a Koha::Biblio::Volumes object
123
124
=cut
125
126
sub volumes {
127
    my ( $self ) = @_;
128
129
    my $volumes = $self->_result->volumes;
130
    return Koha::Biblio::Volumes->_new_from_dbic($volumes);
131
}
132
117
=head3 can_article_request
133
=head3 can_article_request
118
134
119
my $bool = $biblio->can_article_request( $borrower );
135
my $bool = $biblio->can_article_request( $borrower );
(-)a/Koha/Item.pm (-2 / +23 lines)
Lines 28-39 use Koha::DateUtils qw( dt_from_string ); Link Here
28
use C4::Context;
28
use C4::Context;
29
use C4::Circulation;
29
use C4::Circulation;
30
use C4::Reserves;
30
use C4::Reserves;
31
32
use Koha::Biblio::Volumes;
31
use Koha::Checkouts;
33
use Koha::Checkouts;
32
use Koha::CirculationRules;
34
use Koha::CirculationRules;
33
use Koha::Item::Transfer::Limits;
35
use Koha::Item::Transfer::Limits;
34
use Koha::Item::Transfers;
36
use Koha::Item::Transfers;
35
use Koha::Patrons;
36
use Koha::Libraries;
37
use Koha::Libraries;
38
use Koha::Patrons;
37
use Koha::StockRotationItem;
39
use Koha::StockRotationItem;
38
use Koha::StockRotationRotas;
40
use Koha::StockRotationRotas;
39
41
Lines 128-133 sub checkout { Link Here
128
    return Koha::Checkout->_new_from_dbic( $checkout_rs );
130
    return Koha::Checkout->_new_from_dbic( $checkout_rs );
129
}
131
}
130
132
133
=head3 volume
134
135
my $volume = $item->volume;
136
137
Return the volume for this item
138
139
=cut
140
141
sub volume {
142
    my ( $self ) = @_;
143
144
    my $volume_item = $self->_result->volume_items->first;
145
    return unless $volume_item;
146
147
    my $volume_rs = $volume_item->volume;
148
    return unless $volume_rs;
149
150
    return Koha::Biblio::Volume->_new_from_dbic( $volume_rs );
151
}
152
131
=head3 holds
153
=head3 holds
132
154
133
my $holds = $item->holds();
155
my $holds = $item->holds();
134
- 

Return to bug 24857