aboutsummaryrefslogtreecommitdiff
path: root/solr-8.3.1/example/files/conf/velocity/browse.vm
blob: 535a7713bfdddc8f1ac95a229832aa8812c2f58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div id="query-box">
  <form id="query-form" action="#{url_for_home}" method="GET">
    $resource.find:
    <input type="text" id="q" name="q" style="width: 50%" value="$!esc.html($request.params.get('q'))"/>
    <input type="submit" value="$resource.submit"/>
    <div id="debug_query" class="debug">
      <span id="parsed_query">$esc.html($response.response.debug.parsedquery)</span>
    </div>

    <input type="hidden" name="type" value="#current_type"/>
    #if("#current_locale"!="")<input type="hidden" value="locale" value="#current_locale"/>#end
    #foreach($fq in $response.responseHeader.params.getAll("fq"))
      <input type="hidden" name="fq" id="allFQs" value="$esc.html($fq)"/>
    #end
  </form>

  <div id="constraints">
    #foreach($fq in $response.responseHeader.params.getAll("fq"))
      #set($previous_fq_count=$velocityCount - 1)
      #if($fq != '')
      &gt; $fq<a href="#url_for_filters($response.responseHeader.params.fq.subList(0,$previous_fq_count))">x</a>
      #end
    #end
  </div>

</div>


<div id="browse_results">
  #parse("results.vm")
</div>