Sha256: f99b009e06496bc2515f49b49db2d2632f97f383a5c542d66c333b9f94bbc19d
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true module Blacklight module Document # Render the 'more like this' results from the response class GroupComponent < ::ViewComponent::Base with_collection_parameter :group # @param [Blacklight::Document] document def initialize(group:, group_limit: -1) @group = group @group_limit = group_limit end def grouped_documents helpers.render_document_index @group.docs end def add_group_facet_params_and_redirect(group) Deprecation.silence(Blacklight::UrlHelperBehavior) do helpers.search_action_path(helpers.add_group_facet_params_and_redirect(group)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems