root/gs3-extensions/solr/trunk/src/etc/conf/velocity/facet_fields.vm @ 24446

Revision 24446, 423 bytes (checked in by davidb, 8 years ago)

Start of Solr extension for Greenstone3

Line 
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      <span class="facet-field">$field.name</span>
5
6      <ul>
7        #foreach($facet in $field.values)
8            <li><a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a> ($facet.count)</li>
9        #end
10      </ul>
11    #end
12  #end
Note: See TracBrowser for help on using the browser.