Sha256: 6b65b0fe9844172a042e49ef512f373522f03ae92075a1839565796538a6ee7e

Contents?: true

Size: 790 Bytes

Versions: 2

Compression:

Stored size: 790 Bytes

Contents

module EtdModel
  class Part < ActiveFedora::Base
    belongs_to 'parents', :property => :is_part_of, class_name: 'EtdModel::Etd' # relationship between main pdf and parent etd
    belongs_to 'supplemental_file_for', :property => :is_constituent_of, class_name: 'EtdModel::Etd' # relationship between supplemental file and parent etd
    belongs_to 'permission_file_for', :property => :is_dependent_of, class_name: 'EtdModel::Etd'  # relationsihip between permission file and parent etd

    has_metadata :name => 'properties', :type => ActiveFedora::SimpleDatastream do |m|
      m.field 'file_name', :string
      m.field 'size', :string
      m.field 'label', :string
    end

    has_metadata :name => 'DC', :type => ActiveFedora::QualifiedDublinCoreDatastream do |m|
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
etd_model-2.1.2 lib/etd_model/part.rb
etd_model-2.1.1 lib/etd_model/part.rb