loc_mods 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.rubocop_todo.yml +83 -0
  4. data/lib/loc_mods/abstract.rb +9 -9
  5. data/lib/loc_mods/access_condition.rb +11 -11
  6. data/lib/loc_mods/alternative_name.rb +10 -10
  7. data/lib/loc_mods/area.rb +3 -3
  8. data/lib/loc_mods/cartographic_extension.rb +4 -4
  9. data/lib/loc_mods/cartographics.rb +8 -8
  10. data/lib/loc_mods/city_section.rb +3 -3
  11. data/lib/loc_mods/classification.rb +8 -8
  12. data/lib/loc_mods/cli.rb +1 -2
  13. data/lib/loc_mods/collection.rb +3 -3
  14. data/lib/loc_mods/copy_information.rb +5 -5
  15. data/lib/loc_mods/date.rb +8 -8
  16. data/lib/loc_mods/date_other.rb +4 -4
  17. data/lib/loc_mods/detail.rb +7 -7
  18. data/lib/loc_mods/edition.rb +4 -4
  19. data/lib/loc_mods/enumeration_and_chronology.rb +4 -4
  20. data/lib/loc_mods/extent.rb +4 -4
  21. data/lib/loc_mods/extent_definition.rb +7 -7
  22. data/lib/loc_mods/form.rb +5 -5
  23. data/lib/loc_mods/genre.rb +8 -8
  24. data/lib/loc_mods/geographic_code.rb +6 -6
  25. data/lib/loc_mods/hierarchical_geographic.rb +6 -6
  26. data/lib/loc_mods/hierarchical_part.rb +8 -8
  27. data/lib/loc_mods/holding_simple.rb +2 -2
  28. data/lib/loc_mods/identifier.rb +8 -8
  29. data/lib/loc_mods/item_identifier.rb +4 -4
  30. data/lib/loc_mods/language.rb +9 -9
  31. data/lib/loc_mods/language_term.rb +7 -7
  32. data/lib/loc_mods/location.rb +8 -8
  33. data/lib/loc_mods/name.rb +19 -19
  34. data/lib/loc_mods/name_part.rb +4 -4
  35. data/lib/loc_mods/non_sort.rb +4 -4
  36. data/lib/loc_mods/note.rb +7 -7
  37. data/lib/loc_mods/occupation.rb +6 -6
  38. data/lib/loc_mods/origin_info.rb +10 -10
  39. data/lib/loc_mods/part.rb +10 -10
  40. data/lib/loc_mods/physical_description.rb +10 -10
  41. data/lib/loc_mods/physical_description_note.rb +7 -7
  42. data/lib/loc_mods/physical_location.rb +5 -5
  43. data/lib/loc_mods/place.rb +3 -3
  44. data/lib/loc_mods/place_term.rb +7 -7
  45. data/lib/loc_mods/publisher.rb +6 -6
  46. data/lib/loc_mods/record.rb +4 -4
  47. data/lib/loc_mods/record_content_source.rb +4 -4
  48. data/lib/loc_mods/record_identifier.rb +4 -4
  49. data/lib/loc_mods/record_info.rb +9 -9
  50. data/lib/loc_mods/record_info_note.rb +8 -8
  51. data/lib/loc_mods/region.rb +3 -3
  52. data/lib/loc_mods/related_item.rb +10 -10
  53. data/lib/loc_mods/role.rb +2 -2
  54. data/lib/loc_mods/role_term.rb +4 -4
  55. data/lib/loc_mods/script_term.rb +4 -4
  56. data/lib/loc_mods/string_plus_language.rb +6 -6
  57. data/lib/loc_mods/string_plus_language_plus_authority.rb +6 -6
  58. data/lib/loc_mods/string_plus_language_plus_supplied.rb +4 -4
  59. data/lib/loc_mods/subject.rb +15 -15
  60. data/lib/loc_mods/subject_name.rb +14 -14
  61. data/lib/loc_mods/subject_title_info.rb +16 -16
  62. data/lib/loc_mods/table_of_contents.rb +9 -9
  63. data/lib/loc_mods/target_audience.rb +5 -5
  64. data/lib/loc_mods/temporal.rb +5 -5
  65. data/lib/loc_mods/text.rb +5 -5
  66. data/lib/loc_mods/title_info.rb +22 -22
  67. data/lib/loc_mods/type_of_resource.rb +8 -8
  68. data/lib/loc_mods/url.rb +8 -8
  69. data/lib/loc_mods/version.rb +1 -1
  70. data/lib/loc_mods.rb +7 -6
  71. metadata +5 -6
  72. data/lib/loc_mods/base_mapper.rb +0 -26
  73. data/lib/loc_mods/comparable_mapper.rb +0 -501
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class Identifier < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
10
- attribute :type_uri, Shale::Type::Value
11
- attribute :invalid, Shale::Type::Value
12
- attribute :alt_rep_group, Shale::Type::String
6
+ class Identifier < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
+ attribute :type_uri, :string
11
+ attribute :invalid, :string
12
+ attribute :alt_rep_group, :string
13
13
 
14
14
  xml do
15
15
  root "nameIdentifier"
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class ItemIdentifier < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
6
+ class ItemIdentifier < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
9
 
10
10
  xml do
11
11
  root "itemIdentifier"
@@ -1,19 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "language_term"
6
6
  require_relative "script_term"
7
7
 
8
8
  module LocMods
9
- class Language < BaseMapper
10
- attribute :object_part, Shale::Type::String
11
- attribute :lang, Shale::Type::String
12
- attribute :script, Shale::Type::String
13
- attribute :transliteration, Shale::Type::String
14
- attribute :display_label, Shale::Type::String
15
- attribute :alt_rep_group, Shale::Type::String
16
- attribute :usage, Shale::Type::Value
9
+ class Language < Lutaml::Model::Serializable
10
+ attribute :object_part, :string
11
+ attribute :lang, :string
12
+ attribute :script, :string
13
+ attribute :transliteration, :string
14
+ attribute :display_label, :string
15
+ attribute :alt_rep_group, :string
16
+ attribute :usage, :string
17
17
  attribute :language_term, LanguageTerm, collection: true
18
18
  attribute :script_term, ScriptTerm, collection: true
19
19
 
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class LanguageTerm < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :authority_uri, Shale::Type::Value
9
- attribute :value_uri, Shale::Type::Value
10
- attribute :authority, Shale::Type::String
11
- attribute :type, Shale::Type::String
6
+ class LanguageTerm < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :authority_uri, :string
9
+ attribute :value_uri, :string
10
+ attribute :authority, :string
11
+ attribute :type, :string
12
12
 
13
13
  xml do
14
14
  root "languageTerm"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "cartographic_extension"
6
6
  require_relative "holding_simple"
@@ -8,14 +8,14 @@ require_relative "physical_location"
8
8
  require_relative "url"
9
9
 
10
10
  module LocMods
11
- class Location < BaseMapper
12
- attribute :lang, Shale::Type::String
13
- attribute :script, Shale::Type::String
14
- attribute :transliteration, Shale::Type::String
15
- attribute :display_label, Shale::Type::String
16
- attribute :alt_rep_group, Shale::Type::String
11
+ class Location < Lutaml::Model::Serializable
12
+ attribute :lang, :string
13
+ attribute :script, :string
14
+ attribute :transliteration, :string
15
+ attribute :display_label, :string
16
+ attribute :alt_rep_group, :string
17
17
  attribute :physical_location, PhysicalLocation, collection: true
18
- attribute :shelf_locator, Shale::Type::String, collection: true
18
+ attribute :shelf_locator, :string, collection: true
19
19
  attribute :url, Url, collection: true
20
20
  attribute :holding_simple, HoldingSimple
21
21
  attribute :holding_external, CartographicExtension
data/lib/loc_mods/name.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "alternative_name"
6
6
  require_relative "identifier"
@@ -8,28 +8,28 @@ require_relative "name_part"
8
8
  require_relative "role"
9
9
 
10
10
  module LocMods
11
- class Name < BaseMapper
12
- attribute :id, Shale::Type::Value
13
- attribute :authority, Shale::Type::String
14
- attribute :authority_uri, Shale::Type::Value
15
- attribute :value_uri, Shale::Type::Value
16
- attribute :lang, Shale::Type::String
17
- attribute :script, Shale::Type::String
18
- attribute :transliteration, Shale::Type::String
19
- attribute :display_label, Shale::Type::String
20
- attribute :alt_rep_group, Shale::Type::String
21
- attribute :name_title_group, Shale::Type::String
22
- attribute :usage, Shale::Type::String
23
- attribute :type, Shale::Type::String
11
+ class Name < Lutaml::Model::Serializable
12
+ attribute :id, :string
13
+ attribute :authority, :string
14
+ attribute :authority_uri, :string
15
+ attribute :value_uri, :string
16
+ attribute :lang, :string
17
+ attribute :script, :string
18
+ attribute :transliteration, :string
19
+ attribute :display_label, :string
20
+ attribute :alt_rep_group, :string
21
+ attribute :name_title_group, :string
22
+ attribute :usage, :string
23
+ attribute :type, :string
24
24
  attribute :name_part, NamePart, collection: true
25
- attribute :display_form, Shale::Type::String, collection: true
26
- attribute :affiliation, Shale::Type::String, collection: true
25
+ attribute :display_form, :string, collection: true
26
+ attribute :affiliation, :string, collection: true
27
27
  attribute :role, Role, collection: true
28
- attribute :description, Shale::Type::String, collection: true
28
+ attribute :description, :string, collection: true
29
29
  attribute :name_identifier, Identifier, collection: true
30
30
  attribute :alternative_name, AlternativeName, collection: true
31
- attribute :etal, Shale::Type::String
32
- attribute :href, Shale::Type::String
31
+ attribute :etal, :string
32
+ attribute :href, :string
33
33
 
34
34
  xml do
35
35
  root "name"
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class NamePart < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
6
+ class NamePart < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
9
 
10
10
  xml do
11
11
  root "namePart"
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class NonSort < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :space, Shale::Type::String
6
+ class NonSort < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :space, :string
9
9
 
10
10
  xml do
11
11
  root "nonSort"
data/lib/loc_mods/note.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class Note < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
10
- attribute :id, Shale::Type::String
11
- attribute :script, Shale::Type::String
6
+ class Note < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
+ attribute :id, :string
11
+ attribute :script, :string
12
12
 
13
13
  xml do
14
14
  root "note"
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
6
  # LocMods::StringPlusLanguagePlusAuthority
7
- class Occupation < BaseMapper
8
- attribute :content, Shale::Type::String
9
- attribute :authority, Shale::Type::String
10
- attribute :authority_uri, Shale::Type::Value
11
- attribute :value_uri, Shale::Type::Value
7
+ class Occupation < Lutaml::Model::Serializable
8
+ attribute :content, :string
9
+ attribute :authority, :string
10
+ attribute :authority_uri, :string
11
+ attribute :value_uri, :string
12
12
 
13
13
  xml do
14
14
  root "occupation"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "date"
6
6
  require_relative "date_other"
@@ -9,13 +9,13 @@ require_relative "publisher"
9
9
  require_relative "edition"
10
10
 
11
11
  module LocMods
12
- class OriginInfo < BaseMapper
13
- attribute :lang, Shale::Type::String
14
- attribute :script, Shale::Type::String
15
- attribute :transliteration, Shale::Type::String
16
- attribute :display_label, Shale::Type::String
17
- attribute :alt_rep_group, Shale::Type::String
18
- attribute :event_type, Shale::Type::String
12
+ class OriginInfo < Lutaml::Model::Serializable
13
+ attribute :lang, :string
14
+ attribute :script, :string
15
+ attribute :transliteration, :string
16
+ attribute :display_label, :string
17
+ attribute :alt_rep_group, :string
18
+ attribute :event_type, :string
19
19
  attribute :place, Place, collection: true
20
20
  attribute :publisher, Publisher, collection: true
21
21
  attribute :date_issued, Date, collection: true
@@ -26,8 +26,8 @@ module LocMods
26
26
  attribute :copyright_date, Date, collection: true
27
27
  attribute :date_other, DateOther, collection: true
28
28
  attribute :edition, Edition, collection: true
29
- attribute :issuance, Shale::Type::String, collection: true
30
- attribute :frequency, Shale::Type::String, collection: true
29
+ attribute :issuance, :string, collection: true
30
+ attribute :frequency, :string, collection: true
31
31
 
32
32
  xml do
33
33
  root "originInfo"
data/lib/loc_mods/part.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "date"
6
6
  require_relative "detail"
@@ -8,15 +8,15 @@ require_relative "extent_definition"
8
8
  require_relative "text"
9
9
 
10
10
  module LocMods
11
- class Part < BaseMapper
12
- attribute :id, Shale::Type::Value
13
- attribute :type, Shale::Type::String
14
- attribute :order, Shale::Type::Integer
15
- attribute :lang, Shale::Type::String
16
- attribute :script, Shale::Type::String
17
- attribute :transliteration, Shale::Type::String
18
- attribute :display_label, Shale::Type::String
19
- attribute :alt_rep_group, Shale::Type::String
11
+ class Part < Lutaml::Model::Serializable
12
+ attribute :id, :string
13
+ attribute :type, :string
14
+ attribute :order, :integer
15
+ attribute :lang, :string
16
+ attribute :script, :string
17
+ attribute :transliteration, :string
18
+ attribute :display_label, :string
19
+ attribute :alt_rep_group, :string
20
20
  attribute :detail, Detail, collection: true
21
21
  attribute :extent, ExtentDefinition, collection: true
22
22
  attribute :date, Date, collection: true
@@ -1,23 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "extent"
6
6
  require_relative "form"
7
7
  require_relative "physical_description_note"
8
8
 
9
9
  module LocMods
10
- class PhysicalDescription < BaseMapper
11
- attribute :lang, Shale::Type::String
12
- attribute :script, Shale::Type::String
13
- attribute :transliteration, Shale::Type::String
14
- attribute :display_label, Shale::Type::String
15
- attribute :alt_rep_group, Shale::Type::String
10
+ class PhysicalDescription < Lutaml::Model::Serializable
11
+ attribute :lang, :string
12
+ attribute :script, :string
13
+ attribute :transliteration, :string
14
+ attribute :display_label, :string
15
+ attribute :alt_rep_group, :string
16
16
  attribute :form, Form, collection: true
17
- attribute :reformatting_quality, Shale::Type::String, collection: true
18
- attribute :internet_media_type, Shale::Type::String, collection: true
17
+ attribute :reformatting_quality, :string, collection: true
18
+ attribute :internet_media_type, :string, collection: true
19
19
  attribute :extent, Extent, collection: true
20
- attribute :digital_origin, Shale::Type::String, collection: true
20
+ attribute :digital_origin, :string, collection: true
21
21
  attribute :note, PhysicalDescriptionNote, collection: true
22
22
 
23
23
  xml do
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class PhysicalDescriptionNote < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
10
- attribute :type_uri, Shale::Type::Value
11
- attribute :id, Shale::Type::Value
6
+ class PhysicalDescriptionNote < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
+ attribute :type_uri, :string
11
+ attribute :id, :string
12
12
 
13
13
  xml do
14
14
  root "physicalDescriptionNote"
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class PhysicalLocation < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
6
+ class PhysicalLocation < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
10
 
11
11
  xml do
12
12
  root "physicalLocation"
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "place_term"
6
6
 
7
7
  module LocMods
8
- class Place < BaseMapper
9
- attribute :supplied, Shale::Type::Value
8
+ class Place < Lutaml::Model::Serializable
9
+ attribute :supplied, :string
10
10
  attribute :place_term, PlaceTerm, collection: true
11
11
 
12
12
  xml do
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class PlaceTerm < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :authority_uri, Shale::Type::Value
9
- attribute :value_uri, Shale::Type::Value
10
- attribute :authority, Shale::Type::String
11
- attribute :type, Shale::Type::String
6
+ class PlaceTerm < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :authority_uri, :string
9
+ attribute :value_uri, :string
10
+ attribute :authority, :string
11
+ attribute :type, :string
12
12
 
13
13
  xml do
14
14
  root "placeTerm"
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class Publisher < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :authority, Shale::Type::String
9
- attribute :authority_uri, Shale::Type::Value
10
- attribute :value_uri, Shale::Type::Value
6
+ class Publisher < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :authority, :string
9
+ attribute :authority_uri, :string
10
+ attribute :value_uri, :string
11
11
 
12
12
  xml do
13
13
  root "publisher"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "abstract"
6
6
  require_relative "access_condition"
@@ -24,9 +24,9 @@ require_relative "title_info"
24
24
  require_relative "type_of_resource"
25
25
 
26
26
  module LocMods
27
- class Record < BaseMapper
28
- attribute :id, Shale::Type::Value
29
- attribute :version, Shale::Type::String
27
+ class Record < Lutaml::Model::Serializable
28
+ attribute :id, :string
29
+ attribute :version, :string
30
30
  attribute :abstract, Abstract, collection: true
31
31
  attribute :access_condition, AccessCondition, collection: true
32
32
  attribute :classification, Classification, collection: true
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class RecordContentSource < BaseMapper
7
- attribute :authority, Shale::Type::String
8
- attribute :content, Shale::Type::String
6
+ class RecordContentSource < Lutaml::Model::Serializable
7
+ attribute :authority, :string
8
+ attribute :content, :string
9
9
 
10
10
  xml do
11
11
  root "RecordContentSource"
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class RecordIdentifier < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :source, Shale::Type::String
6
+ class RecordIdentifier < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :source, :string
9
9
 
10
10
  xml do
11
11
  root "recordIdentifier"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "date"
6
6
  require_relative "language"
@@ -9,19 +9,19 @@ require_relative "record_identifier"
9
9
  require_relative "record_content_source"
10
10
 
11
11
  module LocMods
12
- class RecordInfo < BaseMapper
13
- attribute :lang, Shale::Type::String
14
- attribute :script, Shale::Type::String
15
- attribute :transliteration, Shale::Type::String
16
- attribute :display_label, Shale::Type::String
17
- attribute :alt_rep_group, Shale::Type::String
12
+ class RecordInfo < Lutaml::Model::Serializable
13
+ attribute :lang, :string
14
+ attribute :script, :string
15
+ attribute :transliteration, :string
16
+ attribute :display_label, :string
17
+ attribute :alt_rep_group, :string
18
18
  attribute :record_content_source, RecordContentSource, collection: true
19
19
  attribute :record_creation_date, Date, collection: true
20
20
  attribute :record_change_date, Date, collection: true
21
21
  attribute :record_identifier, RecordIdentifier, collection: true
22
22
  attribute :language_of_cataloging, Language, collection: true
23
- attribute :record_origin, Shale::Type::String, collection: true
24
- attribute :description_standard, Shale::Type::String, collection: true
23
+ attribute :record_origin, :string, collection: true
24
+ attribute :description_standard, :string, collection: true
25
25
  attribute :record_info_note, RecordInfoNote, collection: true
26
26
 
27
27
  xml do
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  module LocMods
6
- class RecordInfoNote < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :display_label, Shale::Type::String
9
- attribute :type, Shale::Type::String
10
- attribute :type_uri, Shale::Type::Value
11
- attribute :id, Shale::Type::Value
12
- attribute :alt_rep_group, Shale::Type::String
6
+ class RecordInfoNote < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :display_label, :string
9
+ attribute :type, :string
10
+ attribute :type_uri, :string
11
+ attribute :id, :string
12
+ attribute :alt_rep_group, :string
13
13
 
14
14
  xml do
15
15
  root "recordInfoNote"
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "hierarchical_part"
6
6
 
7
7
  module LocMods
8
- class Region < BaseMapper
8
+ class Region < Lutaml::Model::Serializable
9
9
  attribute :content, HierarchicalPart
10
- attribute :region_type, Shale::Type::Value
10
+ attribute :region_type, :string
11
11
 
12
12
  xml do
13
13
  root "region"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "base_mapper"
3
+ require "lutaml/model"
4
4
 
5
5
  require_relative "abstract"
6
6
  require_relative "access_condition"
@@ -23,14 +23,14 @@ require_relative "title_info"
23
23
  require_relative "type_of_resource"
24
24
 
25
25
  module LocMods
26
- class RelatedItem < BaseMapper
27
- attribute :type, Shale::Type::String
28
- attribute :other_type, Shale::Type::String
29
- attribute :other_type_auth, Shale::Type::String
30
- attribute :other_type_auth_uri, Shale::Type::String
31
- attribute :other_type_uri, Shale::Type::String
32
- attribute :display_label, Shale::Type::String
33
- attribute :id, Shale::Type::Value
26
+ class RelatedItem < Lutaml::Model::Serializable
27
+ attribute :type, :string
28
+ attribute :other_type, :string
29
+ attribute :other_type_auth, :string
30
+ attribute :other_type_auth_uri, :string
31
+ attribute :other_type_uri, :string
32
+ attribute :display_label, :string
33
+ attribute :id, :string
34
34
  attribute :abstract, Abstract, collection: true
35
35
  attribute :access_condition, AccessCondition, collection: true
36
36
  attribute :classification, Classification, collection: true
@@ -51,7 +51,7 @@ module LocMods
51
51
  attribute :target_audience, TargetAudience, collection: true
52
52
  attribute :title_info, TitleInfo, collection: true
53
53
  attribute :type_of_resource, TypeOfResource, collection: true
54
- attribute :href, Shale::Type::String
54
+ attribute :href, :string
55
55
 
56
56
  xml do
57
57
  root "relatedItem"