Sha256: 6ccbe88e3ea3dfdc0192b89dd5598696931cbecb640bc59c6047fd5ba8bbe37e

Contents?: true

Size: 1.02 KB

Versions: 140

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::SimpleDatastream 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::SimpleDatastream do |m|
      m.field "significant_passage", :text
    end
    
    has_metadata :name => "sensitive_passages", :type => ActiveFedora::SimpleDatastream do |m|
      m.field "sensitive_passage", :text
    end

end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
active-fedora-8.7.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.6.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.5.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.4.2 spec/samples/oral_history_sample_model.rb
active-fedora-8.4.1 spec/samples/oral_history_sample_model.rb
active-fedora-7.3.1 spec/samples/oral_history_sample_model.rb
active-fedora-7.3.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.4.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.3.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.2.2 spec/samples/oral_history_sample_model.rb
active-fedora-8.2.1 spec/samples/oral_history_sample_model.rb
active-fedora-8.2.0 spec/samples/oral_history_sample_model.rb
active-fedora-7.2.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.1.0 spec/samples/oral_history_sample_model.rb
active-fedora-8.0.1 spec/samples/oral_history_sample_model.rb
active-fedora-9.0.6 spec/samples/oral_history_sample_model.rb
active-fedora-9.0.5 spec/samples/oral_history_sample_model.rb
active-fedora-9.0.4 spec/samples/oral_history_sample_model.rb
active-fedora-9.0.3 spec/samples/oral_history_sample_model.rb
active-fedora-9.0.2 spec/samples/oral_history_sample_model.rb