loc_mods 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.rubocop_todo.yml +83 -0
  4. data/README.adoc +48 -6
  5. data/lib/loc_mods/abstract.rb +9 -9
  6. data/lib/loc_mods/access_condition.rb +11 -11
  7. data/lib/loc_mods/alternative_name.rb +10 -10
  8. data/lib/loc_mods/area.rb +3 -3
  9. data/lib/loc_mods/cartographic_extension.rb +4 -4
  10. data/lib/loc_mods/cartographics.rb +8 -8
  11. data/lib/loc_mods/city_section.rb +3 -3
  12. data/lib/loc_mods/classification.rb +8 -8
  13. data/lib/loc_mods/cli.rb +48 -80
  14. data/lib/loc_mods/collection.rb +3 -3
  15. data/lib/loc_mods/copy_information.rb +5 -5
  16. data/lib/loc_mods/date.rb +8 -8
  17. data/lib/loc_mods/date_other.rb +4 -4
  18. data/lib/loc_mods/detail.rb +7 -7
  19. data/lib/loc_mods/edition.rb +4 -4
  20. data/lib/loc_mods/enumeration_and_chronology.rb +4 -4
  21. data/lib/loc_mods/extent.rb +4 -4
  22. data/lib/loc_mods/extent_definition.rb +7 -7
  23. data/lib/loc_mods/form.rb +5 -5
  24. data/lib/loc_mods/genre.rb +8 -8
  25. data/lib/loc_mods/geographic_code.rb +6 -6
  26. data/lib/loc_mods/hierarchical_geographic.rb +6 -6
  27. data/lib/loc_mods/hierarchical_part.rb +8 -8
  28. data/lib/loc_mods/holding_simple.rb +2 -2
  29. data/lib/loc_mods/identifier.rb +8 -8
  30. data/lib/loc_mods/item_identifier.rb +4 -4
  31. data/lib/loc_mods/language.rb +9 -9
  32. data/lib/loc_mods/language_term.rb +7 -7
  33. data/lib/loc_mods/location.rb +8 -8
  34. data/lib/loc_mods/name.rb +19 -19
  35. data/lib/loc_mods/name_part.rb +4 -4
  36. data/lib/loc_mods/non_sort.rb +4 -4
  37. data/lib/loc_mods/note.rb +7 -7
  38. data/lib/loc_mods/occupation.rb +6 -6
  39. data/lib/loc_mods/origin_info.rb +10 -10
  40. data/lib/loc_mods/part.rb +10 -10
  41. data/lib/loc_mods/physical_description.rb +10 -10
  42. data/lib/loc_mods/physical_description_note.rb +7 -7
  43. data/lib/loc_mods/physical_location.rb +5 -5
  44. data/lib/loc_mods/place.rb +3 -3
  45. data/lib/loc_mods/place_term.rb +7 -7
  46. data/lib/loc_mods/publisher.rb +6 -6
  47. data/lib/loc_mods/record.rb +4 -4
  48. data/lib/loc_mods/record_content_source.rb +4 -4
  49. data/lib/loc_mods/record_identifier.rb +4 -4
  50. data/lib/loc_mods/record_info.rb +9 -9
  51. data/lib/loc_mods/record_info_note.rb +8 -8
  52. data/lib/loc_mods/region.rb +3 -3
  53. data/lib/loc_mods/related_item.rb +10 -10
  54. data/lib/loc_mods/role.rb +2 -2
  55. data/lib/loc_mods/role_term.rb +4 -4
  56. data/lib/loc_mods/script_term.rb +4 -4
  57. data/lib/loc_mods/string_plus_language.rb +6 -6
  58. data/lib/loc_mods/string_plus_language_plus_authority.rb +6 -6
  59. data/lib/loc_mods/string_plus_language_plus_supplied.rb +4 -4
  60. data/lib/loc_mods/subject.rb +15 -15
  61. data/lib/loc_mods/subject_name.rb +14 -14
  62. data/lib/loc_mods/subject_title_info.rb +16 -16
  63. data/lib/loc_mods/table_of_contents.rb +9 -9
  64. data/lib/loc_mods/target_audience.rb +5 -5
  65. data/lib/loc_mods/temporal.rb +5 -5
  66. data/lib/loc_mods/text.rb +5 -5
  67. data/lib/loc_mods/title_info.rb +22 -22
  68. data/lib/loc_mods/type_of_resource.rb +8 -8
  69. data/lib/loc_mods/url.rb +8 -8
  70. data/lib/loc_mods/version.rb +1 -1
  71. data/lib/loc_mods.rb +7 -6
  72. data/references/allrecords-MODS.xml +1 -1
  73. metadata +5 -6
  74. data/lib/loc_mods/base_mapper.rb +0 -26
  75. data/lib/loc_mods/comparable_mapper.rb +0 -110
@@ -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 EnumerationAndChronology < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :unit_type, Shale::Type::String
6
+ class EnumerationAndChronology < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :unit_type, :string
9
9
 
10
10
  xml do
11
11
  root "enumerationAndChronology"
@@ -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 Extent < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :unit, Shale::Type::Value
6
+ class Extent < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :unit, :string
9
9
 
10
10
  xml do
11
11
  root "extent"
@@ -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 ExtentDefinition < BaseMapper
7
- attribute :unit, Shale::Type::String
8
- attribute :start, Shale::Type::String
9
- attribute :end, Shale::Type::String
10
- attribute :total, Shale::Type::Integer
11
- attribute :list, Shale::Type::String
6
+ class ExtentDefinition < Lutaml::Model::Serializable
7
+ attribute :unit, :string
8
+ attribute :start, :string
9
+ attribute :end, :string
10
+ attribute :total, :integer
11
+ attribute :list, :string
12
12
 
13
13
  xml do
14
14
  root "extentDefinition"
data/lib/loc_mods/form.rb CHANGED
@@ -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 Form < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
9
- attribute :authority, Shale::Type::String
6
+ class Form < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
+ attribute :authority, :string
10
10
 
11
11
  xml do
12
12
  root "form"
@@ -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 Genre < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :type, Shale::Type::String
9
- attribute :display_label, Shale::Type::String
10
- attribute :alt_rep_group, Shale::Type::String
11
- attribute :usage, Shale::Type::String
12
- attribute :authority, Shale::Type::String
6
+ class Genre < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :type, :string
9
+ attribute :display_label, :string
10
+ attribute :alt_rep_group, :string
11
+ attribute :usage, :string
12
+ attribute :authority, :string
13
13
 
14
14
  xml do
15
15
  root "genre"
@@ -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 GeographicCode < 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
6
+ class GeographicCode < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :authority_uri, :string
9
+ attribute :value_uri, :string
10
+ attribute :authority, :string
11
11
 
12
12
  xml do
13
13
  root "geographicCode"
@@ -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 "area"
6
6
  require_relative "city_section"
@@ -8,14 +8,14 @@ require_relative "hierarchical_part"
8
8
  require_relative "region"
9
9
 
10
10
  module LocMods
11
- class HierarchicalGeographic < BaseMapper
12
- attribute :authority, Shale::Type::String
13
- attribute :authority_uri, Shale::Type::Value
14
- attribute :value_uri, Shale::Type::Value
11
+ class HierarchicalGeographic < Lutaml::Model::Serializable
12
+ attribute :authority, :string
13
+ attribute :authority_uri, :string
14
+ attribute :value_uri, :string
15
15
  attribute :extra_terrestrial_area, HierarchicalPart, collection: true
16
16
  attribute :continent, HierarchicalPart, collection: true
17
17
  attribute :country, HierarchicalPart, collection: true
18
- attribute :province, Shale::Type::String, collection: true
18
+ attribute :province, :string, collection: true
19
19
  attribute :region, Region, collection: true
20
20
  attribute :state, HierarchicalPart, collection: true
21
21
  attribute :territory, HierarchicalPart, collection: true
@@ -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 HierarchicalPart < BaseMapper
7
- attribute :content, Shale::Type::String
8
- attribute :level, Shale::Type::Value
9
- attribute :period, Shale::Type::Value
10
- attribute :authority, Shale::Type::String
11
- attribute :authority_uri, Shale::Type::Value
12
- attribute :value_uri, Shale::Type::Value
6
+ class HierarchicalPart < Lutaml::Model::Serializable
7
+ attribute :content, :string
8
+ attribute :level, :string
9
+ attribute :period, :string
10
+ attribute :authority, :string
11
+ attribute :authority_uri, :string
12
+ attribute :value_uri, :string
13
13
 
14
14
  xml do
15
15
  root "territory"
@@ -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
  require_relative "copy_information"
6
6
 
7
7
  module LocMods
8
- class HoldingSimple < BaseMapper
8
+ class HoldingSimple < Lutaml::Model::Serializable
9
9
  attribute :copy_information, CopyInformation, collection: true
10
10
 
11
11
  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 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"