1 <div class="facet_box_wrapper filter_box_wrapper">
4 ignore_filters = ['sort','statuses','site'];
6 FOR filter IN ctx.query_struct.filters;
10 crad = ctx.get_crad(fname);
12 IF crad; # will be some special ones, like locations
13 remove_filter = 'fi:' _ fname;
15 <div class="facet_box_temp filter_box_temp">
18 title="[% l('Remove [_1] filter', crad.label) %]"
19 href="[% mkurl('', {}, [remove_filter]) %]" rel="nofollow" vocab="">
22 <h4 class="title">[% IF filter.negate; l('Not'); END %] [% crad.label | html %]</h4>
24 <div class="box_wrapper">
26 [% FOR fval IN fvalues;
27 thing = ctx.search_ccvm('ctype',fname,'code',fval).0;
28 display_value = thing.search_label || thing.value;
29 IF display_value.defined; %]
30 <div class="facet_template filter_template">
31 <div class="facet filter">
32 [% display_value | html%]
38 </div> <!-- box_wrapper -->
39 </div> <!-- facet_box_temp -->
42 [% IF filter.name == 'locations'; locs = ctx.search_acpl('id',filter.args) %]
43 <div class="facet_box_temp filter_box_temp">
46 title="[% l('Remove location filter') %]"
47 href="[% mkurl('', {}, ['locations']) %]" rel="nofollow" vocab="">
50 <h4 class="title">[% IF filter.negate; l('Not'); END %] [% l('Locations') %]</h4>
52 <div class="box_wrapper">
55 <div class="facet_template filter_template">
56 <div class="facet filter">
62 </div> <!-- box_wrapper -->
63 </div> <!-- facet_box_temp -->
64 [% END; # IF locations %]
66 </div> <!-- facet_box_wrapper -->