app/views/hyrax/collections/_search_form.html.erb
<%= form_for presenter, url: main_app.search_catalog_path, method: :get, class: "well form-search" do |f| %>
<label class="sr-only"><%= t('hyrax.collections.search_form.label', title: presenter.to_s) %></label>
<div class="input-group">
<%= text_field_tag :q,
params[:q],
class: 'collection-query form-control',
placeholder: t('hyrax.collections.search_form.placeholder',
collection_name: presenter.title.first),
size: '30',
type: 'search',
id: 'collection_search' %>
<div class="input-group-btn">
<button type="submit" class="btn btn-primary" id="collection_submit"><i class="glyphicon glyphicon-search"></i> <%= t('hyrax.collections.search_form.button_label') %></button>
</div>
</div>
<%= hidden_field_tag :'f[member_of_collections_ssim][]', presenter.title.first %>
<%= render_hash_as_hidden_fields(search_state.params_for_search.except(:cq, :sort, :qt, :page)) %>
<% end %>