Sha256: aa603692f3adb2652aaecf01b3c99626dc13506381d095ee8726063eab067631

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

require "active_fedora"
class OralHistorySampleModel < ActiveFedora::Base

    #has_relationship "parts", :is_part_of, :inbound => true
    
    has_metadata :name => "properties", :type => ActiveFedora::MetadataDatastream do |m|
      m.field "narrator",  :string
      m.field "interviewer", :string
      m.field "transcript_editor", :text
      m.field "bio", :string
      m.field "notes", :text
      m.field "hard_copy_availability", :text
      m.field "hard_copy_location", :text
      m.field "other_contributor", :string
      m.field "restrictions", :text
      m.field "series", :string
      m.field "location", :string
    end
    
    has_metadata :name => "dublin_core", :type => ActiveFedora::QualifiedDublinCoreDatastream

    has_metadata :name => "significant_passages", :type => ActiveFedora::MetadataDatastream do |m|
      m.field "significant_passage", :text
    end
    
    has_metadata :name => "sensitive_passages", :type => ActiveFedora::MetadataDatastream do |m|
      m.field "sensitive_passage", :text
    end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active-fedora-4.2.0 spec/samples/oral_history_sample_model.rb
active-fedora-4.1.0 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc20 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc19 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc18 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc17 spec/samples/oral_history_sample_model.rb