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

(-)a/C4/Koha.pm (-7 / +7 lines)
Lines 347-353 sub getFacets { Link Here
347
            },
347
            },
348
            {
348
            {
349
                idx => 'ccode',
349
                idx => 'ccode',
350
                label => 'CollectionCodes',
350
                label => 'Collections',
351
                tags => [ qw / 099t 955h / ],
351
                tags => [ qw / 099t 955h / ],
352
            }
352
            }
353
            ];
353
            ];
Lines 362-368 sub getFacets { Link Here
362
                        @$facets,
362
                        @$facets,
363
                        {
363
                        {
364
                            idx   => 'holdingbranch',
364
                            idx   => 'holdingbranch',
365
                            label => 'HoldingLibrary',
365
                            label => 'Holding libraries',
366
                            tags  => [qw / 995c /],
366
                            tags  => [qw / 995c /],
367
                        }
367
                        }
368
                    );
368
                    );
Lines 375-381 sub getFacets { Link Here
375
                    @$facets,
375
                    @$facets,
376
                    {
376
                    {
377
                        idx   => 'homebranch',
377
                        idx   => 'homebranch',
378
                        label => 'HomeLibrary',
378
                        label => 'Home libraries',
379
                        tags  => [qw / 995b /],
379
                        tags  => [qw / 995b /],
380
                    }
380
                    }
381
                );
381
                );
Lines 422-428 sub getFacets { Link Here
422
            },
422
            },
423
            {
423
            {
424
                idx   => 'itype',
424
                idx   => 'itype',
425
                label => 'ItemTypes',
425
                label => 'Item types',
426
                tags  => [ qw/ 952y 942c / ],
426
                tags  => [ qw/ 952y 942c / ],
427
                sep   => ', ',
427
                sep   => ', ',
428
            },
428
            },
Lines 433-439 sub getFacets { Link Here
433
            },
433
            },
434
            {
434
            {
435
                idx => 'ccode',
435
                idx => 'ccode',
436
                label => 'CollectionCodes',
436
                label => 'Collections',
437
                tags => [ qw / 9528 / ],
437
                tags => [ qw / 9528 / ],
438
            }
438
            }
439
            ];
439
            ];
Lines 448-454 sub getFacets { Link Here
448
                        @$facets,
448
                        @$facets,
449
                        {
449
                        {
450
                            idx   => 'holdingbranch',
450
                            idx   => 'holdingbranch',
451
                            label => 'HoldingLibrary',
451
                            label => 'Holding libraries',
452
                            tags  => [qw / 952b /],
452
                            tags  => [qw / 952b /],
453
                        }
453
                        }
454
                    );
454
                    );
Lines 461-467 sub getFacets { Link Here
461
                    @$facets,
461
                    @$facets,
462
                    {
462
                    {
463
                        idx   => 'homebranch',
463
                        idx   => 'homebranch',
464
                        label => 'HomeLibrary',
464
                        label => 'Home libraries',
465
                        tags  => [qw / 952a /],
465
                        tags  => [qw / 952a /],
466
                    }
466
                    }
467
                );
467
                );
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc (-3 / +3 lines)
Lines 85-94 Link Here
85
                                    [% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %]
85
                                    [% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %]
86
                                [% END %]
86
                                [% END %]
87
                                [% FOREACH facet IN facets_loo.facets %]
87
                                [% FOREACH facet IN facets_loo.facets %]
88
                                    [% IF facets_loo.type_label_CollectionCodes %]
88
                                    [% IF facets_loo.label == 'Collections' %]
89
                                        [% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value ) || facet.facet_label_value %]
89
                                        [% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value ) || facet.facet_label_value %]
90
                                    [% END %]
90
                                    [% END %]
91
                                    [% IF facets_loo.type_label_Language %]
91
                                    [% IF facets_loo.label == 'Language' %]
92
                                        [% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %]
92
                                        [% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %]
93
                                    [% END %]
93
                                    [% END %]
94
                                    [% IF loop.count > 5 && !facet.active %]
94
                                    [% IF loop.count > 5 && !facet.active %]
Lines 96-102 Link Here
96
                                    [% ELSE %]
96
                                    [% ELSE %]
97
                                        <li>
97
                                        <li>
98
                                    [% END %]
98
                                    [% END %]
99
                                        [% SET facet_is_current_library = ( facets_loo.type_label_HomeLibrary || facets_loo.type_label_HoldingLibrary ) && !singleBranchMode && facet.facet_title_value == Branches.GetLoggedInBranchcode %]
99
                                        [% SET facet_is_current_library = ( facets_loo.label == 'Home libraries' || facets_loo.label == 'Holding libraries' ) && !singleBranchMode && facet.facet_title_value == Branches.GetLoggedInBranchcode %]
100
                                        [% SET facet_label_class = facet_is_current_library ? 'facet-label currentlibrary' : 'facet-label' %]
100
                                        [% SET facet_label_class = facet_is_current_library ? 'facet-label currentlibrary' : 'facet-label' %]
101
                                        [% IF facet.active %]
101
                                        [% IF facet.active %]
102
                                            [% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _  facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
102
                                            [% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _  facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc (-3 / +2 lines)
Lines 89-96 Link Here
89
                              [% url = BLOCK %][% url | $raw %][% "&amp;count=" _ results_per_page | url %][% END %]
89
                              [% url = BLOCK %][% url | $raw %][% "&amp;count=" _ results_per_page | url %][% END %]
90
                            [% END %]
90
                            [% END %]
91
                            [% FOREACH facet IN facets_loo.facets %]
91
                            [% FOREACH facet IN facets_loo.facets %]
92
                            [% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value, opac =>1 ) || facet.facet_label_value %][% END %]
92
                            [% IF facets_loo.label == 'Collections' %][% SET facet.facet_label_value = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => facet.facet_label_value, opac =>1 ) || facet.facet_label_value %][% END %]
93
                            [% IF facets_loo.type_label_Language %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %]
93
                            [% IF facets_loo.label == 'Language' %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %]
94
                            [% IF loop.count > 5 && !facet.active %]
94
                            [% IF loop.count > 5 && !facet.active %]
95
                                <li class="collapsible-facet" style="display:none">
95
                                <li class="collapsible-facet" style="display:none">
96
                            [% ELSE %]
96
                            [% ELSE %]
97
- 

Return to bug 36750