search_solr_tools 3.8.1 → 3.8.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca4f809ba05cad3597c6df439428fc0b5317117d
|
4
|
+
data.tar.gz: e405c518148f717f4db43164e17316d50e6cf932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8d55f862181baf91af980cc6671f575431991cf50f13075eb791cde85e2a5c4320afa637c851e0e472322b28c7461b046756f110b10b8862005d3e79b9d42fb
|
7
|
+
data.tar.gz: 25b27e677f64d8ef9cd6e567628a57b6c548939769c712f451d1032dca6e403023800ebb2bd23089fe9a2dea04964e470013f8fe22bec9adead7e65e22bf9b69
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
- http://www.gtnpdatabase.org/rest/boreholes/json
|
12
12
|
- http://www.gtnpdatabase.org/rest/activelayers/json
|
13
13
|
:ices_url: http://geo.ices.dk/geonetwork/srv/en/csw
|
14
|
-
:ncdc_paleo_url:
|
14
|
+
:ncdc_paleo_url: https://gis.ncdc.noaa.gov/gptpaleo/csw
|
15
15
|
:nmi_url: http://arcticdata.met.no/metamod/oai
|
16
16
|
:nodc_url: https://data.nodc.noaa.gov/geoportal/csw
|
17
17
|
:pdc_url: http://www.polardata.ca/oai/provider
|
@@ -38,12 +38,12 @@ module SearchSolrTools
|
|
38
38
|
auth_ids = entries.map { |e| e.xpath("./dc:identifier[@scheme='urn:x-esri:specification:ServiceType:ArcIMS:Metadata:DocID']").text }
|
39
39
|
|
40
40
|
auth_ids.map do |record|
|
41
|
-
result_xml = get_results("
|
41
|
+
result_xml = get_results("https://gis.ncdc.noaa.gov/gptpaleo/csw?getxml=#{record}",
|
42
42
|
'/rdf:RDF/rdf:Description').first
|
43
43
|
solr_doc = create_new_solr_add_doc_with_child(@translator.translate(result_xml).root)
|
44
44
|
insert_node = solr_doc.at_xpath('//doc')
|
45
45
|
insert_node.add_child("<field name='authoritative_id'>#{record}</field>")
|
46
|
-
insert_node.add_child("<field name='dataset_url'>
|
46
|
+
insert_node.add_child("<field name='dataset_url'>https://gis.ncdc.noaa.gov/gptpaleo/catalog/search/resource/details.page?uuid=#{record}")
|
47
47
|
solr_doc.root
|
48
48
|
end
|
49
49
|
end
|