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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +5 lines)
Lines 726-732 Link Here
726
                                                    [% IF (itemloo.pickup_locations_count > 0) %]
726
                                                    [% IF (itemloo.pickup_locations_count > 0) %]
727
                                                        <select name="item_pickup" class="pickup_locations"
727
                                                        <select name="item_pickup" class="pickup_locations"
728
                                                                data-item-id="[% itemloo.itemnumber | html %]"
728
                                                                data-item-id="[% itemloo.itemnumber | html %]"
729
                                                                data-patron-id="[% patron.borrowernumber | html %]"></select>
729
                                                                data-patron-id="[% patron.borrowernumber | html %]">
730
                                                        [% IF (itemloo.default_pickup_location) %]
731
                                                            <option value="[% itemloo.default_pickup_location.branchcode | html %]" selected="selected">[% itemloo.default_pickup_location.branchname | html %]</option>
732
                                                        [% END %]
733
                                                        </select>
730
                                                    [% END %]
734
                                                    [% END %]
731
                                                    </td>
735
                                                    </td>
732
                                                </tr>
736
                                                </tr>
(-)a/reserve/request.pl (-2 / +5 lines)
Lines 578-587 foreach my $biblionumber (@biblionumbers) { Link Here
578
                  )
578
                  )
579
                {
579
                {
580
                    # Send the pickup locations count to the UI, the pickup locations will be pulled using the API
580
                    # Send the pickup locations count to the UI, the pickup locations will be pulled using the API
581
                    $item->{pickup_locations_count} = $item_object->pickup_locations({ patron => $patron })->count;
581
                    my $pickup_locations = $item_object->pickup_locations({ patron => $patron });
582
                    $item->{pickup_locations_count} = $pickup_locations->count;
582
                    if ( $item->{pickup_locations_count} > 0 ) {
583
                    if ( $item->{pickup_locations_count} > 0 ) {
583
                        $num_available++;
584
                        $num_available++;
584
                        $item->{available} = 1;
585
                        $item->{available} = 1;
586
                        # pass the holding branch for use as default
587
                        my $default_pickup_location = $pickup_locations->search({ branchcode => $item->{holdingbranch} })->next;
588
                        $item->{default_pickup_location} = $default_pickup_location;
585
                    }
589
                    }
586
                    else {
590
                    else {
587
                        $item->{available} = 0;
591
                        $item->{available} = 0;
588
- 

Return to bug 28338