loc_mods 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +46 -1
- data/exe/loc-mods +6 -0
- data/lib/loc_mods/abstract.rb +2 -2
- data/lib/loc_mods/access_condition.rb +2 -2
- data/lib/loc_mods/alternative_name.rb +2 -2
- data/lib/loc_mods/area.rb +2 -2
- data/lib/loc_mods/base_mapper.rb +9 -0
- data/lib/loc_mods/cartographic_extension.rb +2 -2
- data/lib/loc_mods/cartographics.rb +2 -2
- data/lib/loc_mods/city_section.rb +2 -2
- data/lib/loc_mods/classification.rb +2 -2
- data/lib/loc_mods/cli.rb +101 -0
- data/lib/loc_mods/collection.rb +2 -2
- data/lib/loc_mods/comparable_mapper.rb +96 -0
- data/lib/loc_mods/copy_information.rb +2 -2
- data/lib/loc_mods/date.rb +2 -2
- data/lib/loc_mods/date_other.rb +2 -2
- data/lib/loc_mods/detail.rb +2 -2
- data/lib/loc_mods/edition.rb +2 -2
- data/lib/loc_mods/enumeration_and_chronology.rb +2 -2
- data/lib/loc_mods/extent.rb +2 -2
- data/lib/loc_mods/extent_definition.rb +2 -2
- data/lib/loc_mods/form.rb +2 -2
- data/lib/loc_mods/genre.rb +2 -2
- data/lib/loc_mods/geographic_code.rb +2 -2
- data/lib/loc_mods/hierarchical_geographic.rb +2 -2
- data/lib/loc_mods/hierarchical_part.rb +2 -2
- data/lib/loc_mods/holding_simple.rb +2 -2
- data/lib/loc_mods/identifier.rb +2 -2
- data/lib/loc_mods/item_identifier.rb +2 -2
- data/lib/loc_mods/language.rb +2 -2
- data/lib/loc_mods/language_term.rb +2 -2
- data/lib/loc_mods/location.rb +2 -2
- data/lib/loc_mods/name.rb +2 -2
- data/lib/loc_mods/name_part.rb +2 -2
- data/lib/loc_mods/non_sort.rb +2 -2
- data/lib/loc_mods/note.rb +2 -2
- data/lib/loc_mods/occupation.rb +2 -2
- data/lib/loc_mods/origin_info.rb +2 -2
- data/lib/loc_mods/part.rb +2 -2
- data/lib/loc_mods/physical_description.rb +2 -2
- data/lib/loc_mods/physical_description_note.rb +2 -2
- data/lib/loc_mods/physical_location.rb +2 -2
- data/lib/loc_mods/place.rb +2 -2
- data/lib/loc_mods/place_term.rb +2 -2
- data/lib/loc_mods/publisher.rb +2 -2
- data/lib/loc_mods/record.rb +2 -2
- data/lib/loc_mods/record_content_source.rb +2 -2
- data/lib/loc_mods/record_identifier.rb +2 -2
- data/lib/loc_mods/record_info.rb +2 -2
- data/lib/loc_mods/record_info_note.rb +2 -2
- data/lib/loc_mods/region.rb +2 -2
- data/lib/loc_mods/related_item.rb +2 -2
- data/lib/loc_mods/role.rb +2 -2
- data/lib/loc_mods/role_term.rb +2 -2
- data/lib/loc_mods/script_term.rb +2 -2
- data/lib/loc_mods/string_plus_language.rb +2 -2
- data/lib/loc_mods/string_plus_language_plus_authority.rb +2 -2
- data/lib/loc_mods/string_plus_language_plus_supplied.rb +2 -2
- data/lib/loc_mods/subject.rb +2 -2
- data/lib/loc_mods/subject_name.rb +2 -2
- data/lib/loc_mods/subject_title_info.rb +2 -2
- data/lib/loc_mods/table_of_contents.rb +2 -2
- data/lib/loc_mods/target_audience.rb +2 -2
- data/lib/loc_mods/temporal.rb +2 -2
- data/lib/loc_mods/text.rb +2 -2
- data/lib/loc_mods/title_info.rb +2 -2
- data/lib/loc_mods/type_of_resource.rb +2 -2
- data/lib/loc_mods/url.rb +2 -2
- data/lib/loc_mods/version.rb +1 -1
- metadata +22 -3
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class LanguageTerm <
|
6
|
+
class LanguageTerm < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :authority_uri, Shale::Type::Value
|
9
9
|
attribute :value_uri, Shale::Type::Value
|
data/lib/loc_mods/location.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "cartographic_extension"
|
6
6
|
require_relative "holding_simple"
|
@@ -8,7 +8,7 @@ require_relative "physical_location"
|
|
8
8
|
require_relative "url"
|
9
9
|
|
10
10
|
module LocMods
|
11
|
-
class Location <
|
11
|
+
class Location < BaseMapper
|
12
12
|
attribute :lang, Shale::Type::String
|
13
13
|
attribute :script, Shale::Type::String
|
14
14
|
attribute :transliteration, Shale::Type::String
|
data/lib/loc_mods/name.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "alternative_name"
|
6
6
|
require_relative "identifier"
|
@@ -8,7 +8,7 @@ require_relative "name_part"
|
|
8
8
|
require_relative "role"
|
9
9
|
|
10
10
|
module LocMods
|
11
|
-
class Name <
|
11
|
+
class Name < BaseMapper
|
12
12
|
attribute :id, Shale::Type::Value
|
13
13
|
attribute :authority, Shale::Type::String
|
14
14
|
attribute :authority_uri, Shale::Type::Value
|
data/lib/loc_mods/name_part.rb
CHANGED
data/lib/loc_mods/non_sort.rb
CHANGED
data/lib/loc_mods/note.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class Note <
|
6
|
+
class Note < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
data/lib/loc_mods/occupation.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
6
|
# LocMods::StringPlusLanguagePlusAuthority
|
7
|
-
class Occupation <
|
7
|
+
class Occupation < BaseMapper
|
8
8
|
attribute :content, Shale::Type::String
|
9
9
|
attribute :authority, Shale::Type::String
|
10
10
|
attribute :authority_uri, Shale::Type::Value
|
data/lib/loc_mods/origin_info.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "date"
|
6
6
|
require_relative "date_other"
|
@@ -9,7 +9,7 @@ require_relative "publisher"
|
|
9
9
|
require_relative "edition"
|
10
10
|
|
11
11
|
module LocMods
|
12
|
-
class OriginInfo <
|
12
|
+
class OriginInfo < BaseMapper
|
13
13
|
attribute :lang, Shale::Type::String
|
14
14
|
attribute :script, Shale::Type::String
|
15
15
|
attribute :transliteration, Shale::Type::String
|
data/lib/loc_mods/part.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "date"
|
6
6
|
require_relative "detail"
|
@@ -8,7 +8,7 @@ require_relative "extent_definition"
|
|
8
8
|
require_relative "text"
|
9
9
|
|
10
10
|
module LocMods
|
11
|
-
class Part <
|
11
|
+
class Part < BaseMapper
|
12
12
|
attribute :id, Shale::Type::Value
|
13
13
|
attribute :type, Shale::Type::String
|
14
14
|
attribute :order, Shale::Type::Integer
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
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 <
|
10
|
+
class PhysicalDescription < BaseMapper
|
11
11
|
attribute :lang, Shale::Type::String
|
12
12
|
attribute :script, Shale::Type::String
|
13
13
|
attribute :transliteration, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class PhysicalDescriptionNote <
|
6
|
+
class PhysicalDescriptionNote < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class PhysicalLocation <
|
6
|
+
class PhysicalLocation < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
data/lib/loc_mods/place.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "place_term"
|
6
6
|
|
7
7
|
module LocMods
|
8
|
-
class Place <
|
8
|
+
class Place < BaseMapper
|
9
9
|
attribute :supplied, Shale::Type::Value
|
10
10
|
attribute :place_term, PlaceTerm, collection: true
|
11
11
|
|
data/lib/loc_mods/place_term.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class PlaceTerm <
|
6
|
+
class PlaceTerm < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :authority_uri, Shale::Type::Value
|
9
9
|
attribute :value_uri, Shale::Type::Value
|
data/lib/loc_mods/publisher.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class Publisher <
|
6
|
+
class Publisher < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :authority, Shale::Type::String
|
9
9
|
attribute :authority_uri, Shale::Type::Value
|
data/lib/loc_mods/record.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "abstract"
|
6
6
|
require_relative "access_condition"
|
@@ -24,7 +24,7 @@ require_relative "title_info"
|
|
24
24
|
require_relative "type_of_resource"
|
25
25
|
|
26
26
|
module LocMods
|
27
|
-
class Record <
|
27
|
+
class Record < BaseMapper
|
28
28
|
attribute :id, Shale::Type::Value
|
29
29
|
attribute :version, Shale::Type::String
|
30
30
|
attribute :abstract, Abstract, collection: true
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class RecordContentSource <
|
6
|
+
class RecordContentSource < BaseMapper
|
7
7
|
attribute :authority, Shale::Type::String
|
8
8
|
attribute :content, Shale::Type::String
|
9
9
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class RecordIdentifier <
|
6
|
+
class RecordIdentifier < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :source, Shale::Type::String
|
9
9
|
|
data/lib/loc_mods/record_info.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "date"
|
6
6
|
require_relative "language"
|
@@ -9,7 +9,7 @@ require_relative "record_identifier"
|
|
9
9
|
require_relative "record_content_source"
|
10
10
|
|
11
11
|
module LocMods
|
12
|
-
class RecordInfo <
|
12
|
+
class RecordInfo < BaseMapper
|
13
13
|
attribute :lang, Shale::Type::String
|
14
14
|
attribute :script, Shale::Type::String
|
15
15
|
attribute :transliteration, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class RecordInfoNote <
|
6
|
+
class RecordInfoNote < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
data/lib/loc_mods/region.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "hierarchical_part"
|
6
6
|
|
7
7
|
module LocMods
|
8
|
-
class Region <
|
8
|
+
class Region < BaseMapper
|
9
9
|
attribute :content, HierarchicalPart
|
10
10
|
attribute :region_type, Shale::Type::Value
|
11
11
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "abstract"
|
6
6
|
require_relative "access_condition"
|
@@ -23,7 +23,7 @@ require_relative "title_info"
|
|
23
23
|
require_relative "type_of_resource"
|
24
24
|
|
25
25
|
module LocMods
|
26
|
-
class RelatedItem <
|
26
|
+
class RelatedItem < BaseMapper
|
27
27
|
attribute :type, Shale::Type::String
|
28
28
|
attribute :other_type, Shale::Type::String
|
29
29
|
attribute :other_type_auth, Shale::Type::String
|
data/lib/loc_mods/role.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "role_term"
|
6
6
|
|
7
7
|
module LocMods
|
8
|
-
class Role <
|
8
|
+
class Role < BaseMapper
|
9
9
|
attribute :role_term, RoleTerm, collection: true
|
10
10
|
|
11
11
|
xml do
|
data/lib/loc_mods/role_term.rb
CHANGED
data/lib/loc_mods/script_term.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class StringPlusLanguage <
|
6
|
+
class StringPlusLanguage < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :lang, Shale::Type::String
|
9
9
|
attribute :script, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class StringPlusLanguagePlusAuthority <
|
6
|
+
class StringPlusLanguagePlusAuthority < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :authority, Shale::Type::String
|
9
9
|
attribute :authority_uri, Shale::Type::Value
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class StringPlusLanguagePlusSupplied <
|
6
|
+
class StringPlusLanguagePlusSupplied < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :supplied, Shale::Type::Value
|
9
9
|
end
|
data/lib/loc_mods/subject.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "cartographics"
|
6
6
|
require_relative "genre"
|
@@ -12,7 +12,7 @@ require_relative "temporal"
|
|
12
12
|
require_relative "occupation"
|
13
13
|
|
14
14
|
module LocMods
|
15
|
-
class Subject <
|
15
|
+
class Subject < BaseMapper
|
16
16
|
attribute :id, Shale::Type::Value
|
17
17
|
attribute :authority, Shale::Type::String
|
18
18
|
attribute :authority_uri, Shale::Type::Value
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "identifier"
|
6
6
|
require_relative "name_part"
|
7
7
|
require_relative "role"
|
8
8
|
|
9
9
|
module LocMods
|
10
|
-
class SubjectName <
|
10
|
+
class SubjectName < BaseMapper
|
11
11
|
attribute :type, Shale::Type::String
|
12
12
|
attribute :id, Shale::Type::Value
|
13
13
|
attribute :authority, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class SubjectTitleInfo <
|
6
|
+
class SubjectTitleInfo < BaseMapper
|
7
7
|
attribute :id, Shale::Type::Value
|
8
8
|
attribute :authority, Shale::Type::String
|
9
9
|
attribute :authority_uri, Shale::Type::Value
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class TableOfContents <
|
6
|
+
class TableOfContents < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class TargetAudience <
|
6
|
+
class TargetAudience < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :alt_rep_group, Shale::Type::String
|
data/lib/loc_mods/temporal.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
require_relative "date"
|
6
6
|
|
7
7
|
module LocMods
|
8
|
-
class Temporal <
|
8
|
+
class Temporal < BaseMapper
|
9
9
|
attribute :content, Date
|
10
10
|
attribute :authority, Shale::Type::String
|
11
11
|
attribute :authority_uri, Shale::Type::Value
|
data/lib/loc_mods/text.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class Text <
|
6
|
+
class Text < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :display_label, Shale::Type::String
|
9
9
|
attribute :type, Shale::Type::String
|
data/lib/loc_mods/title_info.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
require_relative "non_sort"
|
5
5
|
|
6
6
|
module LocMods
|
7
|
-
class TitleInfo <
|
7
|
+
class TitleInfo < BaseMapper
|
8
8
|
attribute :type, Shale::Type::String
|
9
9
|
attribute :other_type, Shale::Type::Value
|
10
10
|
attribute :supplied, Shale::Type::Value
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class TypeOfResource <
|
6
|
+
class TypeOfResource < BaseMapper
|
7
7
|
attribute :content, Shale::Type::String
|
8
8
|
attribute :collection, Shale::Type::Value
|
9
9
|
attribute :manuscript, Shale::Type::Value
|
data/lib/loc_mods/url.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require_relative "base_mapper"
|
4
4
|
|
5
5
|
module LocMods
|
6
|
-
class Url <
|
6
|
+
class Url < BaseMapper
|
7
7
|
attribute :content, Shale::Type::Value
|
8
8
|
attribute :date_last_accessed, Shale::Type::String
|
9
9
|
attribute :display_label, Shale::Type::String
|
data/lib/loc_mods/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loc_mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,7 +125,8 @@ dependencies:
|
|
111
125
|
description: Library of Congress MODS / MADS parser
|
112
126
|
email:
|
113
127
|
- open.source@ribose.com
|
114
|
-
executables:
|
128
|
+
executables:
|
129
|
+
- loc-mods
|
115
130
|
extensions: []
|
116
131
|
extra_rdoc_files: []
|
117
132
|
files:
|
@@ -120,16 +135,20 @@ files:
|
|
120
135
|
- CODE_OF_CONDUCT.md
|
121
136
|
- README.adoc
|
122
137
|
- Rakefile
|
138
|
+
- exe/loc-mods
|
123
139
|
- lib/loc_mods.rb
|
124
140
|
- lib/loc_mods/abstract.rb
|
125
141
|
- lib/loc_mods/access_condition.rb
|
126
142
|
- lib/loc_mods/alternative_name.rb
|
127
143
|
- lib/loc_mods/area.rb
|
144
|
+
- lib/loc_mods/base_mapper.rb
|
128
145
|
- lib/loc_mods/cartographic_extension.rb
|
129
146
|
- lib/loc_mods/cartographics.rb
|
130
147
|
- lib/loc_mods/city_section.rb
|
131
148
|
- lib/loc_mods/classification.rb
|
149
|
+
- lib/loc_mods/cli.rb
|
132
150
|
- lib/loc_mods/collection.rb
|
151
|
+
- lib/loc_mods/comparable_mapper.rb
|
133
152
|
- lib/loc_mods/copy_information.rb
|
134
153
|
- lib/loc_mods/date.rb
|
135
154
|
- lib/loc_mods/date_other.rb
|