Sha256: 661901904c8535a1a195cd1b42f8d2f45cee04bfc72db00fa0650df88a7b3745

Contents?: true

Size: 594 Bytes

Versions: 33

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true
module Blacklight::Solr::Response::PaginationMethods
  include Kaminari::PageScopeMethods
  include Kaminari::ConfigurationMethods::ClassMethods

  def limit_value #:nodoc:
    rows
  end

  def offset_value #:nodoc:
    start
  end

  def total_count #:nodoc:
    total
  end

  ##
  # Should return response documents size, not hash size
  def size
    total_count
  end

  ##
  # Meant to have the same signature as Kaminari::PaginatableArray#entry_name
  def entry_name(options)
    I18n.t('blacklight.entry_name.default').pluralize(options[:count])
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
blacklight-7.19.2 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.19.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.19.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.18.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.18.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.17.2 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.17.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.17.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.16.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.15.2 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.15.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.15.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.14.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.14.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.13.2 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.13.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.13.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.12.1 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.12.0 lib/blacklight/solr/response/pagination_methods.rb
blacklight-7.11.1 lib/blacklight/solr/response/pagination_methods.rb