Sha256: 38406241887cbca95099308448a1307445040bada8faad3b4e20c52229a6a740

Contents?: true

Size: 993 Bytes

Versions: 3

Compression:

Stored size: 993 Bytes

Contents

require 'active_fedora'

module EemModel

  class Eem < ActiveFedora::Base
  
    has_relationship "parts", :is_part_of, :inbound => true #content files

    has_relationship "permission_files", :is_dependent_of, :inbound => true
  
    has_metadata :name => 'eemsProperties', :type => ActiveFedora::MetadataDatastream do |m|
      m.field "copyrightStatusDate", :string, :multiple => false #mutiple doesn't do anything
      m.field "copyrightStatus", :string
      m.field "creatorOrg", :string
      m.field "creatorPerson", :string
      m.field "language", :string
      m.field "note", :string
      m.field "paymentType", :string
      m.field "paymentFund", :string
      m.field "selectorName", :string
      m.field "selectorSunetid", :string
      m.field "title", :string
      m.field "sourceUrl", :string
      m.field "requestDatetime", :string
      m.field "status", :string
      m.field "statusDatetime", :string
      m.field "downloadDate", :string
    end

  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eem_model-0.9.1 lib/eem_model/eem.rb
eem_model-0.9.0 lib/eem_model/eem.rb
eem_model-0.0.3 lib/eem_model/eem.rb