Updating ask-a-lawyer content
[prawokultury.git] / doc / solr-conf / velocity / facet_fields.vm
1 #if($response.facetFields)
2     <h2 #annTitle("Facets generated by adding &facet.field= to the request")>Field Facets</h2>
3     #foreach($field in $response.facetFields)
4       ## Hide facets without value
5       #if($field.values.size() > 0)
6       <span class="facet-field">$field.name</span>
7
8       <ul>
9         #foreach($facet in $field.values)
10             <li><a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a> ($facet.count)</li>
11         #end
12       </ul>
13       #end
14     #end
15   #end