Sha256: 81094202af9f59424595f25f0ab482a9eef4cf45f9e3b0a1f4c818845fdfbe49

Contents?: true

Size: 999 Bytes

Versions: 12

Compression:

Stored size: 999 Bytes

Contents

module Hyrax
  module FileSetBehavior
    extend ActiveSupport::Concern
    include Hyrax::WithEvents
    include Hydra::Works::FileSetBehavior
    include Hydra::Works::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
      self.human_readable_type = '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-2.0.3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.rc3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.rc2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.rc1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.beta5 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.beta4 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.beta3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.beta2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.0.0.beta1 app/models/concerns/hyrax/file_set_behavior.rb