Sha256: f8d2ecb192ffc8078cd2f9b5208af0799f7d05f80eaf0552f099e6f9416cae7b

Contents?: true

Size: 1.95 KB

Versions: 24

Compression:

Stored size: 1.95 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).default([].freeze)
      attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
      attribute :event, Types::Strict::Array.of(Event).default([].freeze)
      attribute :form, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :language, Types::Strict::Array.of(Language).default([].freeze)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :standard, Standard.optional.meta(omittable: true)
      attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # 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).default([].freeze)
      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

24 entries across 24 versions & 1 rubygems

Version Path
cocina-models-0.65.1 lib/cocina/models/related_resource.rb
cocina-models-0.65.0 lib/cocina/models/related_resource.rb
cocina-models-0.64.0 lib/cocina/models/related_resource.rb
cocina-models-0.63.1 lib/cocina/models/related_resource.rb