cocina-models 0.58.0 → 0.58.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11f8ca2b0924a901afd8988d67184b44b91ad061ca2cdf7965042b8c1282f2e2
4
- data.tar.gz: 82423f38ede08c6f0046a08abaaa87a1c4ddad1926c8dc56050788cb7a75ad55
3
+ metadata.gz: 2f791f4fb5f53b913b495bcae9bd9918b924f43652e27125c624ffb12ba67e6a
4
+ data.tar.gz: f6d42499c81c75870ba3859ddb0241a2ecc4df420677a2d371c775ba3f72efd4
5
5
  SHA512:
6
- metadata.gz: 982da9783c7e8c86a32c68d7946f1dfa695ab6ce9b5a2bf84d1ade358d7f0855072553ef4fe6fda35c685d39cc464402258572547ce5d06258c1f53fe9c780de
7
- data.tar.gz: 269a9c9e3460d46edf2aaa085535ec626195666adad478173e1ab0e86643a0be7539c5bfdf9db47db6e5ab4a65042bd39c7a938c0f0b6d0d21b6596df64a3d43
6
+ metadata.gz: ef6a8fcbb2550b49fbcb5fbd09a2d3fafce8f345773387fd12520b654e5e0f810aa805a51aeda04ccf4766eac0108cb4c59467a3d1ff86b9dbf5e337450da5aa
7
+ data.tar.gz: 5a7282e082a864bc3e3c223593a01c3c42243f458ba2debc2d4aa72478d945af9e350877aec68073590bf30e0c4080cf882b0f255d190dd901b46f950accb93a
@@ -7,7 +7,7 @@ module Cocina
7
7
  attribute :access, Types::Strict::String.optional.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
8
8
  # The human readable copyright statement that applies
9
9
  # example: Copyright World Trade Organization
10
- attribute :copyright, Types::Strict::String.meta(omittable: true)
10
+ attribute :copyright, Types::Strict::String.optional.meta(omittable: true)
11
11
  # If access is "location-based", which location should have access.
12
12
  attribute :readLocation, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
13
13
  # The human readable use and reproduction statement that applies
@@ -4,7 +4,7 @@ module Cocina
4
4
  module Models
5
5
  class AdminPolicyAdministrative < Struct
6
6
  # This is an XML expression of the default access (see defaultAccess)
7
- attribute :defaultObjectRights, Types::Strict::String.default('<?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>').optional.meta(omittable: true)
7
+ attribute :defaultObjectRights, Types::Strict::String.optional.default('<?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>').meta(omittable: true)
8
8
  attribute :defaultAccess, AdminPolicyDefaultAccess.optional.meta(omittable: true)
9
9
  attribute :registrationWorkflow, Types::Strict::Array.of(Types::Strict::String).meta(omittable: true)
10
10
  # An additional workflow to start for objects managed by this admin policy once the end-accession workflow step is complete
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class AdminPolicyDefaultAccess < Struct
6
- attribute :access, Types::Strict::String.enum('world', 'stanford', 'location-based', 'citation-only', 'dark').optional.meta(omittable: true)
6
+ attribute :access, Types::Strict::String.optional.enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
7
7
  # Available for controlled digital lending.
8
8
  attribute :controlledDigitalLending, Types::Strict::Bool.optional.meta(omittable: true)
9
9
  # The human readable copyright statement that applies
@@ -11,10 +11,10 @@ module Cocina
11
11
  attribute :copyright, Types::Strict::String.optional.meta(omittable: true)
12
12
  # 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.
13
13
 
14
- attribute :download, Types::Strict::String.enum('world', 'stanford', 'location-based', 'none').optional.meta(omittable: true)
14
+ attribute :download, Types::Strict::String.optional.enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
15
15
  # 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.
16
16
 
17
- attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').optional.meta(omittable: true)
17
+ attribute :readLocation, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
18
18
  # The human readable use and reproduction statement that applies
19
19
  # 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).
20
20
  attribute :useAndReproductionStatement, Types::Strict::String.optional.meta(omittable: true)
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DROAccess < Struct
6
- attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').optional.meta(omittable: true)
6
+ attribute :access, Types::Strict::String.optional.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
7
7
  # Available for controlled digital lending.
8
8
  attribute :controlledDigitalLending, Types::Strict::Bool.optional.meta(omittable: true)
9
9
  # The human readable copyright statement that applies
@@ -12,10 +12,10 @@ module Cocina
12
12
  attribute :embargo, Embargo.optional.meta(omittable: true)
13
13
  # 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.
14
14
 
15
- attribute :download, Types::Strict::String.default('none').enum('world', 'stanford', 'location-based', 'none').optional.meta(omittable: true)
15
+ attribute :download, Types::Strict::String.optional.default('none').enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
16
16
  # 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.
17
17
 
18
- attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').optional.meta(omittable: true)
18
+ attribute :readLocation, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
19
19
  # The human readable use and reproduction statement that applies
20
20
  # 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).
21
21
  attribute :useAndReproductionStatement, Types::Strict::String.optional.meta(omittable: true)
@@ -4,13 +4,13 @@ module Cocina
4
4
  module Models
5
5
  class FileAccess < Struct
6
6
  # Access level
7
- attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').optional.meta(omittable: true)
7
+ attribute :access, Types::Strict::String.optional.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
8
8
  # Available for controlled digital lending.
9
9
  attribute :controlledDigitalLending, Types::Strict::Bool.optional.meta(omittable: true)
10
10
  # Download access level for a file
11
- attribute :download, Types::Strict::String.default('none').enum('world', 'stanford', 'location-based', 'none').optional.meta(omittable: true)
11
+ attribute :download, Types::Strict::String.optional.default('none').enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
12
12
  # If access is "location-based", which location should have access.
13
- attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').optional.meta(omittable: true)
13
+ attribute :readLocation, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
14
14
  end
15
15
  end
16
16
  end
@@ -17,7 +17,7 @@ module Cocina
17
17
  attribute :script, DescriptiveValue.optional.meta(omittable: true)
18
18
  attribute :source, Source.optional.meta(omittable: true)
19
19
  # Status of the language relative to other parallel language elements (e.g. the primary language)
20
- attribute :status, Types::Strict::String.enum('primary').optional.meta(omittable: true)
20
+ attribute :status, Types::Strict::String.optional.enum('primary').meta(omittable: true)
21
21
  attribute :standard, Standard.optional.meta(omittable: true)
22
22
  attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
23
23
  # URI value of the descriptive element.
@@ -8,7 +8,7 @@ module Cocina
8
8
  attribute :who, Types::Strict::String.optional.meta(omittable: true)
9
9
  # What is being released. This item or the whole collection.
10
10
  # example: self
11
- attribute :what, Types::Strict::String.enum('self', 'collection').optional.meta(omittable: true)
11
+ attribute :what, Types::Strict::String.optional.enum('self', 'collection').meta(omittable: true)
12
12
  # When did this action happen
13
13
  attribute :date, Types::Params::DateTime.optional.meta(omittable: true)
14
14
  # What platform is it released to
@@ -5,7 +5,7 @@ module Cocina
5
5
  class Sequence < Struct
6
6
  attribute :members, Types::Strict::Array.of(Types::Strict::String).meta(omittable: true)
7
7
  # The direction that a sequence of canvases should be displayed to the user
8
- attribute :viewingDirection, Types::Strict::String.enum('right-to-left', 'left-to-right').optional.meta(omittable: true)
8
+ attribute :viewingDirection, Types::Strict::String.optional.enum('right-to-left', 'left-to-right').meta(omittable: true)
9
9
  end
10
10
  end
11
11
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.58.0'
5
+ VERSION = '0.58.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.58.0
4
+ version: 0.58.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne