Sha256: 56b547b9f7264f4b6321423a749339d54250c4a8d984169fe019d6806e9a6b9a

Contents?: true

Size: 1.98 KB

Versions: 6

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class RelatedResource < Struct
      # The relationship of the related resource to the described resource.
      attribute :type, Types::Strict::String.meta(omittable: true)
      # Status of the related resource relative to other related resources.
      attribute :status, Types::Strict::String.meta(omittable: true)
      # The preferred display label to use for the related resource in access systems.
      attribute :displayLabel, Types::Strict::String.meta(omittable: true)
      attribute :title, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
      attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
      attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      attribute :standard, Standard.optional.meta(omittable: true)
      attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
      # Stanford persistent URL associated with the related resource. Note this is http, not https.
      attribute :purl, Types::Strict::String.meta(omittable: true)
      attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
      attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
      attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
      # The version of the related resource.
      attribute :version, Types::Strict::String.meta(omittable: true)
      # URL or other pointer to the location of the related resource information.
      attribute :valueAt, Types::Strict::String.meta(omittable: true)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cocina-models-0.62.1 lib/cocina/models/related_resource.rb
cocina-models-0.62.0 lib/cocina/models/related_resource.rb
cocina-models-0.61.3 lib/cocina/models/related_resource.rb
cocina-models-0.61.2 lib/cocina/models/related_resource.rb
cocina-models-0.61.1 lib/cocina/models/related_resource.rb
cocina-models-0.61.0 lib/cocina/models/related_resource.rb