lib/cocina/models/file.rb in cocina-models-0.91.4 vs lib/cocina/models/file.rb in cocina-models-0.92.0
- old
+ new
@@ -20,9 +20,11 @@
attribute? :size, Types::Strict::Integer
# Version for the File within SDR.
attribute :version, Types::Strict::Integer
# MIME Type of the File.
attribute? :hasMimeType, Types::Strict::String
+ # BCP 47 language tag: https://www.rfc-editor.org/rfc/rfc4646.txt -- other applications (like media players) expect language codes of this format, see e.g. https://videojs.com/guides/text-tracks/#srclang
+ attribute? :languageTag, Types::Strict::String
# Use for the File.
attribute? :use, Types::Strict::String
attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([].freeze)
attribute(:access, FileAccess.default { FileAccess.new })
attribute(:administrative, FileAdministrative.default { FileAdministrative.new })