[% USE raw %]
[% USE AuthorisedValues %]
[% USE Languages %]
[% IF ( opacfacets ) %]
[% IF ( facets_loop ) %]
Refine your search
- Availability
[% IF ( related ) %]
- (related searches: [% FOREACH relate IN related %][% relate.related_search | html %][% END %])
[% END %]
[% FOREACH facets_loo IN facets_loop %]
[% IF facets_loo.facets.size > 0 %]
-
[% facets_loo.type_label | html %]
[% IF facets_loo.type_label_Authors %]Authors[% END %]
[% IF facets_loo.type_label_Titles %]Titles[% END %]
[% IF facets_loo.type_label_Topics %]Topics[% END %]
[% IF facets_loo.type_label_Places %]Places[% END %]
[% IF facets_loo.type_label_Series %]Series[% END %]
[% IF facets_loo.type_label_ItemTypes %]Item types[% END %]
[% IF ( facets_loo.type_label_HomeLibrary ) %]Home libraries[% END %]
[% IF ( facets_loo.type_label_HoldingLibrary ) %]Holding libraries[% END %]
[% IF facets_loo.type_label_Location %]Locations[% END %]
[% IF facets_loo.type_label_CollectionCodes %]Collections[% END %]
[% IF facets_loo.type_label_Language %]Languages[% END %]
[% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
[% IF ( sort_by ) %]
[% url = BLOCK %][% url | $raw %][% "&sort_by=" _ sort_by | url %][% END %]
[% END %]
[% IF ( results_per_page ) %]
[% url = BLOCK %][% url | $raw %][% "&count=" _ results_per_page | url %][% END %]
[% END %]
[% FOREACH facet IN facets_loo.facets %]
[% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,0) || facet.facet_label_value %][% END %]
[% IF facets_loo.type_label_Language %][% SET facet.facet_label_value = Languages.GetByISOCode(lang,facet.facet_label_value) || facet.facet_label_value %][% END %]
[% IF loop.count > 5 && !facet.active %]
-
[% ELSE %]
-
[% END %]
[% IF facet.active %]
[% local_url = BLOCK %][% url | $raw %][% "&nolimit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
[% facet.facet_label_value | html %]
[x]
[% ELSE %]
[% local_url = BLOCK %][% url | $raw %][% "&limit=" _ facet.type_link_value _ ":" _ facet.facet_link_value | url %][% END %]
[% facet.facet_label_value | html %]
[% IF ( displayFacetCount ) %]
([% facet.facet_count | html %])
[% END %]
[% END %]
[% END %]
[% IF facets_loo.facets.size > 5 %]
-
Show more
-
Show less
[% END %]
[% END %]
[% END %]
[% END %]
[% END %]