Sha256: 44e290fb102eb645a3b30852487850d3c8ffca51c2a0d0eca0452d4ba2eeb9d3
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
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 Deprecation.warn "Method #to_presenter will be removed in Hyrax 5.0. Use Hyrax::FileSetsController#presenter.solr_document or `@presenter.solr_document` from a view instead." CatalogController.new.fetch(id).last end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.6.0 | app/models/concerns/hyrax/file_set_behavior.rb |
hyrax-3.5.0 | app/models/concerns/hyrax/file_set_behavior.rb |