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

Version Path
active-fedora-9.0.1 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.rc3 spec/samples/models/seminar_audio_file.rb
active-fedora-8.0.0 spec/samples/models/seminar_audio_file.rb
active-fedora-8.0.0.rc3 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.rc2 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.rc1 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta8 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta7 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta6 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta5 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta4 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta3 spec/samples/models/seminar_audio_file.rb
active-fedora-8.0.0.rc2 spec/samples/models/seminar_audio_file.rb
active-fedora-8.0.0.rc1 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta2 spec/samples/models/seminar_audio_file.rb
active-fedora-7.1.2 spec/samples/models/seminar_audio_file.rb
active-fedora-9.0.0.beta1 spec/samples/models/seminar_audio_file.rb
active-fedora-7.1.1 spec/samples/models/seminar_audio_file.rb
active-fedora-7.1.0 spec/samples/models/seminar_audio_file.rb