|
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 |
|
48 |
|
|
Lines 393-398
sub checkout {
Link Here
|
| 393 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
394 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
| 394 |
} |
395 |
} |
| 395 |
|
396 |
|
|
|
397 |
=head3 volume |
| 398 |
|
| 399 |
my $volume = $item->volume; |
| 400 |
|
| 401 |
Return the volume for this item |
| 402 |
|
| 403 |
=cut |
| 404 |
|
| 405 |
sub volume { |
| 406 |
my ( $self ) = @_; |
| 407 |
|
| 408 |
my $volume_item = $self->_result->volume_items->first; |
| 409 |
return unless $volume_item; |
| 410 |
|
| 411 |
my $volume_rs = $volume_item->volume; |
| 412 |
return unless $volume_rs; |
| 413 |
|
| 414 |
return Koha::Biblio::Volume->_new_from_dbic( $volume_rs ); |
| 415 |
} |
| 416 |
|
| 396 |
=head3 holds |
417 |
=head3 holds |
| 397 |
|
418 |
|
| 398 |
my $holds = $item->holds(); |
419 |
my $holds = $item->holds(); |
| 399 |
- |
|
|