Sha256: 836dcfafab743ef0dc98981eaa3f058a277afd9c48bfce8c7c78aaf6ec365b4e

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

    <%-# 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 -%>
		<%= form_tag params[:controller] == "folder" ? folder_index_path : url_for(:action=>'index'), :method=>:get, :class=>'sort', :id => "sort_form" do %>
      <%= label_tag(:sort, t('blacklight.search.sort.label', :select => select_tag(:sort, options_for_select(sort_fields, h(params[:sort])))).html_safe) %>
      <%= search_as_hidden_fields(:omit_keys => [:page, :sort]) %>
			<%= submit_tag t('blacklight.search.sort.submit') %>
		<% end unless sort_fields.empty? %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-3.8.2 app/views/catalog/_per_page_widget.html.erb
blacklight-3.8.1 app/views/catalog/_per_page_widget.html.erb
blacklight-3.8.0 app/views/catalog/_per_page_widget.html.erb