Sha256: bc38817f558878126834c30dd38c656ebe2e6d9d11df27cdff56440063dd54ab

Contents?: true

Size: 1.17 KB

Versions: 35

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # DEPRECATED
    # Value model for multiple representations of information about the same contributor (e.g. in different languages).
    class DescriptiveParallelContributor < Struct
      attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
      attribute? :type, Types::Strict::String
      # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
      attribute? :status, Types::Strict::String
      attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # URL or other pointer to the location of the contributor information.
      attribute? :valueAt, Types::Strict::String
      attribute? :valueLanguage, DescriptiveValueLanguage.optional
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
cocina-models-0.89.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.88.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.87.1 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.87.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.86.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.5 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.4 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.3 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.2 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.1 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.84.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.83.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.82.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.81.0 lib/cocina/models/descriptive_parallel_contributor.rb
cocina-models-0.80.0 lib/cocina/models/descriptive_parallel_contributor.rb