Sha256: 661f78e1dbb581345667eef596dd1036725f9adfbc47bea9985dbe4b2bf90936

Contents?: true

Size: 1.04 KB

Versions: 245

Compression:

Stored size: 1.04 KB

Contents

require 'active-fedora'

class AudioRecord
  
    include ActiveFedora::Model
      
    # This seems a bit strange, since this Class might be used outside of Oral Histories.  
    # From this perspective, it makes more sense to put triples on the containing object, not on the children...
    
    relationship "parents", :is_part_of, [nil, :oral_history]
    #has n, :parents, {:predicate => :is_part_of, :likely_types => [nil, :oral_history]}
    # OR
    # is_part_of [:oral_history]
    
    property "date_recorded",   :date
    property "file_name", :string
    property "duration",  :string
    property "notes", :text

    # This 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

    #property "restriction", :text
    
    datastream "compressed", ["audio/mpeg"], :multiple => true
    datastream "uncompressed", ["audio/wav", "audio/aiff"], :multiple => true
      
end

Version data entries

245 entries across 245 versions & 1 rubygems

Version Path
active-fedora-6.7.8 spec/samples/models/audio_record.rb
active-fedora-7.0.4 spec/samples/models/audio_record.rb
active-fedora-7.0.3 spec/samples/models/audio_record.rb
active-fedora-7.0.2 spec/samples/models/audio_record.rb
active-fedora-7.0.1 spec/samples/models/audio_record.rb
active-fedora-7.0.0 spec/samples/models/audio_record.rb
active-fedora-7.0.0.rc3 spec/samples/models/audio_record.rb
active-fedora-6.7.7 spec/samples/models/audio_record.rb
active-fedora-7.0.0.rc2 spec/samples/models/audio_record.rb
active-fedora-6.7.6 spec/samples/models/audio_record.rb
active-fedora-7.0.0.rc1 spec/samples/models/audio_record.rb
active-fedora-6.7.5 spec/samples/models/audio_record.rb
active-fedora-7.0.0.pre3 spec/samples/models/audio_record.rb
active-fedora-6.7.4 spec/samples/models/audio_record.rb
active-fedora-7.0.0.pre2 spec/samples/models/audio_record.rb
active-fedora-7.0.0.pre1 spec/samples/models/audio_record.rb
active-fedora-6.7.3 spec/samples/models/audio_record.rb
active-fedora-6.7.2 spec/samples/models/audio_record.rb
active-fedora-6.7.1 spec/samples/models/audio_record.rb
active-fedora-6.7.0 spec/samples/models/audio_record.rb