Sha256: 85c7c2f5671bb54a06bbd4778788806089b585ef772284d7713686b57c457b18

Contents?: true

Size: 652 Bytes

Versions: 5

Compression:

Stored size: 652 Bytes

Contents

# 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)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iiif_print-3.0.4 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-3.0.3 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-3.0.2 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-3.0.1 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-3.0.0 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb