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

(-)a/Koha/Template/Plugin/Branches.pm (-2 / +4 lines)
Lines 88-95 sub InIndependentBranchesMode { Link Here
88
sub pickup_locations {
88
sub pickup_locations {
89
    my ( $self, $params ) = @_;
89
    my ( $self, $params ) = @_;
90
90
91
    my $selected  = $params->{selected};
91
    my $search_params = $params->{search_params} || {};
92
    my $libraries = Koha::Libraries->pickup_locations($params);
92
    my $selected      = $params->{selected};
93
    my $libraries     = Koha::Libraries->pickup_locations($search_params);
94
93
    for my $l (@$libraries) {
95
    for my $l (@$libraries) {
94
        if ( defined $selected and $l->{branchcode} eq $selected
96
        if ( defined $selected and $l->{branchcode} eq $selected
95
            or not defined $selected
97
            or not defined $selected
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-2 / +1 lines)
Lines 231-237 Link Here
231
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
231
                                                                <label for="branch_[% bibitemloo.biblionumber | html %]">Pick up location:</label>
232
                                                                [% UNLESS ( bibitemloo.holdable ) %]
232
                                                                [% UNLESS ( bibitemloo.holdable ) %]
233
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
233
                                                                    <select name="branch" id="branch_[% bibitemloo.biblionumber | html %]" disabled="disabled">
234
                                                                        [% PROCESS options_for_libraries libraries => Branches.pickup_locations( biblio => bibitemloo.biblionumber, selected => branch ) %]
234
                                                                        [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => bibitemloo.biblionumber }, selected => branch }) %]
235
                                                                    </select>
235
                                                                    </select>
236
                                                                [% ELSE %]
236
                                                                [% ELSE %]
237
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
237
                                                                    [% SET at_least_one_library_not_available_for_pickup = 0 %]
238
- 

Return to bug 22688