search_solr_tools 7.0.0 → 7.1.0

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
  SHA256:
3
- metadata.gz: 530f796b476abca9b117b20772a9e48f9d3e5d8cb61d86d4ca5970358e8ae327
4
- data.tar.gz: 761014cbd63831a690a41bb33e1d2502d594b4b912c4b37dfb5bef12af8b7c5a
3
+ metadata.gz: 06c1b12c76f3c9cfdd99f05f85cce8a24c6118cd1dfcbfc8ace538a32865d36f
4
+ data.tar.gz: bd22205a6833f05d4d96fa43cdc91b5b3d45452f658ccf597ac3bbd26ac40abc
5
5
  SHA512:
6
- metadata.gz: cd8c55dcbf7429734006d7d9e1f44f212053d3047e00f6d299830bf3eaa042ae0f618f38671aa6908237788408fc5fede53cba6ec26c6b7ab8a462a142c39ac6
7
- data.tar.gz: f95560780bf47eb72e54a93a5195a59ba6a3dec20dc6e297e62045a0ab965821a634d4a76f44adbd05e779511c5f3e4b78fa982711f65c788aaccdd96dee0952
6
+ metadata.gz: 6df6573622d4643676f1334b15aa4184f15403bc8f90f8a8cd116c25aa86202c6edc04a8acb9ef4ae428e49bb5429b2fad5b1ecd1afbf5bf5557af38eca28285
7
+ data.tar.gz: e75b60f41f1c4e5f8b2e7ad14e34a58fa20ba3af5d45b56fccf6914db51f108d4c015a26a139d21ed30c2cd9c06634f73c5a637043f336a210ca37f00625877c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v7.1.0 (2023-10-11)
2
+
3
+ - Updating harvesting to harvest storage system and spatial coverage
4
+ into separate facets, instead of a combined facet_featured facet
5
+
1
6
  ## v7.0.0 (2023-10-09)
2
7
 
3
8
  - Updating harvesting to include cumulus value
@@ -55,7 +55,8 @@ module SearchSolrTools
55
55
  'facet_temporal_resolution' => translate_temporal_resolution_facet_values(json_doc['parameters']),
56
56
  'facet_spatial_resolution' => translate_spatial_resolution_facet_values(json_doc['parameters']),
57
57
  'sponsored_programs' => translate_internal_datacenters(json_doc['internalDataCenters']),
58
- 'facet_featured' => translate_featured(json_doc, spatial_coverages)
58
+ 'facet_storage_location' => translate_storage_location(json_doc),
59
+ 'facet_spatial_coverage' => Helpers::TranslateSpatialCoverage.geojson_to_global_facet(spatial_coverages)
59
60
  )
60
61
  end
61
62
  # rubocop:enable Metrics/MethodLength
@@ -205,17 +206,13 @@ module SearchSolrTools
205
206
  json_strings.uniq
206
207
  end
207
208
 
208
- def translate_featured(json, spatial_coverages)
209
- facet_featured = []
209
+ def translate_storage_location(json)
210
+ facet_storage = []
210
211
 
211
212
  # Add the Earthdata Cloud feature
212
- facet_featured << 'In Earthdata Cloud' if json['cumulus']
213
+ facet_storage << 'In Earthdata Cloud' if json['cumulus']
213
214
 
214
- # Add the "Global" spatial coverage to this facet
215
- global = Helpers::TranslateSpatialCoverage.geojson_to_global_facet(spatial_coverages)
216
- facet_featured << global unless global.nil?
217
-
218
- facet_featured
215
+ facet_storage
219
216
  end
220
217
 
221
218
  def generate_data_citation_creators(data_citation)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SearchSolrTools
4
- VERSION = '7.0.0'
4
+ VERSION = '7.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_solr_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Chalstrom
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2023-10-09 00:00:00.000000000 Z
17
+ date: 2023-10-11 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: ffi-geos