cdmbl 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1a2f19c0067241fa3a48fae51ef1037eaff9eae
4
- data.tar.gz: 0d7976ba3295a2bd5a078f6ce82b332346f4e585
3
+ metadata.gz: f71820a90068da2a90ec3777846af857da6d6c1e
4
+ data.tar.gz: b6561f2a4ef980bc710e91ee23076418ca232701
5
5
  SHA512:
6
- metadata.gz: 43df324f1b75b2d86ea15b170450cf57fc1a304968f0174716074749865f39d5f8c99a46a560b7842361abeb61053e76fdb2835b4600912284804d712a6d04bc
7
- data.tar.gz: f7f1ecaf33619f6bdad8a50d5cef9f92a35c543f2758e2eb396214e04510268cf320141f22f0f2ec0761f38ef4912972d02e1698dfcf46d0b58d24a66be79f42
6
+ metadata.gz: e842c4c2f36f46e6f43fdbd21f2cb1d35733bf902695560cb435c758c4ddbfd8bd7cbb5cd8b30cb572a7dab3474607a932da689f77fc9e4143573f23157d6db5
7
+ data.tar.gz: eef4836fb3480a7112f533ef0f4197782930999e39ee487e69ae19bb06e387d8a678907f022adc9edb626efd2b112089dd911642b6478d566e930babb574f32d
@@ -8,6 +8,12 @@ module CDMBL
8
8
  end
9
9
  end
10
10
 
11
+ class KeywordFormatter
12
+ def self.format(value)
13
+ value['specif'].split(';').concat(value['subjec'].split(';')).uniq
14
+ end
15
+ end
16
+
11
17
  class IDFormatter
12
18
  def self.format(value)
13
19
  value.split('/').join(':')
@@ -53,6 +53,9 @@ module CDMBL
53
53
  {dest_path: 'collection_name_ssi', origin_path: '/', formatters: [AddSetSpecFormatter, CollectionNameFormatter]},
54
54
  {dest_path: 'collection_name_tei', origin_path: '/', formatters: [AddSetSpecFormatter, CollectionNameFormatter]},
55
55
  {dest_path: 'collection_description_tei', origin_path: '/', formatters: [AddSetSpecFormatter, CollectionDescriptionFormatter, FilterBadCollections]},
56
+ {dest_path: 'parent_collection_name_ssi', origin_path: 'par', formatters: [StripFormatter]},
57
+ {dest_path: 'parent_collection_name_tei', origin_path: 'par', formatters: [StripFormatter]},
58
+ {dest_path: 'parent_collection_description_tei', origin_path: 'par', formatters: [StripFormatter]},
56
59
  {dest_path: 'title_tei', origin_path: 'title', formatters: [StripFormatter]},
57
60
  {dest_path: 'title_ssi', origin_path: 'title', formatters: [StripFormatter]},
58
61
  {dest_path: 'title_sort', origin_path: 'title', formatters: [StripFormatter]},
@@ -84,7 +87,10 @@ module CDMBL
84
87
  {dest_path: 'subject_unstem_search', origin_path: 'subjec', formatters: [StripFormatter]},
85
88
  {dest_path: 'subject_teim', origin_path: 'subjec', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
86
89
  {dest_path: 'subject_ssim', origin_path: 'subjec', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
87
- {dest_path: 'city_ssi', origin_path: 'city', formatters: [StripFormatter]},
90
+ {dest_path: 'keyword_unstem_search', origin_path: '/', formatters: [KeywordFormatter, StripFormatter]},
91
+ {dest_path: 'keyword_teim', origin_path: '/', formatters: [KeywordFormatter, StripFormatter]},
92
+ {dest_path: 'keyword_ssim', origin_path: '/', formatters: [KeywordFormatter, StripFormatter]},
93
+ {dest_path: 'city_ssim', origin_path: 'city', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
88
94
  {dest_path: 'city_unstem_search', origin_path: 'city', formatters: [StripFormatter]},
89
95
  {dest_path: 'district_ssi', origin_path: 'distri', formatters: [StripFormatter]},
90
96
  {dest_path: 'district_unstem_search', origin_path: 'distri', formatters: [StripFormatter]},
@@ -139,7 +145,8 @@ module CDMBL
139
145
  {dest_path: 'geographic_feature_ssim', origin_path: 'geogra', formatters: [Titlieze, StripFormatter, SplitFormatter, StripFormatter]},
140
146
  {dest_path: 'geographic_feature_teim', origin_path: 'geogra', formatters: [StripFormatter]},
141
147
  {dest_path: 'geographic_feature_unstem_search', origin_path: 'geogra', formatters: [StripFormatter]},
142
- {dest_path: 'compound_objects_ts', origin_path: 'page', formatters: [ToJsonFormatter]}
148
+ {dest_path: 'compound_objects_ts', origin_path: 'page', formatters: [ToJsonFormatter]},
149
+ {dest_path: 'geonam_ssi', origin_path: 'geonam', formatters: [StripFormatter]}
143
150
  ]
144
151
  end
145
152
  end
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path