diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:42:32 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:42:32 +0800 |
commit | 755463eed74ed7de9a3c1a12495d2dad655d31d5 (patch) | |
tree | f2a77a7a95cd5135ef7b253aa765652ba8323a90 /isuifang_solr/solr/conf/velocity/browse.vm | |
parent | 9636d4a6767f49384d5c386bc3f1142c88b90613 (diff) | |
download | 97dev-755463eed74ed7de9a3c1a12495d2dad655d31d5.tar.bz2 |
added 'isuifang_solr'
Diffstat (limited to 'isuifang_solr/solr/conf/velocity/browse.vm')
-rw-r--r-- | isuifang_solr/solr/conf/velocity/browse.vm | 45 |
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> |