View | Details | Raw Unified | Return to bug 24857
Collapse All | Expand All

(-)a/Koha/Biblio.pm (+16 lines)
Lines 34-39 use Koha::Acquisition::Orders; Link Here
34
use Koha::ArticleRequest::Status;
34
use Koha::ArticleRequest::Status;
35
use Koha::ArticleRequests;
35
use Koha::ArticleRequests;
36
use Koha::Biblio::Metadatas;
36
use Koha::Biblio::Metadatas;
37
use Koha::Biblio::Volumes;
37
use Koha::Biblioitems;
38
use Koha::Biblioitems;
38
use Koha::CirculationRules;
39
use Koha::CirculationRules;
39
use Koha::Item::Transfer::Limits;
40
use Koha::Item::Transfer::Limits;
Lines 112-117 sub active_orders { Link Here
112
    return $self->orders->search({ datecancellationprinted => undef });
113
    return $self->orders->search({ datecancellationprinted => undef });
113
}
114
}
114
115
116
=head3 volumes
117
118
my $volumes = $biblio->volumes();
119
120
Returns a Koha::Biblio::Volumes object
121
122
=cut
123
124
sub volumes {
125
    my ( $self ) = @_;
126
127
    my $volumes = $self->_result->volumes;
128
    return Koha::Biblio::Volumes->_new_from_dbic($volumes);
129
}
130
115
=head3 can_article_request
131
=head3 can_article_request
116
132
117
my $bool = $biblio->can_article_request( $borrower );
133
my $bool = $biblio->can_article_request( $borrower );
(-)a/Koha/Item.pm (-2 / +22 lines)
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
- 

Return to bug 24857