source: gs3-extensions/solr/trunk/src/conf/velocity/tabs.vm@ 29135

Last change on this file since 29135 was 29135, checked in by ak19, 10 years ago

Part of port from lucene3.3.0 to lucene4.7.2. Solr related. conf and lib folders for solr4.7.2.

File size: 1.2 KB
Line 
1#**
2 * Provides navigation/access to Advanced search options
3 * Usually displayed near the top of the page
4 *#
5
6##TODO: Make some nice tabs here
7
8#set($queryOpts = $params.get("queryOpts"))
9
10<div class="tabs-bar" #annTitle("Click the link to demonstrate various Solr capabilities")>
11
12 <span>Type of Search:</span>
13
14 ##queryOpts=$queryOpts
15
16 ## return to Simple Search
17 ##set( $selected = ($queryOpts && $queryOpts != "") )
18 #set( $selected = ! $queryOpts )
19 <span class="tab #if($selected)selected#end">
20 #if($selected)
21 Simple
22 #else
23 <a href="#url_for_home/?#debug#annotate">
24 Simple</a>
25 #end
26 </span>
27
28 ## GEO-Spatial / Location Based
29 #set( $selected = ($queryOpts == "spatial") )
30 <span class="tab #if($selected)selected#end">
31 #if($selected)
32 Spatial
33 #else
34 <a href="#url_for_home?&queryOpts=spatial#debug#annotate">
35 Spatial</a>
36 #end
37 </span>
38
39 ## Group By Field
40 #set( $selected = ($queryOpts == "group") )
41 <span class="tab #if($selected)selected#end">
42 #if($selected)
43 Group By
44 #else
45 <a href="#url_for_home?#debug#annotate&queryOpts=group&group=true&group.field=manu_exact">
46 Group By</a>
47 #end
48 </span>
49
50</div>
Note: See TracBrowser for help on using the repository browser.