# frozen_string_literal: true # OVERRIDE Hyrax 2.9.6 to give user ability to display child works form linked facets # We did work to display only parent works by default, for this client module Hyrax module Renderers module FacetedAttributeRendererDecorator private # OVERRIDE Hyrax 2.9.6 to give user ability to display child works form linked facets def search_path(value) path = super(value) path += '&include_child_works=true' if options[:is_child_bsi] == true path end end end end Hyrax::Renderers::FacetedAttributeRenderer.prepend(Hyrax::Renderers::FacetedAttributeRendererDecorator)