Sha256: 26a44450f783be4f2d0d26ef6048fa5f98ee1901d2a7a6eb91b1ac02d3d61c40
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 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 Blacklight::SearchService.new(config: CatalogController.blacklight_config).fetch(id).last end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hyrax-4.0.0.beta1 | app/models/concerns/hyrax/file_set_behavior.rb |