Sha256: 716452f81617036e1b1fc92caef8acc9b055c06f63f0bfea31a1fab3452a986a

Contents?: true

Size: 416 Bytes

Versions: 14

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module Arclight
  # Render the box that displays a link to filter only for online content
  class OnlineContentFilterComponent < Blacklight::Component
    def initialize(document:)
      @document = document
      super
    end

    def render?
      @document.collection? && @document.online_content?
    end

    def collection_name
      @document.collection_name
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arclight-1.4.0 app/components/arclight/online_content_filter_component.rb
arclight-1.3.0 app/components/arclight/online_content_filter_component.rb
arclight-1.2.0 app/components/arclight/online_content_filter_component.rb
arclight-1.1.3 app/components/arclight/online_content_filter_component.rb
arclight-1.1.2 app/components/arclight/online_content_filter_component.rb
arclight-1.1.1 app/components/arclight/online_content_filter_component.rb
arclight-1.1.0 app/components/arclight/online_content_filter_component.rb
arclight-1.0.1 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0.beta6 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0.beta4 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0.beta3 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0.beta2 app/components/arclight/online_content_filter_component.rb
arclight-1.0.0.beta1 app/components/arclight/online_content_filter_component.rb