Sha256: 87614e6182dc6944f15d8e7bd424a6f07a1d640af075bfb9db481d87b1f2a841

Contents?: true

Size: 836 Bytes

Versions: 9

Compression:

Stored size: 836 Bytes

Contents

class Item < ActiveFedora::Base

  has_metadata :name => "descMetadata", :type => ActiveFedora::QualifiedDublinCoreDatastream
  has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
  has_metadata :name => "externalMetadata", :type => ActiveFedora::Datastream, :control_group => 'E'
  has_metadata :name => "redirectedMetadata", :type => ActiveFedora::Datastream, :control_group => 'R'
  has_file_datastream :name => "content"

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

  belongs_to :admin_policy, :property => :is_governed_by
  belongs_to :collection, :property => :is_member_of_collection, :class_name => 'Collection'
  has_many :parts, :property => :is_part_of, :inbound => true, :class_name => 'Part'

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

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