Sha256: 1f9904d66ff49b0c9a6c10e586cf0d2677bd72337878520b166055506f27dbf8

Contents?: true

Size: 1.6 KB

Versions: 27

Compression:

Stored size: 1.6 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 do |m|
      m.field "creation_date", :date, :xml_node => "date"
      m.field "abstract", :text, :xml_node => "abstract"
      m.field "rights", :text, :xml_node => "rights"
      m.field "subject_heading", :string, :xml_node => "subject", :encoding => "LCSH" 
      m.field "spatial_coverage", :string, :xml_node => "spatial", :encoding => "TGN"
      m.field "temporal_coverage", :string, :xml_node => "temporal", :encoding => "Period"
      m.field "type", :string, :xml_node => "type", :encoding => "DCMITYPE"
      m.field "alt_title", :string, :xml_node => "alternative"
    end
    
    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

27 entries across 27 versions & 1 rubygems

Version Path
active-fedora-4.0.0.rc16 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc15 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc14 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc13 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc12 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc11 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc10 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc9 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc8 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc7 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc6 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc5 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc4 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc3 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc2 spec/samples/oral_history_sample_model.rb
active-fedora-4.0.0.rc1 spec/samples/oral_history_sample_model.rb
active-fedora-3.3.2 spec/samples/oral_history_sample_model.rb
active-fedora-3.3.1 spec/samples/oral_history_sample_model.rb
active-fedora-3.3.0 spec/samples/oral_history_sample_model.rb
active-fedora-3.2.2 spec/samples/oral_history_sample_model.rb