Sha256: 08fae6ef5d89cf1e6746ad5c32203acf535a78918cdc9edd004beedc256acf7a

Contents?: true

Size: 811 Bytes

Versions: 9

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

module Dor
  # Represents a piece of an ETD submission
  class Part < ActiveFedora::Base
    belongs_to :parents, property: :is_part_of, class_name: 'Etd' # relationship between main pdf and parent etd
    belongs_to :supplemental_file_for, property: :is_constituent_of, class_name: 'Etd' # relationship between supplemental file and parent etd
    belongs_to :permission_file_for, property: :is_dependent_of, class_name: 'Etd' # relationsihip between permission file and parent etd

    has_attributes :file_name, :size, datastream: 'properties', multiple: false

    has_metadata name: 'properties', type: ActiveFedora::SimpleDatastream, versionable: false do |m|
      m.field 'file_name', :string
      m.field 'size', :string
      m.field 'label', :string
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dor-services-9.6.2 lib/dor/models/part.rb
dor-services-9.6.1 lib/dor/models/part.rb
dor-services-9.6.0 lib/dor/models/part.rb
dor-services-9.5.0 lib/dor/models/part.rb
dor-services-9.4.0 lib/dor/models/part.rb
dor-services-9.3.0 lib/dor/models/part.rb
dor-services-9.2.1 lib/dor/models/part.rb
dor-services-9.2.0 lib/dor/models/part.rb
dor-services-9.1.0 lib/dor/models/part.rb