Sha256: 816e9eedee1facc927229c13cebdeee573d3a243d8b54973252d441536fcece4

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iiif_print-2.0.1 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-2.0.0 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-1.1.0 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb
iiif_print-1.0.0 app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb