1 | <!--
|
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
3 | contributor license agreements. See the NOTICE file distributed with
|
---|
4 | this work for additional information regarding copyright ownership.
|
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
6 | (the "License"); you may not use this file except in compliance with
|
---|
7 | the License. You may obtain a copy of the License at
|
---|
8 |
|
---|
9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 |
|
---|
11 | Unless required by applicable law or agreed to in writing, software
|
---|
12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
14 | See the License for the specific language governing permissions and
|
---|
15 | limitations under the License.
|
---|
16 | -->
|
---|
17 |
|
---|
18 | <div class="query-box">
|
---|
19 | <form id="query-form" action="#{url_for_home}" method="GET">
|
---|
20 | <div class="inputs">
|
---|
21 | <span #annTitle("Add the query using the &q= parameter")>Find: <input type="text" id="q" name="q" value="$!esc.html($params.get('q'))"/> <input type="submit" id="querySubmit"/> <input type="reset"/></span>
|
---|
22 | <div class="query-boost"><span #annTitle("Add the boost function &bf=price to the query")><input type="checkbox" name="bf" value="price" #if($request.params.get('bf') == 'price')checked="true"#end>Boost by Price</input></span>
|
---|
23 | #parse("querySpatial.vm")
|
---|
24 | </div>
|
---|
25 | </div>
|
---|
26 |
|
---|
27 | #if($request.params.get('debugQuery'))
|
---|
28 | <input type="hidden" name="debugQuery" value="true"/>
|
---|
29 | #end
|
---|
30 | #if($annotate == true)
|
---|
31 | <input type="hidden" name="annotateBrowse" value="true"/>
|
---|
32 | #end
|
---|
33 | #foreach($fq in $request.params.getParams('fq'))
|
---|
34 | #if ($fq != "{!bbox}")
|
---|
35 | <input type="hidden" name="fq" id="allFQs" value="$esc.html($fq)"/>
|
---|
36 | #end
|
---|
37 | #end
|
---|
38 | <div class="constraints" #annTitle("Lists out the &fq filters. Click to remove.")>
|
---|
39 | #foreach($fq in $params.getParams('fq'))
|
---|
40 | #set($previous_fq_count=$velocityCount - 1)
|
---|
41 | #if($fq != '')
|
---|
42 | > <a style="{text-decoration: line-through;}" href="#url_for_filters($request.params.getParams('fq').subList(0,$previous_fq_count))">$fq</a>
|
---|
43 | #end
|
---|
44 | #end
|
---|
45 | </div>
|
---|
46 | #if($request.params.get('debugQuery'))
|
---|
47 | <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle parsed query</a>
|
---|
48 | <pre style="display:none">$response.response.debug.parsedquery</pre>
|
---|
49 | #end
|
---|
50 | #set($queryOpts = $request.params.get("queryOpts"))
|
---|
51 | #if($queryOpts && $queryOpts != "")
|
---|
52 | <input type="hidden" name="queryOpts" value="$queryOpts"/>
|
---|
53 | #end
|
---|
54 | </form>
|
---|
55 |
|
---|
56 | </div>
|
---|