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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc (-25 / +21 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% USE Languages %]
3
[% USE Languages %]
4
[% PROCESS 'i18n.inc' %]
4
[% IF ( opacfacets && facets_loop && total ) %]
5
[% IF ( opacfacets && facets_loop && total ) %]
5
    <div id="search-facets">
6
    <div id="search-facets">
6
        <h2><a href="#" class="menu-collapse-toggle">Refine your search</a></h2>
7
        <h2><a href="#" class="menu-collapse-toggle">Refine your search</a></h2>
Lines 35-40 Link Here
35
                [% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %]
36
                [% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %]
36
            </li>
37
            </li>
37
38
39
            [% SET more_less_labels = {} %]
40
            [% more_less_labels.Authors         = { more = t("Show more authors"),           less = t("Show fewer authors") }           %]
41
            [% more_less_labels.Titles          = { more = t("Show more titles"),            less = t("Show fewer titles") }            %]
42
            [% more_less_labels.Topics          = { more = t("Show more topics"),            less = t("Show fewer topics") }            %]
43
            [% more_less_labels.Places          = { more = t("Show more places"),            less = t("Show fewer places") }            %]
44
            [% more_less_labels.Series          = { more = t("Show more series"),            less = t("Show fewer series") }            %]
45
            [% more_less_labels.ItemTypes       = { more = t("Show more types"),             less = t("Show fewer types") }             %]
46
            [% more_less_labels.CollectionCodes = { more = t("Show more collection codes"),  less = t("Show fewer collection codes") }  %]
47
            [% more_less_labels.Language        = { more = t("Show more languages"),         less = t("Show fewer languages") }         %]
48
            [% more_less_labels.HomeLibrary     = { more = t("Show more home libraries"),    less = t("Show fewer home libraries") }    %]
49
            [% more_less_labels.HoldingLibrary  = { more = t("Show more holding libraries"), less = t("Show fewer holding libraries") } %]
50
            [% more_less_labels.Location        = { more = t("Show more locations"),         less = t("Show fewer locations") }         %]
38
            [% FOREACH facets_loo IN facets_loop %]
51
            [% FOREACH facets_loo IN facets_loop %]
39
                [% IF facets_loo.facets.size > 0 %]
52
                [% IF facets_loo.facets.size > 0 %]
40
                    <li id="[% facets_loo.type_id | html %]">
53
                    <li id="[% facets_loo.type_id | html %]">
Lines 85-118 Link Here
85
                            [% END %]
98
                            [% END %]
86
                            [% IF facets_loo.facets.size > 5 %]
99
                            [% IF facets_loo.facets.size > 5 %]
87
                                <li class="moretoggle">
100
                                <li class="moretoggle">
88
                                    [% IF facets_loo.type_label_Authors %]<a href="#" aria-label="Show more authors"><strong>Show more</strong></a>[% END %]
101
                                    [% FOR label IN more_less_labels.keys %]
89
                                    [% IF facets_loo.type_label_Titles %]<a href="#" aria-label="Show more titles"><strong>Show more</strong></a>[% END %]
102
                                        [% IF facets_loo.item('type_label_' _ label) %]
90
                                    [% IF facets_loo.type_label_Topics %]<a href="#" aria-label="Show more topics"><strong>Show more</strong></a>[% END %]
103
                                            <a href="#" aria-label="[% more_less_labels.item(label).more | uri %]"><strong>Show more</strong></a>
91
                                    [% IF facets_loo.type_label_Places %]<a href="#" aria-label="Show more places"><strong>Show more</strong></a>[% END %]
104
                                        [% END %]
92
                                    [% IF facets_loo.type_label_Series %]<a href="#" aria-label="Show more series"><strong>Show more</strong></a>[% END %]
93
                                    [% IF facets_loo.type_label_ItemTypes %]<a href="#" aria-label="Show more item types"><strong>Show more</strong></a>[% END %]
94
                                    [% IF facets_loo.type_label_CollectionCodes %]<a href="#" aria-label="Show more collection codes"><strong>Show more</strong></a>[% END %]
95
                                    [% IF facets_loo.type_label_Language %]<a href="#" aria-label="Show more languages"><strong>Show more</strong></a>[% END %]
96
                                    [% UNLESS singleBranchMode %]
97
                                        [% IF ( facets_loo.type_label_HomeLibrary ) %]<a href="#" aria-label="Show more home libraries"><strong>Show more</strong></a>[% END %]
98
                                        [% IF ( facets_loo.type_label_HoldingLibrary ) %]<a href="#" aria-label="Show more holding libraries"><strong>Show more</strong></a>[% END %]
99
                                    [% END %]
105
                                    [% END %]
100
                                    [% IF facets_loo.type_label_Location %]<a href="#" aria-label="Show more locations"><strong>Show more</strong></a>[% END %]
101
                                </li>
106
                                </li>
102
                                <li class="moretoggle" style="display:none">
107
                                <li class="moretoggle" style="display:none">
103
                                    [% IF facets_loo.type_label_Authors %]<a href="#" aria-label="Show fewer authors"><strong>Show less</strong></a>[% END %]
108
                                    [% FOR label IN more_less_labels.keys %]
104
                                    [% IF facets_loo.type_label_Titles %]<a href="#" aria-label="Show fewer titles"><strong>Show less</strong></a>[% END %]
109
                                        [% IF facets_loo.item('type_label_' _ label) %]
105
                                    [% IF facets_loo.type_label_Topics %]<a href="#" aria-label="Show fewer topics"><strong>Show less</strong></a>[% END %]
110
                                            <a href="#" aria-label="[% more_less_labels.item(label).less | uri %]"><strong>Show less</strong></a>
106
                                    [% IF facets_loo.type_label_Places %]<a href="#" aria-label="Show fewer places"><strong>Show less</strong></a>[% END %]
111
                                        [% END %]
107
                                    [% IF facets_loo.type_label_Series %]<a href="#" aria-label="Show fewer series"><strong>Show less</strong></a>[% END %]
108
                                    [% IF facets_loo.type_label_ItemTypes %]<a href="#" aria-label="Show fewer item types"><strong>Show less</strong></a>[% END %]
109
                                    [% IF facets_loo.type_label_CollectionCodes %]<a href="#" aria-label="Show fewer collection codes"><strong>Show less</strong></a>[% END %]
110
                                    [% IF facets_loo.type_label_Language %]<a href="#" aria-label="Show fewer languages"><strong>Show less</strong></a>[% END %]
111
                                    [% UNLESS singleBranchMode %]
112
                                        [% IF ( facets_loo.type_label_HomeLibrary ) %]<a href="#" aria-label="Show fewer home libraries"><strong>Show less</strong></a>[% END %]
113
                                        [% IF ( facets_loo.type_label_HoldingLibrary ) %]<a href="#" aria-label="Show fewer holding libraries"><strong>Show less</strong></a>[% END %]
114
                                    [% END %]
112
                                    [% END %]
115
                                    [% IF facets_loo.type_label_Location %]<a href="#" aria-label="Show fewer locations"><strong>Show less</strong></a>[% END %]
116
                                </li>
113
                                </li>
117
                            [% END %]
114
                            [% END %]
118
                        </ul>
115
                        </ul>
119
- 

Return to bug 33809