Lines 31-52
use C4::ClassSource qw( GetClassSort );
Link Here
|
31 |
use C4::Log qw( logaction ); |
31 |
use C4::Log qw( logaction ); |
32 |
|
32 |
|
33 |
use Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue; |
33 |
use Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue; |
|
|
34 |
use Koha::Biblio::ItemGroups; |
34 |
use Koha::Checkouts; |
35 |
use Koha::Checkouts; |
35 |
use Koha::CirculationRules; |
36 |
use Koha::CirculationRules; |
36 |
use Koha::CoverImages; |
37 |
use Koha::CoverImages; |
37 |
use Koha::SearchEngine::Indexer; |
|
|
38 |
use Koha::Exceptions::Item::Transfer; |
38 |
use Koha::Exceptions::Item::Transfer; |
|
|
39 |
use Koha::Item::Attributes; |
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::Item::Attributes; |
|
|
42 |
use Koha::ItemTypes; |
42 |
use Koha::ItemTypes; |
|
|
43 |
use Koha::Libraries; |
43 |
use Koha::Patrons; |
44 |
use Koha::Patrons; |
44 |
use Koha::Plugins; |
45 |
use Koha::Plugins; |
45 |
use Koha::Libraries; |
46 |
use Koha::Result::Boolean; |
|
|
47 |
use Koha::SearchEngine::Indexer; |
46 |
use Koha::StockRotationItem; |
48 |
use Koha::StockRotationItem; |
47 |
use Koha::StockRotationRotas; |
49 |
use Koha::StockRotationRotas; |
48 |
use Koha::TrackedLinks; |
50 |
use Koha::TrackedLinks; |
49 |
use Koha::Result::Boolean; |
|
|
50 |
|
51 |
|
51 |
use base qw(Koha::Object); |
52 |
use base qw(Koha::Object); |
52 |
|
53 |
|
Lines 416-421
sub checkout {
Link Here
|
416 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
417 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
417 |
} |
418 |
} |
418 |
|
419 |
|
|
|
420 |
=head3 item_group |
421 |
|
422 |
my $item_group = $item->item_group; |
423 |
|
424 |
Return the item group for this item |
425 |
|
426 |
=cut |
427 |
|
428 |
sub item_group { |
429 |
my ( $self ) = @_; |
430 |
|
431 |
my $item_group_item = $self->_result->item_group_item; |
432 |
return unless $item_group_item; |
433 |
|
434 |
my $item_group_rs = $item_group_item->item_group; |
435 |
return unless $item_group_rs; |
436 |
|
437 |
my $item_group = Koha::Biblio::ItemGroup->_new_from_dbic( $item_group_rs ); |
438 |
return $item_group; |
439 |
} |
440 |
|
419 |
=head3 holds |
441 |
=head3 holds |
420 |
|
442 |
|
421 |
my $holds = $item->holds(); |
443 |
my $holds = $item->holds(); |