Lines 30-35
use C4::Circulation qw( GetBranchItemRule );
Link Here
|
30 |
use C4::Reserves; |
30 |
use C4::Reserves; |
31 |
use C4::ClassSource qw( GetClassSort ); |
31 |
use C4::ClassSource qw( GetClassSort ); |
32 |
use C4::Log qw( logaction ); |
32 |
use C4::Log qw( logaction ); |
|
|
33 |
use C4::Reserves; |
33 |
|
34 |
|
34 |
use Koha::Checkouts; |
35 |
use Koha::Checkouts; |
35 |
use Koha::CirculationRules; |
36 |
use Koha::CirculationRules; |
Lines 39-47
use Koha::Exceptions::Item::Transfer;
Link Here
|
39 |
use Koha::Item::Transfer::Limits; |
40 |
use Koha::Item::Transfer::Limits; |
40 |
use Koha::Item::Transfers; |
41 |
use Koha::Item::Transfers; |
41 |
use Koha::ItemTypes; |
42 |
use Koha::ItemTypes; |
|
|
43 |
use Koha::Libraries; |
42 |
use Koha::Patrons; |
44 |
use Koha::Patrons; |
43 |
use Koha::Plugins; |
45 |
use Koha::Plugins; |
44 |
use Koha::Libraries; |
|
|
45 |
use Koha::StockRotationItem; |
46 |
use Koha::StockRotationItem; |
46 |
use Koha::StockRotationRotas; |
47 |
use Koha::StockRotationRotas; |
47 |
use Koha::TrackedLinks; |
48 |
use Koha::TrackedLinks; |
Lines 394-399
sub checkout {
Link Here
|
394 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
395 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
395 |
} |
396 |
} |
396 |
|
397 |
|
|
|
398 |
=head3 volume |
399 |
|
400 |
my $volume = $item->volume; |
401 |
|
402 |
Return the volume for this item |
403 |
|
404 |
=cut |
405 |
|
406 |
sub volume { |
407 |
my ( $self ) = @_; |
408 |
|
409 |
my $volume_item = $self->_result->volume_items->first; |
410 |
return unless $volume_item; |
411 |
|
412 |
my $volume_rs = $volume_item->volume; |
413 |
return unless $volume_rs; |
414 |
|
415 |
return Koha::Biblio::Volume->_new_from_dbic( $volume_rs ); |
416 |
} |
417 |
|
397 |
=head3 holds |
418 |
=head3 holds |
398 |
|
419 |
|
399 |
my $holds = $item->holds(); |
420 |
my $holds = $item->holds(); |
400 |
- |
|
|