aboutsummaryrefslogtreecommitdiff
path: root/solr-8.1.1/example/files/conf/velocity/browse.vm
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-19 10:11:59 -0400
committerbob <bcz@cs.brown.edu>2019-08-19 10:11:59 -0400
commite37bf9124c952aa26c3e29deb9e4faa01cad1a7e (patch)
treebe44ae9bd5e2eb6c5ce392383d41505b5863d061 /solr-8.1.1/example/files/conf/velocity/browse.vm
parent07482c3bf435748140addfd4fd338fc668657798 (diff)
parentb037aa89fb564812f880994453ce002054a0ad82 (diff)
Merge branch 'master' into presentation_f
Diffstat (limited to 'solr-8.1.1/example/files/conf/velocity/browse.vm')
-rw-r--r--solr-8.1.1/example/files/conf/velocity/browse.vm32
1 files changed, 32 insertions, 0 deletions
diff --git a/solr-8.1.1/example/files/conf/velocity/browse.vm b/solr-8.1.1/example/files/conf/velocity/browse.vm
new file mode 100644
index 000000000..535a7713b
--- /dev/null
+++ b/solr-8.1.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 != '')
+ &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>
+