tabs.vm 1.2 KB

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