Lines 54-72
Link Here
|
54 |
[% FOREACH facets_loo IN facets_loop %] |
54 |
[% FOREACH facets_loo IN facets_loop %] |
55 |
[% IF facets_loo.facets.size > 0 %] |
55 |
[% IF facets_loo.facets.size > 0 %] |
56 |
<li id="[% facets_loo.type_id | html %]"> |
56 |
<li id="[% facets_loo.type_id | html %]"> |
57 |
[% IF facets_loo.type_label_Authors %]<h3 id="facet-authors">Authors</h3>[% END %] |
57 |
[% SWITCH facets_loo.label %] |
58 |
[% IF facets_loo.type_label_Titles %]<h3 id="facet-titles">Titles</h3>[% END %] |
58 |
[% CASE 'Authors' %] |
59 |
[% IF facets_loo.type_label_Topics %]<h3 id="facet-topics">Topics</h3>[% END %] |
59 |
<h3 id="facet-authors">Authors</h3> |
60 |
[% IF facets_loo.type_label_Places %]<h3 id="facet-places">Places</h3>[% END %] |
60 |
[% CASE 'Titles' %] |
61 |
[% IF facets_loo.type_label_Series %]<h3 id="facet-series">Series</h3>[% END %] |
61 |
<h3 id="facet-titles">Titles</h3> |
62 |
[% IF facets_loo.type_label_ItemTypes %]<h3 id="facet-itemtypes">Item types</h3>[% END %] |
62 |
[% CASE 'Topics' %] |
63 |
[% IF facets_loo.type_label_CollectionCodes %]<h3 id="facet-collections">Collections</h3>[% END %] |
63 |
<h3 id="facet-topics">Topics</h3> |
64 |
[% IF facets_loo.type_label_Language %]<h3 id="facet-languages">Languages</h3>[% END %] |
64 |
[% CASE 'Places' %] |
|
|
65 |
<h3 id="facet-places">Places</h3> |
66 |
[% CASE 'Series' %] |
67 |
<h3 id="facet-series">Series</h3> |
68 |
[% CASE 'ItemTypes' %] |
69 |
<h3 id="facet-itemtypes">Item types</h3> |
70 |
[% CASE 'Location' %] |
71 |
<h3 id="facet-locations">Locations</h3> |
72 |
[% CASE 'CollectionCodes' %] |
73 |
<h3 id="facet-collections">Collections</h3> |
74 |
[% CASE 'Languages' %] |
75 |
<h3 id="facet-languages">Languages</h3> |
76 |
[% CASE %] |
77 |
<h3 id="facet-[% facets_loo.type_link_value | html %]">[% facets_loo.label | html %]</h3> |
78 |
[% END %] |
79 |
|
65 |
[% UNLESS singleBranchMode %] |
80 |
[% UNLESS singleBranchMode %] |
66 |
[% IF ( facets_loo.type_label_HomeLibrary ) %]<h3 id="facet-home-libraries">Home libraries</h3>[% END %] |
81 |
[% IF ( facets_loo.label == HomeLibrary ) %] |
67 |
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<h3 id="facet-holding-libraries">Holding libraries</h3>[% END %] |
82 |
<h3 id="facet-home-libraries">Home libraries</h3> |
|
|
83 |
[% END %] |
84 |
[% IF ( facets_loo.label == 'HoldingLibrary' ) %] |
85 |
<h3 id="facet-holding-libraries">Holding libraries</h3> |
86 |
[% END %] |
68 |
[% END %] |
87 |
[% END %] |
69 |
[% IF facets_loo.type_label_Location %]<h3 id="facet-locations">Locations</h3>[% END %] |
|
|
70 |
<ul> |
88 |
<ul> |
71 |
[% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] |
89 |
[% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %] |
72 |
[% IF ( sort_by ) %] |
90 |
[% IF ( sort_by ) %] |
Lines 103-116
Link Here
|
103 |
<li class="moretoggle"> |
121 |
<li class="moretoggle"> |
104 |
[% FOR label IN more_less_labels.keys %] |
122 |
[% FOR label IN more_less_labels.keys %] |
105 |
[% IF facets_loo.item('type_label_' _ label) %] |
123 |
[% IF facets_loo.item('type_label_' _ label) %] |
106 |
<a href="#" aria-label="[% more_less_labels.item(label).more | html | trim %]"><strong>Show more</strong></a> |
124 |
<a href="#" aria-label="[% more_less_labels.item(label).more || t('Show more') | html | trim %]"><strong>Show more</strong></a> |
107 |
[% END %] |
125 |
[% END %] |
108 |
[% END %] |
126 |
[% END %] |
109 |
</li> |
127 |
</li> |
110 |
<li class="moretoggle" style="display:none"> |
128 |
<li class="moretoggle" style="display:none"> |
111 |
[% FOR label IN more_less_labels.keys %] |
129 |
[% FOR label IN more_less_labels.keys %] |
112 |
[% IF facets_loo.item('type_label_' _ label) %] |
130 |
[% IF facets_loo.item('type_label_' _ label) %] |
113 |
<a href="#" aria-label="[% more_less_labels.item(label).less | html | trim %]"><strong>Show less</strong></a> |
131 |
<a href="#" aria-label="[% more_less_labels.item(label).less || t('Show less') | html | trim %]"><strong>Show less</strong></a> |
114 |
[% END %] |
132 |
[% END %] |
115 |
[% END %] |
133 |
[% END %] |
116 |
</li> |
134 |
</li> |
117 |
- |
|
|