Sha256: 42b17171f7acf4130a6da36e0f64750914ca419609d4f7df892a610c439f7bf8

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

<%= form_tag catalog_index_path, :class => 'form-horizontal', :method => :get do  %>

  <%= render_hash_as_hidden_fields(params_for_search(advanced_search_context)) %>

  <div> 
	      
    <div>
        <div class="control-group">
          <label class="control-label">Find items that match</label>
          <div class="controls">
            <%= select_tag(:op, options_for_select({'all'=>'AND','any'=>'OR'}.sort,'all'), :class => "span10") %> of the fields below:
          </div>
        </div>
        
        <div id="advanced_search">
          <%= render 'advanced/advanced_search_fields' %>
        </div>        
    </div>
  </div>
  
  <% unless (search_context_str = render_search_to_s( advanced_search_context)).blank? %>
    <div>
      <p>Within search:</p>
      <%= search_context_str %>
    </div>
  <% end %>
  
  
  <div class="form-actions">
    <%= label_tag(:sort, "Sort results by") %> 
    <%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort]))) %>
    <%= hidden_field_tag(:search_field, blacklight_config.advanced_search[:url_key]) %>
    <br />
    <%= submit_tag 'Search', :class=>'btn btn-primary', :id=>'advanced_search' %>
	  <%= link_to "Start over", {:controller => "advanced", :action => "index"}, :class =>"btn" %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-4.0.0.beta2 app/views/advanced/_advanced_search_form.html.erb
sufia-4.0.0.beta1 app/views/advanced/_advanced_search_form.html.erb
sufia-3.7.2 app/views/advanced/_advanced_search_form.html.erb
sufia-3.7.1 app/views/advanced/_advanced_search_form.html.erb