Sha256: 72c59d38bc338a64ef0110f0301b08e2714c76ecf8c5c9c68fdf511b23fa8660

Contents?: true

Size: 1.77 KB

Versions: 4

Compression:

Stored size: 1.77 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
      # Status of the related resource relative to other related resources.
      attribute? :status, Types::Strict::String
      # The preferred display label to use for the related resource in access systems.
      attribute? :displayLabel, Types::Strict::String
      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
      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
      attribute? :access, DescriptiveAccessMetadata.optional
      attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze)
      attribute? :adminMetadata, DescriptiveAdminMetadata.optional
      # The version of the related resource.
      attribute? :version, Types::Strict::String
      # URL or other pointer to the location of the related resource information.
      attribute? :valueAt, Types::Strict::String
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cocina-models-0.79.0 lib/cocina/models/related_resource.rb
cocina-models-0.78.0 lib/cocina/models/related_resource.rb
cocina-models-0.77.0 lib/cocina/models/related_resource.rb
cocina-models-0.76.0 lib/cocina/models/related_resource.rb