|
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 41-49
use Koha::Exceptions::Item::Transfer;
Link Here
|
| 41 |
use Koha::Item::Transfer::Limits; |
43 |
use Koha::Item::Transfer::Limits; |
| 42 |
use Koha::Item::Transfers; |
44 |
use Koha::Item::Transfers; |
| 43 |
use Koha::ItemTypes; |
45 |
use Koha::ItemTypes; |
|
|
46 |
use Koha::Libraries; |
| 44 |
use Koha::Patrons; |
47 |
use Koha::Patrons; |
| 45 |
use Koha::Plugins; |
48 |
use Koha::Plugins; |
| 46 |
use Koha::Libraries; |
|
|
| 47 |
use Koha::StockRotationItem; |
49 |
use Koha::StockRotationItem; |
| 48 |
use Koha::StockRotationRotas; |
50 |
use Koha::StockRotationRotas; |
| 49 |
|
51 |
|
|
Lines 395-400
sub checkout {
Link Here
|
| 395 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
397 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
| 396 |
} |
398 |
} |
| 397 |
|
399 |
|
|
|
400 |
=head3 volume |
| 401 |
|
| 402 |
my $volume = $item->volume; |
| 403 |
|
| 404 |
Return the volume for this item |
| 405 |
|
| 406 |
=cut |
| 407 |
|
| 408 |
sub volume { |
| 409 |
my ( $self ) = @_; |
| 410 |
|
| 411 |
my $volume_item = $self->_result->volume_items->first; |
| 412 |
return unless $volume_item; |
| 413 |
|
| 414 |
my $volume_rs = $volume_item->volume; |
| 415 |
return unless $volume_rs; |
| 416 |
|
| 417 |
return Koha::Biblio::Volume->_new_from_dbic( $volume_rs ); |
| 418 |
} |
| 419 |
|
| 398 |
=head3 holds |
420 |
=head3 holds |
| 399 |
|
421 |
|
| 400 |
my $holds = $item->holds(); |
422 |
my $holds = $item->holds(); |
| 401 |
- |
|
|