-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #535 from sul-dlss/revert-533-parallel-contrib-no-mo
Revert "remove unused, deprecated parallelContributor" due to EMPTY parallelContributor presence
- Loading branch information
Showing
7 changed files
with
154 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
module Cocina | ||
module Models | ||
# DEPRECATED | ||
# Value model for multiple representations of information about the same contributor (e.g. in different languages). | ||
class DescriptiveParallelContributor < Struct | ||
attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze) | ||
# Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types. | ||
attribute? :type, Types::Strict::String | ||
# Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors). | ||
attribute? :status, Types::Strict::String | ||
attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze) | ||
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze) | ||
attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze) | ||
# URL or other pointer to the location of the contributor information. | ||
attribute? :valueAt, Types::Strict::String | ||
attribute? :valueLanguage, DescriptiveValueLanguage.optional | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters