Lines 432-437
sub holds {
Link Here
|
432 |
return Koha::Holds->_new_from_dbic( $holds_rs ); |
432 |
return Koha::Holds->_new_from_dbic( $holds_rs ); |
433 |
} |
433 |
} |
434 |
|
434 |
|
|
|
435 |
=head3 holds_control_library |
436 |
|
437 |
my $control_library = $item->holds_control_library( $patron ); |
438 |
|
439 |
Given a I<Koha::Patron> object, this method returns a library id, for |
440 |
the library that is to be used for calculating circulation rules. It relies |
441 |
on the B<ReservesControlBranch> system preference. |
442 |
|
443 |
=cut |
444 |
|
445 |
sub holds_control_library { |
446 |
my ( $self, $patron ) = @_; |
447 |
|
448 |
return ( |
449 |
C4::Context->preference('ReservesControlBranch') eq 'ItemHomeLibrary' ) |
450 |
? $self->homebranch |
451 |
: $patron->branchcode; |
452 |
} |
453 |
|
435 |
=head3 request_transfer |
454 |
=head3 request_transfer |
436 |
|
455 |
|
437 |
my $transfer = $item->request_transfer( |
456 |
my $transfer = $item->request_transfer( |
Lines 710-717
sub pickup_locations {
Link Here
|
710 |
|
729 |
|
711 |
my $patron = $params->{patron}; |
730 |
my $patron = $params->{patron}; |
712 |
|
731 |
|
713 |
my $circ_control_branch = |
732 |
my $circ_control_branch = $self->holds_control_library( $patron ); |
714 |
C4::Reserves::GetReservesControlBranch( $self->unblessed(), $patron->unblessed ); |
|
|
715 |
my $branchitemrule = |
733 |
my $branchitemrule = |
716 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
734 |
C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype ); |
717 |
|
735 |
|
718 |
- |
|
|