|
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 412-417
sub checkout {
Link Here
|
| 412 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
413 |
return Koha::Checkout->_new_from_dbic( $checkout_rs ); |
| 413 |
} |
414 |
} |
| 414 |
|
415 |
|
|
|
416 |
=head3 item_group |
| 417 |
|
| 418 |
my $item_group = $item->item_group; |
| 419 |
|
| 420 |
Return the item group for this item |
| 421 |
|
| 422 |
=cut |
| 423 |
|
| 424 |
sub item_group { |
| 425 |
my ( $self ) = @_; |
| 426 |
|
| 427 |
my $item_group_item = $self->_result->item_group_item; |
| 428 |
return unless $item_group_item; |
| 429 |
|
| 430 |
my $item_group_rs = $item_group_item->item_group; |
| 431 |
return unless $item_group_rs; |
| 432 |
|
| 433 |
my $item_group = Koha::Biblio::ItemGroup->_new_from_dbic( $item_group_rs ); |
| 434 |
return $item_group; |
| 435 |
} |
| 436 |
|
| 415 |
=head3 holds |
437 |
=head3 holds |
| 416 |
|
438 |
|
| 417 |
my $holds = $item->holds(); |
439 |
my $holds = $item->holds(); |