module FcrepoAdmin::Helpers::AssociationsHelperBehavior

Public Instance Methods

safe_paginate_rsolr_response(response) click to toggle source

We attempted to use Blacklight’s paginate_rsolr_response, but it causes a routing error b/c Kaminari as of version 0.14.1 cannot handle namespace-prefixed routes. The fallback rendering bypasses Kaminari, but doesn’t look so good on a large page set. See github.com/amatsuda/kaminari/pull/322.

# File lib/fcrepo_admin/helpers/associations_helper_behavior.rb, line 24
def safe_paginate_rsolr_response(response)
  render :partial => "fcrepo_admin/pagination/links", :locals => {:response => response}
end