<%-# kind of hacky way to get this to work on catalog and folder controllers. May be able to simple do {:action=>"index"} but I'm not sure -%>
<% unless @response.response['numFound'] < 2 %>
<%= form_tag collections.collection_path(collection), method: :get, class: 'per_page form-inline' do %>
<%= label_tag :sort do %>
Sort By:
<% end %>
<%= select_tag :sort, options_for_select(sort_fields, h(params[:sort])) %>
<%= label_tag :per_page do %>
Show <%= select_tag :per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), title: "Number of results to display per page" %> per page
<% end %>
<%= render_hash_as_hidden_fields search_state.params_for_search.except(:per_page, :sort) %>
<%= render 'view_type_group' %>
<% end %>
<% end unless sort_fields.empty? %>