Sha256: 64fbdb5d22a20a6aa1f227a8e4743db982cc58b98da2fcd63225a845757b3543
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
module CurationConcerns::WorkBehavior extend ActiveSupport::Concern include Hydra::Works::WorkBehavior include ::CurationConcerns::HumanReadableType include CurationConcerns::Noid include CurationConcerns::Permissions include CurationConcerns::Serializers include Hydra::WithDepositor include Solrizer::Common include ::CurationConcerns::HasRepresentative include ::CurationConcerns::WithFileSets include Hydra::AccessControls::Embargoable included do property :owner, predicate: RDF::URI.new('http://opaquenamespace.org/ns/hydra/owner'), multiple: false class_attribute :human_readable_short_description end module ClassMethods def indexer CurationConcerns::WorkIndexingService end end def to_s if title.present? Array(title).join(' | ') elsif label.present? Array(label).join(' | ') else 'No Title' end end # Returns a string identifying the path associated with the object. ActionPack uses this to find a suitable partial to represent the object. def to_partial_path "curation_concerns/#{super}" end def can_be_member_of_collection?(_collection) true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-models-0.3.0 | app/models/concerns/curation_concerns/work_behavior.rb |
curation_concerns-models-0.2.0 | app/models/concerns/curation_concerns/work_behavior.rb |