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

(-)a/reserve/request.pl (-3 / +3 lines)
Lines 67-73 my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( Link Here
67
);
67
);
68
68
69
my $showallitems = $input->param('showallitems');
69
my $showallitems = $input->param('showallitems');
70
my $pickup = $input->param('pickup') || C4::Context->userenv->{'branch'};
70
my $pickup = $input->param('pickup');
71
71
72
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
72
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
73
73
Lines 551-557 foreach my $biblionumber (@biblionumbers) { Link Here
551
551
552
                $item->{'holdallowed'} = $branchitemrule->{'holdallowed'};
552
                $item->{'holdallowed'} = $branchitemrule->{'holdallowed'};
553
553
554
                my $can_item_be_reserved = CanItemBeReserved( $patron->borrowernumber, $itemnumber, $pickup )->{status};
554
                my $reserves_control_branch = $pickup // C4::Reserves::GetReservesControlBranch( $item, $patron_unblessed );
555
                my $can_item_be_reserved = CanItemBeReserved( $patron->borrowernumber, $itemnumber, $reserves_control_branch )->{status};
555
                $item->{not_holdable} = $can_item_be_reserved unless ( $can_item_be_reserved eq 'OK' );
556
                $item->{not_holdable} = $can_item_be_reserved unless ( $can_item_be_reserved eq 'OK' );
556
557
557
                $item->{item_level_holds} = Koha::CirculationRules->get_opacitemholds_policy( { item => $item_object, patron => $patron } );
558
                $item->{item_level_holds} = Koha::CirculationRules->get_opacitemholds_policy( { item => $item_object, patron => $patron } );
558
- 

Return to bug 27071