Sha256: 6afc94b074642f4e75b2db0338a88d86f4f108e0b6ab07a7ae852e7c22fee47c

Contents?: true

Size: 982 Bytes

Versions: 12

Compression:

Stored size: 982 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module FileSetBehavior
    extend ActiveSupport::Concern
    include Hyrax::WithEvents
    include Hydra::Works::FileSetBehavior
    include Hyrax::VirusCheck
    include Hyrax::FileSet::Characterization
    include Hydra::WithDepositor
    include Serializers
    include Hyrax::Noid
    include Hyrax::FileSet::Derivatives
    include Permissions
    include Hyrax::FileSet::Indexing
    include Hyrax::FileSet::BelongsToWorks
    include Hyrax::FileSet::Querying
    include HumanReadableType
    include CoreMetadata
    include Hyrax::BasicMetadata
    include Naming
    include Hydra::AccessControls::Embargoable
    include GlobalID::Identification

    included do
      attr_accessor :file
    end

    def representative_id
      to_param
    end

    def thumbnail_id
      to_param
    end

    # Cast to a SolrDocument by querying from Solr
    def to_presenter
      CatalogController.new.fetch(id).last
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-3.4.2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.4.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.4.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.3.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.2.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.1.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0.pre.rc4 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0.pre.rc3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0.pre.rc2 app/models/concerns/hyrax/file_set_behavior.rb