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

(-)a/C4/Search.pm (-1 / +7 lines)
Lines 587-592 sub getRecords { Link Here
587
                                    $facet_label_value = $av->count ? $av->next->opac_description : '';
587
                                    $facet_label_value = $av->count ? $av->next->opac_description : '';
588
                                }
588
                                }
589
589
590
                                # also, if it's a collection code, use the name instead of the code
591
                                if ( $link_value =~ /ccode/ ) {
592
                                    # TODO Retrieve all authorised values at once, instead of 1 query per entry
593
                                    my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $one_facet });
594
                                    $facet_label_value = $av->count ? $av->next->opac_description : '';
595
                                }
596
590
                # but we're down with the whole label being in the link's title.
597
                # but we're down with the whole label being in the link's title.
591
                                push @this_facets_array,
598
                                push @this_facets_array,
592
                                  {
599
                                  {
593
- 

Return to bug 18322