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 36-41
Link Here
|
36 |
[% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] |
37 |
[% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])</li>[% END %] |
37 |
</li> |
38 |
</li> |
38 |
|
39 |
|
|
|
40 |
[% SET more_less_labels = {} %] |
41 |
[% more_less_labels.Authors = { more = t("Show more authors"), less = t("Show fewer authors") } %] |
42 |
[% more_less_labels.Titles = { more = t("Show more titles"), less = t("Show fewer titles") } %] |
43 |
[% more_less_labels.Topics = { more = t("Show more topics"), less = t("Show fewer topics") } %] |
44 |
[% more_less_labels.Places = { more = t("Show more places"), less = t("Show fewer places") } %] |
45 |
[% more_less_labels.Series = { more = t("Show more series"), less = t("Show fewer series") } %] |
46 |
[% more_less_labels.ItemTypes = { more = t("Show more types"), less = t("Show fewer types") } %] |
47 |
[% more_less_labels.CollectionCodes = { more = t("Show more collection codes"), less = t("Show fewer collection codes") } %] |
48 |
[% more_less_labels.Language = { more = t("Show more languages"), less = t("Show fewer languages") } %] |
49 |
[% more_less_labels.HomeLibrary = { more = t("Show more home libraries"), less = t("Show fewer home libraries") } %] |
50 |
[% more_less_labels.HoldingLibrary = { more = t("Show more holding libraries"), less = t("Show fewer holding libraries") } %] |
51 |
[% more_less_labels.Location = { more = t("Show more locations"), less = t("Show fewer locations") } %] |
39 |
[% FOREACH facets_loo IN facets_loop %] |
52 |
[% FOREACH facets_loo IN facets_loop %] |
40 |
[% IF facets_loo.facets.size > 0 %] |
53 |
[% IF facets_loo.facets.size > 0 %] |
41 |
<li id="[% facets_loo.type_id | html %]"> |
54 |
<li id="[% facets_loo.type_id | html %]"> |
Lines 86-119
Link Here
|
86 |
[% END %] |
99 |
[% END %] |
87 |
[% IF facets_loo.facets.size > 5 %] |
100 |
[% IF facets_loo.facets.size > 5 %] |
88 |
<li class="moretoggle"> |
101 |
<li class="moretoggle"> |
89 |
[% IF facets_loo.type_label_Authors %]<a href="#" aria-label="Show more authors"><strong>Show more</strong></a>[% END %] |
102 |
[% FOR label IN more_less_labels.keys %] |
90 |
[% IF facets_loo.type_label_Titles %]<a href="#" aria-label="Show more titles"><strong>Show more</strong></a>[% END %] |
103 |
[% IF facets_loo.item('type_label_' _ label) %] |
91 |
[% IF facets_loo.type_label_Topics %]<a href="#" aria-label="Show more topics"><strong>Show more</strong></a>[% END %] |
104 |
<a href="#" aria-label="[% more_less_labels.item(label).more | uri %]"><strong>Show more</strong></a> |
92 |
[% IF facets_loo.type_label_Places %]<a href="#" aria-label="Show more places"><strong>Show more</strong></a>[% END %] |
105 |
[% END %] |
93 |
[% IF facets_loo.type_label_Series %]<a href="#" aria-label="Show more series"><strong>Show more</strong></a>[% END %] |
|
|
94 |
[% IF facets_loo.type_label_ItemTypes %]<a href="#" aria-label="Show more item types"><strong>Show more</strong></a>[% END %] |
95 |
[% IF facets_loo.type_label_CollectionCodes %]<a href="#" aria-label="Show more collection codes"><strong>Show more</strong></a>[% END %] |
96 |
[% IF facets_loo.type_label_Language %]<a href="#" aria-label="Show more languages"><strong>Show more</strong></a>[% END %] |
97 |
[% UNLESS singleBranchMode %] |
98 |
[% IF ( facets_loo.type_label_HomeLibrary ) %]<a href="#" aria-label="Show more home libraries"><strong>Show more</strong></a>[% END %] |
99 |
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<a href="#" aria-label="Show more holding libraries"><strong>Show more</strong></a>[% END %] |
100 |
[% END %] |
106 |
[% END %] |
101 |
[% IF facets_loo.type_label_Location %]<a href="#" aria-label="Show more locations"><strong>Show more</strong></a>[% END %] |
|
|
102 |
</li> |
107 |
</li> |
103 |
<li class="moretoggle" style="display:none"> |
108 |
<li class="moretoggle" style="display:none"> |
104 |
[% IF facets_loo.type_label_Authors %]<a href="#" aria-label="Show fewer authors"><strong>Show less</strong></a>[% END %] |
109 |
[% FOR label IN more_less_labels.keys %] |
105 |
[% IF facets_loo.type_label_Titles %]<a href="#" aria-label="Show fewer titles"><strong>Show less</strong></a>[% END %] |
110 |
[% IF facets_loo.item('type_label_' _ label) %] |
106 |
[% IF facets_loo.type_label_Topics %]<a href="#" aria-label="Show fewer topics"><strong>Show less</strong></a>[% END %] |
111 |
<a href="#" aria-label="[% more_less_labels.item(label).less | uri %]"><strong>Show less</strong></a> |
107 |
[% IF facets_loo.type_label_Places %]<a href="#" aria-label="Show fewer places"><strong>Show less</strong></a>[% END %] |
112 |
[% END %] |
108 |
[% IF facets_loo.type_label_Series %]<a href="#" aria-label="Show fewer series"><strong>Show less</strong></a>[% END %] |
|
|
109 |
[% IF facets_loo.type_label_ItemTypes %]<a href="#" aria-label="Show fewer item types"><strong>Show less</strong></a>[% END %] |
110 |
[% IF facets_loo.type_label_CollectionCodes %]<a href="#" aria-label="Show fewer collection codes"><strong>Show less</strong></a>[% END %] |
111 |
[% IF facets_loo.type_label_Language %]<a href="#" aria-label="Show fewer languages"><strong>Show less</strong></a>[% END %] |
112 |
[% UNLESS singleBranchMode %] |
113 |
[% IF ( facets_loo.type_label_HomeLibrary ) %]<a href="#" aria-label="Show fewer home libraries"><strong>Show less</strong></a>[% END %] |
114 |
[% IF ( facets_loo.type_label_HoldingLibrary ) %]<a href="#" aria-label="Show fewer holding libraries"><strong>Show less</strong></a>[% END %] |
115 |
[% END %] |
113 |
[% END %] |
116 |
[% IF facets_loo.type_label_Location %]<a href="#" aria-label="Show fewer locations"><strong>Show less</strong></a>[% END %] |
|
|
117 |
</li> |
114 |
</li> |
118 |
[% END %] |
115 |
[% END %] |
119 |
</ul> |
116 |
</ul> |
120 |
- |
|
|