Sha256: 8358b398b6ff25e9f64d047c7e5b7356451aa9f0318df3cf10e014d5be25d8a3
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true module Cocina module Models class Identification < Struct # A barcode attribute :barcode, Types::Nominal::Any.optional.meta(omittable: true) attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze) # Digital Object Identifier (https://www.doi.org) # example: 10.25740/bc123df4567 attribute :doi, Types::Strict::String.meta(omittable: true) # Unique identifier in some other system. This is because a large proportion of what is deposited in SDR, historically and currently, are representations of objects that are also represented in other systems. For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to look for the original item if you're looking at its SDR representation. The format is: "namespace:identifier" # example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026 attribute :sourceId, Types::Strict::String.meta(omittable: true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocina-models-0.65.0 | lib/cocina/models/identification.rb |