Sha256: c1c7472af0d479011872d0b31c63d1e84eb66ef24c934a25ed68d2c58117fc50

Contents?: true

Size: 959 Bytes

Versions: 34

Compression:

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

34 entries across 34 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.5 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.4 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.9.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.8.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.7.2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.7.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.7.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.6.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.5.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.5.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0.pre.beta2 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.4.1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-3.0.0.pre.beta1 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.4.0 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.3.3 app/models/concerns/hyrax/file_set_behavior.rb
hyrax-2.3.2 app/models/concerns/hyrax/file_set_behavior.rb