aboutsummaryrefslogtreecommitdiffstats
path: root/isuifang_solr/solr/conf/velocity/browse.vm
diff options
context:
space:
mode:
Diffstat (limited to 'isuifang_solr/solr/conf/velocity/browse.vm')
-rw-r--r--isuifang_solr/solr/conf/velocity/browse.vm45
1 files changed, 45 insertions, 0 deletions
diff --git a/isuifang_solr/solr/conf/velocity/browse.vm b/isuifang_solr/solr/conf/velocity/browse.vm
new file mode 100644
index 0000000..d7c3c43
--- /dev/null
+++ b/isuifang_solr/solr/conf/velocity/browse.vm
@@ -0,0 +1,45 @@
+#set($searcher=$request.searcher)
+#set($params=$request.params)
+#set($clusters = $response.response.clusters)
+#set($mltResults = $response.response.get("moreLikeThis"))
+#set($annotate = $params.get("annotateBrowse"))
+#parse('query.vm')
+#if($response.response.spellcheck.suggestions and $response.response.spellcheck.suggestions.size() > 0)
+ 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>?
+#end
+
+<div class="navigators">
+ #parse("facets.vm")
+</div>
+
+<div class="pagination">
+ #if($response.response.get('grouped'))
+ <span><span class="results-found">$response.response.get('grouped').size() group(s)</span> found in ${response.responseHeader.QTime} ms</span>
+ #else<span><span class="results-found">$page.results_found</span> results found in ${response.responseHeader.QTime} ms</span>
+ Page <span class="page-num">$page.current_page_number</span> of <span
+ class="page-count">$page.page_count</span>#end
+</div>
+
+<div class="results">
+ #if($response.response.get('grouped'))
+ #foreach($grouping in $response.response.get('grouped'))
+ #parse("hitGrouped.vm")
+ #end
+ #else
+ #foreach($doc in $response.results)
+ #parse("hit.vm")
+ #end
+ #end
+</div>
+
+<div class="pagination">
+ #if($response.response.get('grouped'))
+ #else
+ #link_to_previous_page("previous")
+ <span class="results-found">$page.results_found</span> results found.
+ Page <span class="page-num">$page.current_page_number</span> of <span
+ class="page-count">$page.page_count</span>
+ #link_to_next_page("next")
+ #end
+ <br/>
+</div>