Sha256: b0e22863105eb20cf177be6460859af860c5666223b36635cbfe80934f6daa9a

Contents?: true

Size: 1.76 KB

Versions: 36

Compression:

Stored size: 1.76 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Languages, scripts, symbolic systems, and notations used in all or part of a resource or its descriptive metadata.
    class Language < Struct
      attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
      # Code value of the descriptive element.
      attribute? :code, Types::Strict::String
      # The preferred display label to use for the descriptive element in access systems.
      attribute? :displayLabel, Types::Strict::String
      attribute? :encoding, Standard.optional
      attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # present for mapping to additional schemas in the future and for consistency but not otherwise used
      attribute? :qualifier, Types::Strict::String
      attribute? :script, DescriptiveValue.optional
      attribute? :source, Source.optional
      # Status of the language relative to other parallel language elements (e.g. the primary language)
      attribute? :status, Types::Strict::String.enum('primary')
      attribute? :standard, Standard.optional
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # URI value of the descriptive element.
      attribute? :uri, Types::Strict::String
      # Value of the descriptive element.
      attribute? :value, Types::Strict::String
      # URL or other pointer to the location of the language information.
      attribute? :valueAt, Types::Strict::String
      attribute? :valueLanguage, DescriptiveValueLanguage.optional
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cocina-models-0.99.1 lib/cocina/models/language.rb
cocina-models-0.99.0 lib/cocina/models/language.rb
cocina-models-0.98.1 lib/cocina/models/language.rb
cocina-models-0.98.0 lib/cocina/models/language.rb
cocina-models-0.96.0 lib/cocina/models/language.rb
cocina-models-0.95.1 lib/cocina/models/language.rb
cocina-models-0.95.0 lib/cocina/models/language.rb
cocina-models-0.94.2 lib/cocina/models/language.rb
cocina-models-0.94.1 lib/cocina/models/language.rb
cocina-models-0.94.0 lib/cocina/models/language.rb
cocina-models-0.93.1 lib/cocina/models/language.rb
cocina-models-0.93.0 lib/cocina/models/language.rb
cocina-models-0.92.0 lib/cocina/models/language.rb
cocina-models-0.91.4 lib/cocina/models/language.rb
cocina-models-0.91.3 lib/cocina/models/language.rb
cocina-models-0.91.2 lib/cocina/models/language.rb
cocina-models-0.91.1 lib/cocina/models/language.rb
cocina-models-0.91.0 lib/cocina/models/language.rb
cocina-models-0.90.0 lib/cocina/models/language.rb
cocina-models-0.89.1 lib/cocina/models/language.rb