app/controllers/reserves_controller.rb
# Reserves has different default per-page and sort, this Solr filter
# method can be used in reserves to swap those in.
Reserves has different default per-page and sort, this Solr filter
method can be used in reserves to swap those in.
Reserves has different default per - page and sort this Solr filter method can be used in reserves to swap those in .
def jh_reserves_default_sorting_paging(solr_params)
    per_page = (solr_params[:per_page]  || ReservesController::DefaultPerPage).to_i
    page     = (solr_params[:page] || 1).to_i
    solr_params[:rows] = per_page
    solr_params[:start] = per_page * (page - 1)
    solr_params[:sort] = ReservesController::DefaultSort  unless solr_params[:sort]
    solr_params
  end
def jh_reserves_default_sorting_paging ( solr_params ) per_page = ( solr_params [ :per_page ] || ReservesController :: DefaultPerPage ) . to_i page = ( solr_params [ :page ] || 1 ) . to_i solr_params [ :rows ] = per_page solr_params [ :start ] = per_page * ( page - 1 ) solr_params [ :sort ] = ReservesController :: DefaultSort unless solr_params [ :sort ] solr_params end
Reserves has different default per-page and sort, this Solr filter
method can be used in reserves to swap those in.
Reserves has different default per - page and sort this Solr filter method can be used in reserves to swap those in .
# Fix start for our actual per-page
solr_params
<not_specific>