lib/cocina/models/identification.rb in cocina-models-0.58.1 vs lib/cocina/models/identification.rb in cocina-models-0.58.2

- old
+ new

@@ -4,12 +4,12 @@ module Models class Identification < Struct # 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.optional.meta(omittable: true) + attribute :sourceId, Types::Strict::String.meta(omittable: true) attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true) # A barcode - attribute :barcode, Types::Nominal::Any.optional.meta(omittable: true) + attribute :barcode, Types::Nominal::Any.meta(omittable: true) end end end