Sha256: a79c5608141be777686f63b3bcf0d1f4c4815481742cdd8ff9e49dfc5cbd2042
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true module Blacklight class SearchContextComponent < ::ViewComponent::Base with_collection_parameter :search_context def initialize(search_context:, search_session:) @search_context = search_context @search_session = search_session end def render? @search_context.present? && (@search_context[:prev] || @search_context[:next]) end def item_page_entry_info Deprecation.silence(Blacklight::CatalogHelperBehavior) do helpers.item_page_entry_info end end def link_to_previous_document(*args) Deprecation.silence(Blacklight::UrlHelperBehavior) do helpers.link_to_previous_document(*args) end end def link_to_next_document(*args) Deprecation.silence(Blacklight::UrlHelperBehavior) do helpers.link_to_next_document(*args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems