Sha256: 3f8de9b23a54639e4b4d1326d28a3cb04b25215e945ec0b038a38d02196b62b3

Contents?: true

Size: 953 Bytes

Versions: 44

Compression:

Stored size: 953 Bytes

Contents

<div id="sortAndPerPage">
	<% unless @response.response['numFound'] < 2 %>
  	<%= form_tag catalog_index_path, :method=>:get, :class=>'per_page' do %>
  		<%= label_tag(:per_page, "Show") %>
  		<%= select_tag(:per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])), :title => "Number of results to display per page", :onchange => 'this.form.submit()') %>
      per page
      <%= search_as_hidden_fields(:omit_keys => [:page, :per_page]) %>
		
      <noscript><%= submit_tag 'update' %></noscript>
  	<% end %>

		<%= form_tag catalog_index_path, :method=>:get, :class=>'sort', :id => "sort_form" do %>
			<%= label_tag 'sort', 'Sort by' %>
			<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :onchange => 'this.form.submit()') %>
			      
      <%= search_as_hidden_fields(:omit_keys => [:page, :sort]) %>
      
			<noscript><%= submit_tag 'sort results' %></noscript>
		<% end %>
	<% end %>
	

</div>

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
hydra-head-4.1.3 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.1.2 app/views/catalog/_sort_and_per_page.html.erb
hydra-core-5.0.0.pre4 app/views/catalog/_sort_and_per_page.html.erb
hydra-core-5.0.0.pre3 app/views/catalog/_sort_and_per_page.html.erb
hydra-core-5.0.0.pre2 app/views/catalog/_sort_and_per_page.html.erb
hydra-core-5.0.0.pre1 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.1.1 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.1.0 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.3 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.2 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.1 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0.rc6 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0.rc5 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0.rc4 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0.rc3 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-4.0.0.rc2 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-3.3.0 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-3.2.2 app/views/catalog/_sort_and_per_page.html.erb
hydra-head-3.2.1 app/views/catalog/_sort_and_per_page.html.erb