cdmbl 0.12.7 → 0.12.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea26b8d1841ae3ab628bf11e1f6c9d69e8d537c9
4
- data.tar.gz: ecdac0f6244bee51d2276a7ed2cef4be14991f90
3
+ metadata.gz: 42fb39b5c448746c3fc933d47745f88a0fbb8cfb
4
+ data.tar.gz: 3161eeb1ff9219605fd1e08196bf6f905ec56340
5
5
  SHA512:
6
- metadata.gz: 3430f3cbf3cf8cd9061cc40d8be5cc62f817b28cf53f8330940051642a1e797a3402c13ca6b72b8ea6a9fcb2d9775f40d5f799409689b282108cf8c7d32aeec6
7
- data.tar.gz: ada00c4bb2a0de695cef232b2ab12b54397127acc7affe7d8d63b05789627684df6cbcd114a7f0ed4b6a6ac8bec8602999735c3b696f722e641ef9e6af2a5d86
6
+ metadata.gz: 0e81dfb04c1a70e7700b36e60f53397beee537310a00dc692ad803b3bca18f5b06340ca253ad96994d23bfa33d8ad8f5accd04abcbf6857f27f7d8f55d690fa5
7
+ data.tar.gz: d62514e24f91556931b6bb8c06ef0ed63c7055b286d8c330abfc50c8ac67167e2edf02a510220cdf71336d6cf93a407e01581139a3b88d27461dab72c44b903c
@@ -39,9 +39,9 @@ module CDMBL
39
39
  record['page'].nil?
40
40
  # Get just the compound data
41
41
  end.map do |record|
42
- record['page'].map do |page|
42
+ record['page'].each_with_index.map do |page, i|
43
43
  # Associate each compound child with its parent
44
- page.merge!('parent_id' => record['id'], 'record_type' => 'secondary')
44
+ page.merge!('parent_id' => record['id'], 'record_type' => 'secondary', 'child_index' => i)
45
45
  end
46
46
  end.flatten
47
47
  end
@@ -173,7 +173,8 @@ module CDMBL
173
173
  {dest_path: 'placename_ssim', origin_path: 'geonam', formatters: [GeoNameID, GeoNameIDToJson, GeoNameToPlaceName]},
174
174
  {dest_path: 'placename_unstem_search', origin_path: 'geonam', formatters: [GeoNameID, GeoNameIDToJson, GeoNameToPlaceName]},
175
175
  {dest_path: 'table_ssim', origin_path: 'table', formatters: [StripFormatter, SplitFormatter, StripFormatter]},
176
- {dest_path: 'umedia_ssi', origin_path: 'umedia', formatters: [StripFormatter]}
176
+ {dest_path: 'umedia_ssi', origin_path: 'umedia', formatters: [StripFormatter]},
177
+ {dest_path: 'child_index', origin_path: 'child_index', formatters: []}
177
178
  ]
178
179
  end
179
180
  end
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.12.7"
2
+ VERSION = "0.12.8"
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.12.7
4
+ version: 0.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2018-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path