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 |
- |
|
|