Handling special case with zero clicks
[prawokultury.git] / doc / solr-conf / velocity / browse.vm
1 #set($searcher=$request.searcher)
2 #set($params=$request.params)
3 #set($clusters = $response.response.clusters)
4 #set($mltResults = $response.response.get("moreLikeThis"))
5 #set($annotate = $params.get("annotateBrowse"))
6 #parse('query.vm')
7 #if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)
8   Did you mean <a href="#url_for_home?q=$esc.url($response.response.spellcheck.suggestions.collation)#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#debug">$response.response.spellcheck.suggestions.collation</a>?
9 #end
10
11 <div class="navigators">
12   #parse("facets.vm")
13 </div>
14
15 <div class="pagination">
16   #if($response.response.get('grouped'))
17     <span><span class="results-found">$response.response.get('grouped').size() group(s)</span> found in ${response.responseHeader.QTime} ms</span>
18   #else<span><span class="results-found">$page.results_found</span> results found in ${response.responseHeader.QTime} ms</span>
19   Page <span class="page-num">$page.current_page_number</span> of <span
20         class="page-count">$page.page_count</span>#end
21 </div>
22
23 <div class="results">
24   #if($response.response.get('grouped'))
25     #foreach($grouping in $response.response.get('grouped'))
26       #parse("hitGrouped.vm")
27     #end
28   #else
29     #foreach($doc in $response.results)
30       #parse("hit.vm")
31     #end
32   #end
33 </div>
34
35 <div class="pagination">
36   #if($response.response.get('grouped'))
37   #else
38   #link_to_previous_page("previous")
39   <span class="results-found">$page.results_found</span> results found.
40   Page <span class="page-num">$page.current_page_number</span> of <span
41         class="page-count">$page.page_count</span>
42   #link_to_next_page("next")
43   #end
44   <br/>
45 </div>