Sha256: 39402e989f32f36605c4c0c2966f326b706d5ff607db214c4215f4461dc7807a

Contents?: true

Size: 1.65 KB

Versions: 47

Compression:

Stored size: 1.65 KB

Contents

#set($queryOpts = $params.get("queryOpts"))
#if($queryOpts == "spatial")
<div>
        #set($loc = $request.params.get('pt'))
        #set($dist = $request.params.get('d', "10"))
        <label #annTitle("Add the &pt parameter")>Location Filter:
          <select id="pt" name="pt">
            <option value="none"
            #if($loc == '')selected="true"#end>No Filter</option>
            <option value="45.17614,-93.87341"
            #if($loc == '45.17614,-93.87341')selected="true"#end>Buffalo, MN</option>
            <option value="37.7752,-100.0232"
            #if($loc == '37.7752,-100.0232')selected="true"#end>Dodge City, KS</option>
            <option value="35.0752,-97.032"
            #if($loc == '35.0752,-97.032')selected="true"#end>Oklahoma City, OK</option>
            <option value="37.7752,-122.4232"
            #if($loc == '37.7752,-122.4232')selected="true"#end>San Francisco CA</option>
          </select>
  </label>
  <span #annTitle("Add the &d parameter")>Distance (KM): <input id="d" name="d" type="text" size="6"
                                                                value="#if($dist != '')${dist}#{else}10#end"/></span>
<input type="hidden" name="sfield" value="store"/>
<input type="hidden" id="spatialFQ" name="fq" value=""/>
<input type="hidden" name="queryOpts" value="spatial"/>        
</div>
<script type="text/javascript">
  $('#query-form').submit(function() {
    if ($("#pt").val() != "none") {
      $("#spatialFQ").val("{!bbox}");
    }
    $fqs = $("#allFQs").val();
    $fqs = $fqs.replace("{!bbox}", "");
    if ($fqs == ''){
      $("#allFQs").remove();
    }
    $("#allFQs").val($fqs);
    return true;
    });
</script>
#end

Version data entries

47 entries across 41 versions & 4 rubygems

Version Path
geohydra-0.3.3 solr/ogp-test/conf/velocity/querySpatial.vm
geohydra-0.3.3 solr/ogp-dev/conf/velocity/querySpatial.vm
geohydra-0.3.3 solr/ogp/conf/velocity/querySpatial.vm
geohydra-0.3.1 solr/ogp/conf/velocity/querySpatial.vm
geohydra-0.3.1 solr/ogp-test/conf/velocity/querySpatial.vm
geohydra-0.3.1 solr/ogp-dev/conf/velocity/querySpatial.vm
geohydra-0.3 solr/ogp-dev/conf/velocity/querySpatial.vm
geohydra-0.3 solr/ogp/conf/velocity/querySpatial.vm
geohydra-0.3 solr/ogp-test/conf/velocity/querySpatial.vm
rere-0.0.1 example/solr/collection1/conf/velocity/querySpatial.vm
supernova-core-0.0.1 solr/conf/velocity/querySpatial.vm
supernova-0.7.6 solr/conf/velocity/querySpatial.vm
supernova-0.7.5 solr/conf/velocity/querySpatial.vm
supernova-0.7.4 solr/conf/velocity/querySpatial.vm
supernova-0.7.3 solr/conf/velocity/querySpatial.vm
supernova-0.7.2 solr/conf/velocity/querySpatial.vm
supernova-0.7.1 solr/conf/velocity/querySpatial.vm
supernova-0.7.0 solr/conf/velocity/querySpatial.vm
supernova-0.6.8 solr/conf/velocity/querySpatial.vm
supernova-0.6.7 solr/conf/velocity/querySpatial.vm