Sha256: 92f997cc05514e6ac26f768795f522363fdd9c34e1e35a36c54ae3e178168470
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "identifier" require_relative "name_part" require_relative "role" module LocMods class SubjectName < Lutaml::Model::Serializable attribute :type, :string attribute :id, :string attribute :authority, :string attribute :authority_uri, :string attribute :value_uri, :string attribute :lang, :string attribute :script, :string attribute :transliteration, :string attribute :display_label, :string attribute :name_part, NamePart, collection: true attribute :display_form, :string, collection: true attribute :affiliation, :string, collection: true attribute :role, Role, collection: true attribute :description, :string, collection: true attribute :name_identifier, Identifier, collection: true xml do root "subjectName" namespace "http://www.loc.gov/mods/v3", nil map_attribute "type", to: :type map_attribute "ID", to: :id map_attribute "authority", to: :authority map_attribute "authorityURI", to: :authority_uri map_attribute "valueURI", to: :value_uri map_attribute "lang", to: :lang map_attribute "script", to: :script map_attribute "transliteration", to: :transliteration map_attribute "displayLabel", to: :display_label map_element "namePart", to: :name_part map_element "displayForm", to: :display_form map_element "affiliation", to: :affiliation map_element "role", to: :role map_element "description", to: :description map_element "nameIdentifier", to: :name_identifier end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.7 | lib/loc_mods/subject_name.rb |
loc_mods-0.2.6 | lib/loc_mods/subject_name.rb |
loc_mods-0.2.5 | lib/loc_mods/subject_name.rb |