Sha256: 0b30d9c5714c9882dcbce53bf1a236996d76f228cea2d79a52aa3fbdcd93f709
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
module EtdModel class Part < ActiveFedora::Base belongs_to 'parents', :property => :is_part_of # relationship between main pdf and parent etd belongs_to 'supplemental_file_for', :property => :is_constituent_of # relationship between supplemental file and parent etd belongs_to 'permission_file_for', :property => :is_dependent_of # 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.0 | lib/etd_model/part.rb |
etd_model-2.0.0 | lib/etd_model/part.rb |