Sha256: ea18b55df5c247ce2d79cb611fbff116e24d610aed7abf99e4685e39886a43da

Contents?: true

Size: 1.71 KB

Versions: 27

Compression:

Stored size: 1.71 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class DROAccess < Struct
      attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
      # Available for controlled digital lending.
      attribute :controlledDigitalLending, Types::Strict::Bool.meta(omittable: true)
      # The human readable copyright statement that applies
      # example: Copyright World Trade Organization
      attribute :copyright, Types::Strict::String.meta(omittable: true)
      attribute :embargo, Embargo.optional.meta(omittable: true)
      # Download access level. This is used in the transition from Fedora as a way to set a default download level at registration that is copied down to all the files.

      attribute :download, Types::Strict::String.default('none').enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
      # If access is "location-based", which location should have access. This is used in the transition from Fedora as a way to set a default readLocation at registration that is copied down to all the files.

      attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
      # The human readable use and reproduction statement that applies
      # example: Property rights reside with the repository. Literary rights reside with the creators of the documents or their heirs. To obtain permission to publish or reproduce, please contact the Public Services Librarian of the Dept. of Special Collections (http://library.stanford.edu/spc).
      attribute :useAndReproductionStatement, Types::Strict::String.meta(omittable: true)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cocina-models-0.55.0 lib/cocina/models/dro_access.rb
cocina-models-0.54.0 lib/cocina/models/dro_access.rb
cocina-models-0.54.0.beta.2 lib/cocina/models/dro_access.rb
cocina-models-0.53.1 lib/cocina/models/dro_access.rb
cocina-models-0.54.0.beta.1 lib/cocina/models/dro_access.rb
cocina-models-0.53.0 lib/cocina/models/dro_access.rb
cocina-models-0.52.0 lib/cocina/models/dro_access.rb
cocina-models-0.51.0 lib/cocina/models/dro_access.rb
cocina-models-0.50.0 lib/cocina/models/dro_access.rb
cocina-models-0.49.0 lib/cocina/models/dro_access.rb
cocina-models-0.48.0 lib/cocina/models/dro_access.rb
cocina-models-0.47.2 lib/cocina/models/dro_access.rb
cocina-models-0.47.1 lib/cocina/models/dro_access.rb
cocina-models-0.47.0 lib/cocina/models/dro_access.rb
cocina-models-0.46.0 lib/cocina/models/dro_access.rb
cocina-models-0.45.0 lib/cocina/models/dro_access.rb
cocina-models-0.44.0 lib/cocina/models/dro_access.rb
cocina-models-0.43.0 lib/cocina/models/dro_access.rb
cocina-models-0.42.1 lib/cocina/models/dro_access.rb
cocina-models-0.42.0 lib/cocina/models/dro_access.rb