Sha256: 9831024c84c555e76d852ce065e8076bf9f53668a3d57136aa60fae72bd79585

Contents?: true

Size: 1.22 KB

Versions: 31

Compression:

Stored size: 1.22 KB

Contents

<%# only display the q parameter if the controller is not the dashboard.  If they are in the dashboard controller, then the search is of the dashboard. %>
<% q = params[:controller] == 'dashboard' ? nil : params[:q] %>

<%= form_tag catalog_index_path, :method => :get, :id => "search-form-header" do %>
  <%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt, :page]).html_safe %>
            <div class="controls">
              <div class="input-append">
              <label class="accessible-hidden"><%= t('sufia.search.form.q.label') %></label> 
              <%= text_field_tag :q, q, :class => "q span50", :id => "search-field-header", :placeholder => t('sufia.search.form.q.placeholder') %><button type="submit" class="btn btn-info" id="search-submit-header"><i class="icon-search"></i> Go</button>
  <!-- <input type="submit" class="btn btn-info" id="search-submit-header" value="GO"><i class="icon-search"></i></input>
&nbsp; -->
 <%# link_to 'more options', params.merge(:controller=>"advanced", :action=>"index") , :class=>"advanced_search" if ! current_page?(advanced_path)%>
 <%# link_to 'less options', :back , :class=>"advanced_search" if current_page?(advanced_path)%>
              </div>
            </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sufia-3.7.0 app/views/catalog/_search_form.html.erb
sufia-3.6.1 app/views/catalog/_search_form.html.erb
sufia-3.6.0 app/views/catalog/_search_form.html.erb
sufia-3.5.0 app/views/catalog/_search_form.html.erb
sufia-3.4.0 app/views/catalog/_search_form.html.erb
sufia-3.4.0.rc4 app/views/catalog/_search_form.html.erb
sufia-3.4.0.rc3 app/views/catalog/_search_form.html.erb
sufia-3.3.1 app/views/catalog/_search_form.html.erb
sufia-3.4.0.rc2 app/views/catalog/_search_form.html.erb
sufia-3.4.0.rc1 app/views/catalog/_search_form.html.erb
sufia-3.3.0 app/views/catalog/_search_form.html.erb
sufia-3.2.1 app/views/catalog/_search_form.html.erb
sufia-3.1.3 app/views/catalog/_search_form.html.erb
sufia-3.1.2 app/views/catalog/_search_form.html.erb
sufia-3.1.1 app/views/catalog/_search_form.html.erb
sufia-3.1.0 app/views/catalog/_search_form.html.erb
sufia-3.0.0 app/views/catalog/_search_form.html.erb
sufia-2.0.1 app/views/catalog/_search_form.html.erb
sufia-2.0.0 app/views/catalog/_search_form.html.erb
sufia-1.3.0 app/views/catalog/_search_form.html.erb