Lines 483-488
sub holds {
Link Here
|
483 |
return Koha::Holds->_new_from_dbic( $holds_rs ); |
483 |
return Koha::Holds->_new_from_dbic( $holds_rs ); |
484 |
} |
484 |
} |
485 |
|
485 |
|
|
|
486 |
=head3 holds_control_library |
487 |
|
488 |
my $control_library = $item->holds_control_library( $patron ); |
489 |
|
490 |
Given a I<Koha::Patron> object, this method returns a library id, for |
491 |
the library that is to be used for calculating circulation rules. It relies |
492 |
on the B<ReservesControlBranch> system preference. |
493 |
|
494 |
=cut |
495 |
|
496 |
sub holds_control_library { |
497 |
my ( $self, $patron ) = @_; |
498 |
|
499 |
return ( |
500 |
C4::Context->preference('ReservesControlBranch') eq 'ItemHomeLibrary' ) |
501 |
? $self->homebranch |
502 |
: $patron->branchcode; |
503 |
} |
504 |
|
486 |
=head3 request_transfer |
505 |
=head3 request_transfer |
487 |
|
506 |
|
488 |
my $transfer = $item->request_transfer( |
507 |
my $transfer = $item->request_transfer( |
Lines 740-747
sub pickup_locations {
Link Here
|
740 |
|
759 |
|
741 |
my $patron = $params->{patron}; |
760 |
my $patron = $params->{patron}; |
742 |
|
761 |
|
743 |
my $circ_control_branch = |
762 |
my $circ_control_branch = $self->holds_control_library( $patron ); |
744 |
C4::Reserves::GetReservesControlBranch( $self->unblessed(), $patron->unblessed ); |
|
|
745 |
my $branchitemrule = |
763 |
my $branchitemrule = |
746 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
764 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
747 |
|
765 |
|
748 |
- |
|
|