Sha256: 1ba3366a1b24ebe7a69d19f8fdbd9fcdc67b2a8bc93693598d28ac0ae9fca24c

Contents?: true

Size: 562 Bytes

Versions: 11

Compression:

Stored size: 562 Bytes

Contents

class Part < ActiveFedora::Base

  has_metadata :name => "descMetadata", :type => ActiveFedora::QualifiedDublinCoreDatastream
  has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
  has_file_datastream :name => "content", :type => ActiveFedora::Datastream

  delegate :title, :to => "descMetadata", :unique => true

  belongs_to :admin_policy, :property => :is_governed_by
  belongs_to :container, :property => :is_part_of, :class_name => 'Item'

  include Hydra::ModelMixins::RightsMetadata
  include ActiveFedora::Auditable

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 spec/internal/app/models/part.rb
fcrepo_admin-0.6.0 spec/internal/app/models/part.rb
fcrepo_admin-0.5.5 spec/internal/app/models/part.rb
fcrepo_admin-0.5.5.pre spec/internal/app/models/part.rb
fcrepo_admin-0.5.4 spec/internal/app/models/part.rb
fcrepo_admin-0.5.3 spec/internal/app/models/part.rb
fcrepo_admin-0.5.2 spec/internal/app/models/part.rb
fcrepo_admin-0.5.1 spec/internal/app/models/part.rb
fcrepo_admin-0.5.0 spec/internal/app/models/part.rb
fcrepo_admin-0.4.1 spec/internal/app/models/part.rb
fcrepo_admin-0.4.0 spec/internal/app/models/part.rb