Sha256: 361c92a957c5b97f23c4687e92e5bc53a24365f11d8fa42b142aaa7968f8d024

Contents?: true

Size: 1.08 KB

Versions: 105

Compression:

Stored size: 1.08 KB

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
    
    #has_metadata "dublin_core", :type => ActiveFedora::MetadataDatastream::QualifiedDublinCore

  
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
active-fedora-4.2.0 spec/samples/models/seminar_audio_file.rb
active-fedora-4.1.0 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc20 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc19 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc18 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc17 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc16 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc15 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc14 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc13 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc12 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc11 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc10 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc9 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc8 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc7 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc6 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc5 spec/samples/models/seminar_audio_file.rb
active-fedora-4.0.0.rc4 spec/samples/models/seminar_audio_file.rb