Sha256: d1cfb88000261badf6d06b2de0752dfa609abcdc5a31a1c9a4df6113059cd87d

Contents?: true

Size: 1.94 KB

Versions: 15

Compression:

Stored size: 1.94 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Provides the template of access settings that is copied to the items goverend by an AdminPolicy. This is almost the same as DROAccess, but it provides no defaults and has no embargo.
    class AdminPolicyAccessTemplate < Struct
      attribute? :view, Types::Strict::String.enum('world', 'stanford', 'location-based', 'citation-only', 'dark')
      # Available for controlled digital lending.
      attribute? :controlledDigitalLending, Types::Strict::Bool.default(false)
      # The human readable copyright statement that applies
      # example: Copyright World Trade Organization
      attribute? :copyright, Types::Strict::String.optional
      # 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.enum('world', 'stanford', 'location-based', 'none')
      # If access or download is "location-based", this indicates which location should have access. This is used in the transition from Fedora as a way to set a default location at registration that is copied down to all the files.

      attribute? :location, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m')
      # 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.optional
      # The license governing reuse of the Collection. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.).
      attribute? :license, Types::Strict::String.optional
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cocina-models-0.88.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.87.1 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.87.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.86.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.85.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.5 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.4 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.3 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.2 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.1 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.84.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.83.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.82.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.81.0 lib/cocina/models/admin_policy_access_template.rb
cocina-models-0.80.0 lib/cocina/models/admin_policy_access_template.rb