Lines 31-37
use C4::Context;
Link Here
|
31 |
use C4::Circulation; |
31 |
use C4::Circulation; |
32 |
use C4::Reserves; |
32 |
use C4::Reserves; |
33 |
use C4::ClassSource; # FIXME We would like to avoid that |
33 |
use C4::ClassSource; # FIXME We would like to avoid that |
|
|
34 |
use C4::Context; |
34 |
use C4::Log qw( logaction ); |
35 |
use C4::Log qw( logaction ); |
|
|
36 |
use C4::Reserves; |
35 |
|
37 |
|
36 |
use Koha::Checkouts; |
38 |
use Koha::Checkouts; |
37 |
use Koha::CirculationRules; |
39 |
use Koha::CirculationRules; |
Lines 40-48
use Koha::SearchEngine::Indexer;
Link Here
|
40 |
use Koha::Item::Transfer::Limits; |
42 |
use Koha::Item::Transfer::Limits; |
41 |
use Koha::Item::Transfers; |
43 |
use Koha::Item::Transfers; |
42 |
use Koha::ItemTypes; |
44 |
use Koha::ItemTypes; |
|
|
45 |
use Koha::Libraries; |
43 |
use Koha::Patrons; |
46 |
use Koha::Patrons; |
44 |
use Koha::Plugins; |
47 |
use Koha::Plugins; |
45 |
use Koha::Libraries; |
|
|
46 |
use Koha::StockRotationItem; |
48 |
use Koha::StockRotationItem; |
47 |
use Koha::StockRotationRotas; |
49 |
use Koha::StockRotationRotas; |
48 |
|
50 |
|
Lines 385-390
sub checkout {
Link Here
|
385 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
387 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
386 |
} |
388 |
} |
387 |
|
389 |
|
|
|
390 |
=head3 volume |
391 |
|
392 |
my $volume = $item->volume; |
393 |
|
394 |
Return the volume for this item |
395 |
|
396 |
=cut |
397 |
|
398 |
sub volume { |
399 |
my ( $self ) = @_; |
400 |
|
401 |
my $volume_item = $self->_result->volume_items->first; |
402 |
return unless $volume_item; |
403 |
|
404 |
my $volume_rs = $volume_item->volume; |
405 |
return unless $volume_rs; |
406 |
|
407 |
return Koha::Biblio::Volume->_new_from_dbic( $volume_rs ); |
408 |
} |
409 |
|
388 |
=head3 holds |
410 |
=head3 holds |
389 |
|
411 |
|
390 |
my $holds = $item->holds(); |
412 |
my $holds = $item->holds(); |
391 |
- |
|
|