Module: Hyrax::FileSetBehavior
- Extended by:
- ActiveSupport::Concern
- Includes:
- Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::FileSetBehavior, BasicMetadata, CoreMetadata, Hyrax::FileSet::BelongsToWorks, Hyrax::FileSet::Characterization, Hyrax::FileSet::Derivatives, Hyrax::FileSet::Indexing, Hyrax::FileSet::Querying, HumanReadableType, Naming, Noid, Permissions, Serializers, VirusCheck, WithEvents
- Defined in:
- app/models/concerns/hyrax/file_set_behavior.rb
Instance Method Summary collapse
- #representative_id ⇒ Object
- #thumbnail_id ⇒ Object
-
#to_presenter ⇒ Object
Cast to a SolrDocument by querying from Solr.
Methods included from HumanReadableType
#human_readable_type, #to_solr
Methods included from Hyrax::FileSet::BelongsToWorks
#parent, #parents, #related_files
Methods included from Permissions::Readable
#private?, #public?, #registered?
Methods included from Permissions::Writable
Methods included from Noid
Methods included from Serializers
Methods included from WithEvents
#event_class, #events, #log_event, #stream
Instance Method Details
#representative_id ⇒ Object
28 29 30 |
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 28 def representative_id to_param end |
#thumbnail_id ⇒ Object
32 33 34 |
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 32 def thumbnail_id to_param end |
#to_presenter ⇒ Object
Cast to a SolrDocument by querying from Solr
37 38 39 40 |
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 37 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." Blacklight::SearchService.new(config: CatalogController.blacklight_config).fetch(id).last end |