search_solr_tools 6.5.1 → 7.0.0.pre.alpha
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68807979649e130e06f9c2758edb4a48f70222547f4638dcb6aefe1758d9496a
|
4
|
+
data.tar.gz: c8fbd92c84e6a99c30fc4eddecf3b6b2eb74bed34297e10ac04cb6dd37dc0451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c0848c5846810833f0af72058dd6ddb3061763482bc8e8975189cf499705a5cd9133bf41d92ae0b9b131d549d3061266937cf52b377c393940b29aa186e8f1
|
7
|
+
data.tar.gz: db80eaceae3878825dbee0e90db9ec6a0774ad00b3418ba600528837115612253f6f3b09a8da69ae76de198a155d674a95240eb83151d1edb4894ef61dd72af8
|
data/CHANGELOG.md
CHANGED
data/bin/search_solr_tools
CHANGED
@@ -126,7 +126,7 @@ class SolrHarvestCLI < Thor
|
|
126
126
|
harvester.delete_old_documents(options[:timestamp],
|
127
127
|
"data_centers:\"#{SearchSolrTools::Helpers::SolrFormat::DATA_CENTER_NAMES[options[:data_center].upcase.to_sym][:long_name]}\"",
|
128
128
|
SearchSolrTools::SolrEnvironments[harvester.environment][:collection_name],
|
129
|
-
true)
|
129
|
+
force: true)
|
130
130
|
logger.info("DELETE ALL for data center '#{options[:data_center]}' complete")
|
131
131
|
end
|
132
132
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
:host: dev.search-solr.USERNAME.dev.int.nsidc.org
|
26
26
|
## For the metadata content, either set up your own instance of dataset-catalog-services
|
27
27
|
## or change the URL below to point to integration
|
28
|
-
:nsidc_dataset_metadata_url: http://dev.dcs.USERNAME.dev.int.nsidc.org:
|
28
|
+
:nsidc_dataset_metadata_url: http://dev.dcs.USERNAME.dev.int.nsidc.org:11580/api/dataset/metadata/
|
29
29
|
|
30
30
|
:development:
|
31
31
|
<<: *dev
|
@@ -26,6 +26,7 @@ module SearchSolrTools
|
|
26
26
|
'dataset_version' => json_doc['majorVersion']['version'],
|
27
27
|
'data_centers' => Helpers::SolrFormat::DATA_CENTER_NAMES[:NSIDC][:long_name],
|
28
28
|
'facet_data_center' => "#{Helpers::SolrFormat::DATA_CENTER_NAMES[:NSIDC][:long_name]} | #{Helpers::SolrFormat::DATA_CENTER_NAMES[:NSIDC][:short_name]}",
|
29
|
+
'cumulus' => json_doc['cumulus'],
|
29
30
|
'authors' => translate_personnel_and_creators_to_authors(json_doc['personnel'], generate_data_citation_creators(json_doc['dataCitation'])),
|
30
31
|
'topics' => translate_iso_topic_categories(json_doc['isoTopicCategories']),
|
31
32
|
'parameters' => translate_parameters(json_doc['parameters']),
|
@@ -38,7 +39,6 @@ module SearchSolrTools
|
|
38
39
|
'spatial_coverages' => Helpers::TranslateSpatialCoverage.geojson_to_spatial_display_str(spatial_coverages),
|
39
40
|
'spatial' => Helpers::TranslateSpatialCoverage.geojson_to_spatial_index_str(spatial_coverages),
|
40
41
|
'spatial_area' => Helpers::TranslateSpatialCoverage.geojson_to_spatial_area(spatial_coverages),
|
41
|
-
'facet_spatial_coverage' => Helpers::TranslateSpatialCoverage.geojson_to_global_facet(spatial_coverages),
|
42
42
|
'facet_spatial_scope' => Helpers::TranslateSpatialCoverage.geojson_to_spatial_scope_facet(spatial_coverages),
|
43
43
|
'temporal_coverages' => temporal_coverage_values['temporal_coverages'],
|
44
44
|
'temporal_duration' => temporal_coverage_values['temporal_duration'],
|
@@ -54,7 +54,8 @@ module SearchSolrTools
|
|
54
54
|
'facet_sponsored_program' => translate_short_long_names_to_facet_value(json_doc['internalDataCenters']),
|
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
|
-
'sponsored_programs' => translate_internal_datacenters(json_doc['internalDataCenters'])
|
57
|
+
'sponsored_programs' => translate_internal_datacenters(json_doc['internalDataCenters']),
|
58
|
+
'facet_featured' => translate_featured(json_doc, spatial_coverages)
|
58
59
|
)
|
59
60
|
end
|
60
61
|
# rubocop:enable Metrics/MethodLength
|
@@ -204,6 +205,19 @@ module SearchSolrTools
|
|
204
205
|
json_strings.uniq
|
205
206
|
end
|
206
207
|
|
208
|
+
def translate_featured(json, spatial_coverages)
|
209
|
+
facet_featured = []
|
210
|
+
|
211
|
+
# Add the Earthdata Cloud feature
|
212
|
+
facet_featured << 'In Earthdata Cloud' if json['cumulus']
|
213
|
+
|
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
|
219
|
+
end
|
220
|
+
|
207
221
|
def generate_data_citation_creators(data_citation)
|
208
222
|
data_citation.nil? ? [] : data_citation['creators']
|
209
223
|
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:
|
4
|
+
version: 7.0.0.pre.alpha
|
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-
|
17
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: ffi-geos
|
@@ -379,9 +379,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
379
379
|
version: 3.2.2
|
380
380
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
381
381
|
requirements:
|
382
|
-
- - "
|
382
|
+
- - ">"
|
383
383
|
- !ruby/object:Gem::Version
|
384
|
-
version:
|
384
|
+
version: 1.3.1
|
385
385
|
requirements: []
|
386
386
|
rubygems_version: 3.4.10
|
387
387
|
signing_key:
|