Class: Blacklight::SearchContext::ServerItemPaginationComponent

Inherits:
Blacklight::SearchContextComponent show all
Defined in:
app/components/blacklight/search_context/server_item_pagination_component.rb

Instance Method Summary collapse

Methods inherited from Blacklight::SearchContextComponent

#item_page_entry_info, #link_to_next_document, #link_to_previous_document, #render?

Methods inherited from Component

reset_compiler!, sidecar_files, upstream_sidecar_files

Constructor Details

#initialize(search_context:, search_session:, current_document:) ⇒ ServerItemPaginationComponent

Returns a new instance of ServerItemPaginationComponent.



8
9
10
11
12
# File 'app/components/blacklight/search_context/server_item_pagination_component.rb', line 8

def initialize(search_context:, search_session:, current_document:)
  @search_context = search_context
  @search_session = search_session
  @current_document_id = current_document.id
end