diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-08 13:48:11 -0500 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-08 13:48:11 -0500 |
| commit | 90d7fb57a64011763ad1d608126eacb052061e43 (patch) | |
| tree | fd96990ebd0ffe38f2285fbbceca942c1fb45587 /solr-8.3.1/example/files/conf/velocity/browse.vm | |
| parent | e310c0fdcef6ac71ee492470d4ac689cbb094167 (diff) | |
| parent | 1b046f76cf39f1f6cb1875aa84b45db74b6d994e (diff) | |
Merge branch 'master' into monika_animation
Diffstat (limited to 'solr-8.3.1/example/files/conf/velocity/browse.vm')
| -rw-r--r-- | solr-8.3.1/example/files/conf/velocity/browse.vm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/solr-8.3.1/example/files/conf/velocity/browse.vm b/solr-8.3.1/example/files/conf/velocity/browse.vm new file mode 100644 index 000000000..535a7713b --- /dev/null +++ b/solr-8.3.1/example/files/conf/velocity/browse.vm @@ -0,0 +1,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 != '') + > $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> + |
