Sha256: cf0394bf8151017c3f4e36b726113fa24c18087e0d978a1cd64f928aeed2fcea
Contents?: true
Size: 1009 Bytes
Versions: 140
Compression:
Stored size: 1009 Bytes
Contents
require 'active-fedora' class SeminarAudioFile include ActiveFedora::Model # Imitating DataMapper ... relationship "parent", :is_part_of, :seminar #has n, :parents, {:predicate => :is_part_of, :likely_types => [:seminar]} # OR # is_part_of :seminar property "date_recorded", :date property "file_name", :string property "duration", :string property "uri", :string property "notes", :text # TODO: Figure out how to declare access restrictions #property "restriction", :text set_restrictions ["public", "private"] # A file_size property doesn't make sense when you have both compressed and uncompressed in the same object! # Probably better to rely on the file size in datastreamVersion "SIZE" attribute from Fedora anyway #property "file_size", :integer datastream "compressed", ["audio/mpeg"], :multiple => true datastream "uncompressed", ["audio/wav", "audio/aiff"], :multiple => true end
Version data entries
140 entries across 140 versions & 1 rubygems