1 [% IF ( opacfacets && facets_loop && total ) %]
2 <div id="search-facets">
3 <h4><a href="#" class="menu-collapse-toggle">Refine your search</a></h4>
4 <ul class="menu-collapse">
5 <li id="availability_facet">Availability
9 <strong>Showing only available items<strong></li><li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi_not_availablity %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]">Show all items</a>
11 <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi |url %][% IF ( sort_by ) %]&sort_by=[% sort_by |url %][% END %]&limit=available">Limit to currently available items.</a>
15 [% IF ( related ) %] <li>(related searches: [% FOREACH relate IN related %][% relate.related_search %][% END %])</li>[% END %]
18 [% FOREACH facets_loo IN facets_loop %]
19 [% IF facets_loo.facets.size > 0 %]
20 <li id="[% facets_loo.type_id %]">
21 [% IF facets_loo.type_label_Authors %]<h5 id="facet-authors">Authors</h5>[% END %]
22 [% IF facets_loo.type_label_Titles %]<h5 id="facet-titles">Titles</h5>[% END %]
23 [% IF facets_loo.type_label_Topics %]<h5 id="facet-topics">Topics</h5>[% END %]
24 [% IF facets_loo.type_label_Places %]<h5 id="facet-places">Places</h5>[% END %]
25 [% IF facets_loo.type_label_Series %]<h5 id="facet-series">Series</h5>[% END %]
26 [% IF facets_loo.type_label_ItemTypes %]<h5 id="facet-itemtypes">Item types</h5>[% END %]
27 [% UNLESS singleBranchMode %]
28 [% IF ( facets_loo.type_label_HomeLibrary ) %]<span id="facet-home-libraries">Home libraries</span>[% END %]
29 [% IF ( facets_loo.type_label_HoldingLibrary ) %]<span id="facet-holding-libraries">Holding libraries</span>[% END %]
31 [% IF facets_loo.type_label_Location %]<h5 id="facet-locations">Locations</h5>[% END %]
33 [% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %]
35 [% url = BLOCK %][% url %][% "&sort_by=" _ sort_by |url %][% END %]
37 [% FOREACH facet IN facets_loo.facets %]
40 [% SET local_url = url _ "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %]
41 <span class="facet-label">[% facet.facet_label_value %]</span>
42 [<a href="[% local_url %]" title="Remove facet [% facet.facet_link_value %]">x</a>]
44 [% SET local_url = url _ "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value %]
45 <span class="facet-label"><a href="[% local_url %]" title="[% facet.facet_title_value %]">[% facet.facet_label_value %]</a></span>
46 [% IF ( displayFacetCount ) %]
47 <span class="facet-count"> ([% facet.facet_count %])</span>
52 [% IF ( facets_loo.expandable ) %]
54 <a href="[% url %][% IF offset %]&offset=[% offset |url %][% END %]&expand=[% facets_loo.expand |url %]#[% facets_loo.type_id |url %]">Show more</a>
59 [% END # / IF facets_loo.facets.size > 0 %]
60 [% END # / FOREACH facets_loo %]
62 </div> <!-- / #search-facets -->
64 [% IF ( OPACResultsSidebar ) %]
65 <div id="opacresultssidebar">
66 [% OPACResultsSidebar %]
69 [% END # / IF opacfacets && facets_loop %]