geoblacklight 3.4.0 → 3.7.0
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 +4 -4
- data/.github/workflows/ruby.yml +28 -75
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/.solr_wrapper +1 -0
- data/app/assets/images/blacklight/michigan-state-university.svg +0 -1
- data/app/assets/images/blacklight/pennsylvania-state-university.svg +0 -1
- data/app/assets/images/blacklight/purdue-university.svg +0 -1
- data/app/assets/images/blacklight/the-ohio-state-university.svg +0 -1
- data/app/assets/images/blacklight/university-of-chicago.svg +0 -1
- data/app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg +0 -1
- data/app/assets/images/blacklight/university-of-iowa.svg +0 -1
- data/app/assets/images/blacklight/university-of-maryland.svg +0 -1
- data/app/assets/images/blacklight/university-of-michigan.svg +0 -1
- data/app/assets/images/blacklight/university-of-minnesota.svg +0 -1
- data/app/assets/images/blacklight/university-of-nebraska-lincoln.svg +0 -1
- data/app/assets/images/blacklight/university-of-wisconsin-madison.svg +0 -1
- data/app/assets/javascripts/geoblacklight/viewers/tilejson.js +33 -0
- data/app/assets/javascripts/geoblacklight/viewers/tms.js +2 -2
- data/app/assets/javascripts/geoblacklight/viewers/wms.js +2 -2
- data/app/assets/javascripts/geoblacklight/viewers/wmts.js +85 -0
- data/app/assets/javascripts/geoblacklight/viewers/xyz.js +10 -0
- data/config/locales/geoblacklight.en.yml +3 -0
- data/geoblacklight.gemspec +2 -1
- data/lib/generators/geoblacklight/assets_generator.rb +1 -1
- data/lib/generators/geoblacklight/templates/settings.yml +3 -0
- data/lib/geoblacklight/constants.rb +3 -0
- data/lib/geoblacklight/engine.rb +4 -2
- data/lib/geoblacklight/item_viewer.rb +13 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/solr/conf/solrconfig.xml +3 -3
- data/spec/features/home_page_spec.rb +2 -2
- data/spec/features/split_view.html.erb_spec.rb +1 -1
- data/spec/features/tilejson_spec.rb +22 -0
- data/spec/features/tms_spec.rb +1 -1
- data/spec/features/web_services_modal_spec.rb +33 -0
- data/spec/features/wmts_spec.rb +34 -0
- data/spec/features/xyz_spec.rb +10 -0
- data/spec/fixtures/manifests/tilejson.json +21 -0
- data/spec/fixtures/manifests/wmts-multiple.xml +813 -0
- data/spec/fixtures/manifests/wmts-single.xml +126 -0
- data/spec/fixtures/solr_documents/tilejson.json +38 -0
- data/spec/fixtures/solr_documents/tms.json +2 -2
- data/spec/fixtures/solr_documents/wmts-multiple.json +32 -0
- data/spec/fixtures/solr_documents/wmts-single-layer.json +38 -0
- data/spec/fixtures/solr_documents/xyz.json +29 -0
- data/spec/spec_helper.rb +4 -0
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +1 -1
- metadata +45 -8
@@ -0,0 +1,126 @@
|
|
1
|
+
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
|
2
|
+
<ows:ServiceIdentification>
|
3
|
+
<ows:Title>"Mosaic"</ows:Title>
|
4
|
+
<ows:ServiceType>OGC WMTS</ows:ServiceType>
|
5
|
+
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
|
6
|
+
</ows:ServiceIdentification>
|
7
|
+
<ows:OperationsMetadata>
|
8
|
+
<ows:Operation name="GetCapabilities">
|
9
|
+
<ows:DCP>
|
10
|
+
<ows:HTTP>
|
11
|
+
<ows:Get xlink:href="https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?url=s3%3A%2F%2Ffiggy-geo-staging%2F2a%2F91%2Fd8%2F2a91d82c541c426cb787cc62afe8f248%2Fmosaic-6c5b32bfe4cb8e4fb07d32cd6656d024.json&rescale=0%2C255">
|
12
|
+
<ows:Constraint name="GetEncoding">
|
13
|
+
<ows:AllowedValues>
|
14
|
+
<ows:Value>RESTful</ows:Value>
|
15
|
+
</ows:AllowedValues>
|
16
|
+
</ows:Constraint>
|
17
|
+
</ows:Get>
|
18
|
+
</ows:HTTP>
|
19
|
+
</ows:DCP>
|
20
|
+
</ows:Operation>
|
21
|
+
<ows:Operation name="GetTile">
|
22
|
+
<ows:DCP>
|
23
|
+
<ows:HTTP>
|
24
|
+
<ows:Get xlink:href="https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?url=s3%3A%2F%2Ffiggy-geo-staging%2F2a%2F91%2Fd8%2F2a91d82c541c426cb787cc62afe8f248%2Fmosaic-6c5b32bfe4cb8e4fb07d32cd6656d024.json&rescale=0%2C255">
|
25
|
+
<ows:Constraint name="GetEncoding">
|
26
|
+
<ows:AllowedValues>
|
27
|
+
<ows:Value>RESTful</ows:Value>
|
28
|
+
</ows:AllowedValues>
|
29
|
+
</ows:Constraint>
|
30
|
+
</ows:Get>
|
31
|
+
</ows:HTTP>
|
32
|
+
</ows:DCP>
|
33
|
+
</ows:Operation>
|
34
|
+
</ows:OperationsMetadata>
|
35
|
+
<Contents>
|
36
|
+
<Layer>
|
37
|
+
<ows:Title>Mosaic</ows:Title>
|
38
|
+
<ows:Identifier>mosaic</ows:Identifier>
|
39
|
+
<ows:Abstract>Mosaic</ows:Abstract>
|
40
|
+
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
|
41
|
+
<ows:LowerCorner>19.22222222200001 39.74997750505241</ows:LowerCorner>
|
42
|
+
<ows:UpperCorner>29.356941715411907 43.083333000050004</ows:UpperCorner>
|
43
|
+
</ows:WGS84BoundingBox>
|
44
|
+
<Style isDefault="true">
|
45
|
+
<ows:Identifier>default</ows:Identifier>
|
46
|
+
</Style>
|
47
|
+
<Format>image/png</Format>
|
48
|
+
<TileMatrixSetLink>
|
49
|
+
<TileMatrixSet>WebMercatorQuad</TileMatrixSet>
|
50
|
+
</TileMatrixSetLink>
|
51
|
+
<ResourceURL format="image/png" resourceType="tile" template="https://map-tiles-staging.princeton.edu/mosaicjson/tiles/WebMercatorQuad/{TileMatrix}/{TileCol}/{TileRow}@1x.png?url=s3%3A%2F%2Ffiggy-geo-staging%2F2a%2F91%2Fd8%2F2a91d82c541c426cb787cc62afe8f248%2Fmosaic-6c5b32bfe4cb8e4fb07d32cd6656d024.json&rescale=0%2C255"/>
|
52
|
+
</Layer>
|
53
|
+
<TileMatrixSet>
|
54
|
+
<ows:Identifier>WebMercatorQuad</ows:Identifier>
|
55
|
+
<ows:SupportedCRS>EPSG:3857</ows:SupportedCRS>
|
56
|
+
|
57
|
+
|
58
|
+
<TileMatrix>
|
59
|
+
<ows:Identifier>8</ows:Identifier>
|
60
|
+
<ScaleDenominator>2183915.09386217</ScaleDenominator>
|
61
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
62
|
+
<TileWidth>256</TileWidth>
|
63
|
+
<TileHeight>256</TileHeight>
|
64
|
+
<MatrixWidth>256</MatrixWidth>
|
65
|
+
<MatrixHeight>256</MatrixHeight>
|
66
|
+
</TileMatrix>
|
67
|
+
|
68
|
+
|
69
|
+
<TileMatrix>
|
70
|
+
<ows:Identifier>9</ows:Identifier>
|
71
|
+
<ScaleDenominator>1091957.54693108</ScaleDenominator>
|
72
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
73
|
+
<TileWidth>256</TileWidth>
|
74
|
+
<TileHeight>256</TileHeight>
|
75
|
+
<MatrixWidth>512</MatrixWidth>
|
76
|
+
<MatrixHeight>512</MatrixHeight>
|
77
|
+
</TileMatrix>
|
78
|
+
|
79
|
+
|
80
|
+
<TileMatrix>
|
81
|
+
<ows:Identifier>10</ows:Identifier>
|
82
|
+
<ScaleDenominator>545978.773465544</ScaleDenominator>
|
83
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
84
|
+
<TileWidth>256</TileWidth>
|
85
|
+
<TileHeight>256</TileHeight>
|
86
|
+
<MatrixWidth>1024</MatrixWidth>
|
87
|
+
<MatrixHeight>1024</MatrixHeight>
|
88
|
+
</TileMatrix>
|
89
|
+
|
90
|
+
|
91
|
+
<TileMatrix>
|
92
|
+
<ows:Identifier>11</ows:Identifier>
|
93
|
+
<ScaleDenominator>272989.386732772</ScaleDenominator>
|
94
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
95
|
+
<TileWidth>256</TileWidth>
|
96
|
+
<TileHeight>256</TileHeight>
|
97
|
+
<MatrixWidth>2048</MatrixWidth>
|
98
|
+
<MatrixHeight>2048</MatrixHeight>
|
99
|
+
</TileMatrix>
|
100
|
+
|
101
|
+
|
102
|
+
<TileMatrix>
|
103
|
+
<ows:Identifier>12</ows:Identifier>
|
104
|
+
<ScaleDenominator>136494.693366386</ScaleDenominator>
|
105
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
106
|
+
<TileWidth>256</TileWidth>
|
107
|
+
<TileHeight>256</TileHeight>
|
108
|
+
<MatrixWidth>4096</MatrixWidth>
|
109
|
+
<MatrixHeight>4096</MatrixHeight>
|
110
|
+
</TileMatrix>
|
111
|
+
|
112
|
+
|
113
|
+
<TileMatrix>
|
114
|
+
<ows:Identifier>13</ows:Identifier>
|
115
|
+
<ScaleDenominator>68247.346683193</ScaleDenominator>
|
116
|
+
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
|
117
|
+
<TileWidth>256</TileWidth>
|
118
|
+
<TileHeight>256</TileHeight>
|
119
|
+
<MatrixWidth>8192</MatrixWidth>
|
120
|
+
<MatrixHeight>8192</MatrixHeight>
|
121
|
+
</TileMatrix>
|
122
|
+
|
123
|
+
</TileMatrixSet>
|
124
|
+
</Contents>
|
125
|
+
<ServiceMetadataURL xlink:href="https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?url=s3%3A%2F%2Ffiggy-geo-staging%2F2a%2F91%2Fd8%2F2a91d82c541c426cb787cc62afe8f248%2Fmosaic-6c5b32bfe4cb8e4fb07d32cd6656d024.json&rescale=0%2C255"/>
|
126
|
+
</Capabilities>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"geoblacklight_version": "1.0",
|
3
|
+
"dc_identifier_s": "ark:/99999/fk4544658v",
|
4
|
+
"layer_slug_s": "princeton-fk4544658v-tilejson",
|
5
|
+
"uuid": "princeton-fk4544658v",
|
6
|
+
"dc_title_s": "The Balkans [and] Turkey : G.S.G.S. no. 2097 / War Office. General Staff. Geographical Section (TileJSON Fixture)",
|
7
|
+
"solr_geom": "ENVELOPE(19.333333, 29.333333, 43.083333, 39.75)",
|
8
|
+
"dct_provenance_s": "Princeton",
|
9
|
+
"dc_rights_s": "Public",
|
10
|
+
"dc_description_s": "Relief shown by contours approximately 100 feet interval, spot heights, and shading. Title varies; some sheets are titled \"Turkey\". Shows international boundaries, railways, 2 categories of roads, telegraph lines, places of worship, ruins. Constantinople latest edition map has a glossary.",
|
11
|
+
"dc_creator_sm": [
|
12
|
+
"Great Britain. War Office. General Staff. Geographical Section"
|
13
|
+
],
|
14
|
+
"dc_language_s": "eng",
|
15
|
+
"dc_publisher_s": "[London] : War Office. General Staff. Geographical Section. General Staff, 1908-25.",
|
16
|
+
"dc_subject_sm": [
|
17
|
+
"Maps,Topographic",
|
18
|
+
"Balkan Peninsula\u2014Maps",
|
19
|
+
"Turkey\u2014Maps",
|
20
|
+
"Topographic maps"
|
21
|
+
],
|
22
|
+
"all_subject_sm": [
|
23
|
+
"Maps,Topographic",
|
24
|
+
"Balkan Peninsula\u2014Maps",
|
25
|
+
"Turkey\u2014Maps",
|
26
|
+
"Topographic maps"
|
27
|
+
],
|
28
|
+
"dct_spatial_sm": [
|
29
|
+
"Balkan Peninsula",
|
30
|
+
"Turkey"
|
31
|
+
],
|
32
|
+
"solr_year_i": 1908,
|
33
|
+
"layer_modified_dt": "2022-02-03T22:13:40Z",
|
34
|
+
"layer_id_s": "ark:/99999/fk4544658v",
|
35
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://catalog.princeton.edu/catalog/99125413918506421\",\"http://schema.org/thumbnailUrl\":\"https://figgy-staging.princeton.edu/downloads/6b55d939-7188-4bce-9550-0ac535441f22/file/9042b887-da2e-4aa9-9ca5-d3ba77f440c4\",\"http://iiif.io/api/image\":\"https://iiif-cloud-staging.princeton.edu/iiif/2/05%2F71%2F04%2F0571046f9c7149a3b950899323f70788%2Fintermediate_file/info.json\",\"http://iiif.io/api/presentation#manifest\":\"https://figgy-staging.princeton.edu/concern/scanned_maps/2a91d82c-541c-426c-b787-cc62afe8f248/manifest\",\"https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames\":\"https://map-tiles-staging.princeton.edu/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}@1x.png?id=2a91d82c541c426cb787cc62afe8f248\",\"https://github.com/mapbox/tilejson-spec\":\"https://map-tiles-staging.princeton.edu/mosaicjson/tilejson.json?id=2a91d82c541c426cb787cc62afe8f248\"}",
|
36
|
+
"layer_geom_type_s": "Image",
|
37
|
+
"suppressed_b": false
|
38
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"dc_identifier_s": "6f47b103-9955-4bbe-a364-387039623106",
|
3
|
-
"dc_title_s": "Quaternary Fault and Fold Database of the United States",
|
3
|
+
"dc_title_s": "Quaternary Fault and Fold Database of the United States (TMS)",
|
4
4
|
"dc_description_s": "Quaternary Fault and Fold Database of the United States",
|
5
5
|
"dc_rights_s": "Public",
|
6
6
|
"dct_provenance_s": "Stanford",
|
7
7
|
"dct_references_s": "{\"http://schema.org/url\":\"https://www.usgs.gov/natural-hazards/earthquake-hazards/faults\",\"https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification\":\"https://earthquake.usgs.gov/basemap/tiles/faults/{z}/{x}/{y}.png\",\"http://schema.org/downloadUrl\":\"https://earthquake.usgs.gov/static/lfs/nshm/qfaults/Qfaults_GIS.zip\"}",
|
8
|
-
"layer_slug_s": "6f47b103-9955-4bbe-a364-387039623106",
|
8
|
+
"layer_slug_s": "6f47b103-9955-4bbe-a364-387039623106-tms",
|
9
9
|
"layer_geom_type_s": "Polyline",
|
10
10
|
"dc_format_s": "Shapefile",
|
11
11
|
"dc_language_s": "English",
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"geoblacklight_version": "1.0",
|
3
|
+
"dc_identifier_s": "ark:/99999/fk4db9hn29",
|
4
|
+
"layer_slug_s": "princeton-fk4db9hn29",
|
5
|
+
"uuid": "princeton-fk4db9hn29",
|
6
|
+
"dc_title_s": "Orthofoto 2016 Wien (WMTS)",
|
7
|
+
"solr_geom": "ENVELOPE(16.133423, 16.626434, 48.3348, 48.106056)",
|
8
|
+
"dct_provenance_s": "Princeton",
|
9
|
+
"dc_rights_s": "Public",
|
10
|
+
"dc_description_s": "The Vienna orthophoto from the year 2016 covers the entire city area with a pixel size of 15 centimeters. The aerial images were taken on 18th and 27th of March and 5th of April 2016.",
|
11
|
+
"dc_creator_sm": [
|
12
|
+
"Magistrat Wien - Magistratsabteilung 41 - Stadtvermessung"
|
13
|
+
],
|
14
|
+
"all_subject_sm": [
|
15
|
+
"Orthophoto"
|
16
|
+
],
|
17
|
+
"dct_spatial_sm": [
|
18
|
+
"Vienna",
|
19
|
+
"Austria"
|
20
|
+
],
|
21
|
+
"dct_temporal_sm": [
|
22
|
+
"2016"
|
23
|
+
],
|
24
|
+
"solr_year_i": 2022,
|
25
|
+
"layer_modified_dt": "2022-02-04T22:13:37Z",
|
26
|
+
"layer_id_s": "lb2016",
|
27
|
+
"dct_references_s": "{\"http://www.opengis.net/def/serviceType/ogc/wmts\":\"https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml\"}",
|
28
|
+
"layer_geom_type_s": "Raster",
|
29
|
+
"dc_format_s": "GeoTIFF",
|
30
|
+
"dct_issued_dt": "2016-01-01T00:00:00Z",
|
31
|
+
"suppressed_b": false
|
32
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"geoblacklight_version": "1.0",
|
3
|
+
"dc_identifier_s": "ark:/99999/fk4544658v",
|
4
|
+
"layer_slug_s": "princeton-fk4544658v-wmts",
|
5
|
+
"uuid": "princeton-fk4544658v",
|
6
|
+
"dc_title_s": "The Balkans [and] Turkey : G.S.G.S. no. 2097 / War Office. General Staff. Geographical Section (WMTS Fixture)",
|
7
|
+
"solr_geom": "ENVELOPE(19.333333, 29.333333, 43.083333, 39.75)",
|
8
|
+
"dct_provenance_s": "Princeton",
|
9
|
+
"dc_rights_s": "Public",
|
10
|
+
"dc_description_s": "Relief shown by contours approximately 100 feet interval, spot heights, and shading. Title varies; some sheets are titled \"Turkey\". Shows international boundaries, railways, 2 categories of roads, telegraph lines, places of worship, ruins. Constantinople latest edition map has a glossary.",
|
11
|
+
"dc_creator_sm": [
|
12
|
+
"Great Britain. War Office. General Staff. Geographical Section"
|
13
|
+
],
|
14
|
+
"dc_language_s": "eng",
|
15
|
+
"dc_publisher_s": "[London] : War Office. General Staff. Geographical Section. General Staff, 1908-25.",
|
16
|
+
"dc_subject_sm": [
|
17
|
+
"Maps,Topographic",
|
18
|
+
"Balkan Peninsula\u2014Maps",
|
19
|
+
"Turkey\u2014Maps",
|
20
|
+
"Topographic maps"
|
21
|
+
],
|
22
|
+
"all_subject_sm": [
|
23
|
+
"Maps,Topographic",
|
24
|
+
"Balkan Peninsula\u2014Maps",
|
25
|
+
"Turkey\u2014Maps",
|
26
|
+
"Topographic maps"
|
27
|
+
],
|
28
|
+
"dct_spatial_sm": [
|
29
|
+
"Balkan Peninsula",
|
30
|
+
"Turkey"
|
31
|
+
],
|
32
|
+
"solr_year_i": 1908,
|
33
|
+
"layer_modified_dt": "2022-02-03T22:13:40Z",
|
34
|
+
"layer_id_s": "mosaic",
|
35
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://catalog.princeton.edu/catalog/99125413918506421\",\"http://schema.org/thumbnailUrl\":\"https://figgy-staging.princeton.edu/downloads/6b55d939-7188-4bce-9550-0ac535441f22/file/9042b887-da2e-4aa9-9ca5-d3ba77f440c4\",\"http://iiif.io/api/image\":\"https://iiif-cloud-staging.princeton.edu/iiif/2/05%2F71%2F04%2F0571046f9c7149a3b950899323f70788%2Fintermediate_file/info.json\",\"http://iiif.io/api/presentation#manifest\":\"https://figgy-staging.princeton.edu/concern/scanned_maps/2a91d82c-541c-426c-b787-cc62afe8f248/manifest\",\"http://www.opengis.net/def/serviceType/ogc/wmts\":\"https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?id=2a91d82c541c426cb787cc62afe8f248\"}",
|
36
|
+
"layer_geom_type_s": "Image",
|
37
|
+
"suppressed_b": false
|
38
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"dc_identifier_s": "6f47b103-9955-4bbe-a364-387039623106",
|
3
|
+
"dc_title_s": "Quaternary Fault and Fold Database of the United States (XYZ)",
|
4
|
+
"dc_description_s": "Quaternary Fault and Fold Database of the United States",
|
5
|
+
"dc_rights_s": "Public",
|
6
|
+
"dct_provenance_s": "Stanford",
|
7
|
+
"dct_references_s": "{\"http://schema.org/url\":\"https://www.usgs.gov/natural-hazards/earthquake-hazards/faults\",\"https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames\":\"https://earthquake.usgs.gov/basemap/tiles/faults/{z}/{x}/{y}.png\",\"http://schema.org/downloadUrl\":\"https://earthquake.usgs.gov/static/lfs/nshm/qfaults/Qfaults_GIS.zip\"}",
|
8
|
+
"layer_slug_s": "6f47b103-9955-4bbe-a364-387039623106-xyz",
|
9
|
+
"layer_geom_type_s": "Polyline",
|
10
|
+
"dc_format_s": "Shapefile",
|
11
|
+
"dc_language_s": "English",
|
12
|
+
"dc_type_s": "Dataset",
|
13
|
+
"dc_publisher_s": "Geological Survey (U.S.)",
|
14
|
+
"dc_subject_sm": [
|
15
|
+
"Earthquakes",
|
16
|
+
"Faults"
|
17
|
+
],
|
18
|
+
"dct_issued_s": "2020",
|
19
|
+
"dct_temporal_sm": [
|
20
|
+
"2020"
|
21
|
+
],
|
22
|
+
"dct_spatial_sm": [
|
23
|
+
"Earth (Planet)",
|
24
|
+
"North America"
|
25
|
+
],
|
26
|
+
"solr_geom": "ENVELOPE(-156.02, -70.80, 65.59, 18.93)",
|
27
|
+
"solr_year_i": 2020,
|
28
|
+
"geoblacklight_version": "1.0"
|
29
|
+
}
|
data/spec/spec_helper.rb
CHANGED
@@ -30,6 +30,10 @@ require 'capybara/rspec'
|
|
30
30
|
require 'selenium-webdriver'
|
31
31
|
require 'webdrivers'
|
32
32
|
|
33
|
+
# Setup webmock for specific tests
|
34
|
+
require 'webmock/rspec'
|
35
|
+
WebMock.allow_net_connect!
|
36
|
+
|
33
37
|
Capybara.register_driver(:headless_chrome) do |app|
|
34
38
|
Capybara::Selenium::Driver.load_selenium
|
35
39
|
browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
|
-
describe 'catalog/_results_pagination
|
4
|
+
describe 'catalog/_results_pagination', type: :view do
|
5
5
|
it 'will have a #pagination wrapping div' do
|
6
6
|
allow(view).to receive_messages(show_pagination?: false)
|
7
7
|
render
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
|
-
describe 'catalog/_show_downloads
|
4
|
+
describe 'catalog/_show_downloads', type: :view do
|
5
5
|
context 'document is downloadable' do
|
6
6
|
let(:document) { instance_double(SolrDocument) }
|
7
7
|
before do
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoblacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Graves
|
8
8
|
- Darren Hardy
|
9
9
|
- Eliot Jordan
|
10
10
|
- Jack Reed
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 5.2.4
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '7.1'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 5.2.4
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '7.1'
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: blacklight
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -355,6 +355,20 @@ dependencies:
|
|
355
355
|
- - "~>"
|
356
356
|
- !ruby/object:Gem::Version
|
357
357
|
version: '2.2'
|
358
|
+
- !ruby/object:Gem::Dependency
|
359
|
+
name: webmock
|
360
|
+
requirement: !ruby/object:Gem::Requirement
|
361
|
+
requirements:
|
362
|
+
- - "~>"
|
363
|
+
- !ruby/object:Gem::Version
|
364
|
+
version: '3.14'
|
365
|
+
type: :development
|
366
|
+
prerelease: false
|
367
|
+
version_requirements: !ruby/object:Gem::Requirement
|
368
|
+
requirements:
|
369
|
+
- - "~>"
|
370
|
+
- !ruby/object:Gem::Version
|
371
|
+
version: '3.14'
|
358
372
|
description: GeoBlacklight provides a world-class discovery platform for geospatial
|
359
373
|
(GIS) holdings. It is an open collaborative project aiming to build off of the successes
|
360
374
|
of the Blacklight Solr-powered discovery interface and the multi-institutional OpenGeoportal
|
@@ -493,9 +507,12 @@ files:
|
|
493
507
|
- app/assets/javascripts/geoblacklight/viewers/index_map.js
|
494
508
|
- app/assets/javascripts/geoblacklight/viewers/map.js
|
495
509
|
- app/assets/javascripts/geoblacklight/viewers/oembed.js
|
510
|
+
- app/assets/javascripts/geoblacklight/viewers/tilejson.js
|
496
511
|
- app/assets/javascripts/geoblacklight/viewers/tms.js
|
497
512
|
- app/assets/javascripts/geoblacklight/viewers/viewer.js
|
498
513
|
- app/assets/javascripts/geoblacklight/viewers/wms.js
|
514
|
+
- app/assets/javascripts/geoblacklight/viewers/wmts.js
|
515
|
+
- app/assets/javascripts/geoblacklight/viewers/xyz.js
|
499
516
|
- app/assets/stylesheets/geoblacklight/geoblacklight.scss
|
500
517
|
- app/assets/stylesheets/geoblacklight/modules/_base.scss
|
501
518
|
- app/assets/stylesheets/geoblacklight/modules/_blacklight_overrides.scss
|
@@ -699,10 +716,16 @@ files:
|
|
699
716
|
- spec/features/sms_spec.rb
|
700
717
|
- spec/features/split_view.html.erb_spec.rb
|
701
718
|
- spec/features/suppressed_records_spec.rb
|
719
|
+
- spec/features/tilejson_spec.rb
|
702
720
|
- spec/features/tms_spec.rb
|
703
721
|
- spec/features/web_services_modal_spec.rb
|
722
|
+
- spec/features/wmts_spec.rb
|
723
|
+
- spec/features/xyz_spec.rb
|
704
724
|
- spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
|
705
725
|
- spec/fixtures/iso19139/stanford-cg357zz0321.xml
|
726
|
+
- spec/fixtures/manifests/tilejson.json
|
727
|
+
- spec/fixtures/manifests/wmts-multiple.xml
|
728
|
+
- spec/fixtures/manifests/wmts-single.xml
|
706
729
|
- spec/fixtures/mods/fb897vt9938.mods
|
707
730
|
- spec/fixtures/mods/stanford-cg357zz0321.mods
|
708
731
|
- spec/fixtures/solr_documents/README.md
|
@@ -742,11 +765,15 @@ files:
|
|
742
765
|
- spec/fixtures/solr_documents/public_iiif_princeton.json
|
743
766
|
- spec/fixtures/solr_documents/public_polygon_mit.json
|
744
767
|
- spec/fixtures/solr_documents/restricted-line.json
|
768
|
+
- spec/fixtures/solr_documents/tilejson.json
|
745
769
|
- spec/fixtures/solr_documents/tms.json
|
746
770
|
- spec/fixtures/solr_documents/umn_metro_result1.json
|
747
771
|
- spec/fixtures/solr_documents/umn_state_result1.json
|
748
772
|
- spec/fixtures/solr_documents/umn_state_result2.json
|
749
773
|
- spec/fixtures/solr_documents/uva_slug_colon.json
|
774
|
+
- spec/fixtures/solr_documents/wmts-multiple.json
|
775
|
+
- spec/fixtures/solr_documents/wmts-single-layer.json
|
776
|
+
- spec/fixtures/solr_documents/xyz.json
|
750
777
|
- spec/helpers/arcgis_helper_spec.rb
|
751
778
|
- spec/helpers/carto_helper_spec.rb
|
752
779
|
- spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb
|
@@ -823,7 +850,7 @@ homepage: http://github.com/geoblacklight/geoblacklight
|
|
823
850
|
licenses:
|
824
851
|
- Apache 2.0
|
825
852
|
metadata: {}
|
826
|
-
post_install_message:
|
853
|
+
post_install_message:
|
827
854
|
rdoc_options: []
|
828
855
|
require_paths:
|
829
856
|
- lib
|
@@ -838,8 +865,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
838
865
|
- !ruby/object:Gem::Version
|
839
866
|
version: 2.5.2
|
840
867
|
requirements: []
|
841
|
-
rubygems_version: 3.2.
|
842
|
-
signing_key:
|
868
|
+
rubygems_version: 3.2.32
|
869
|
+
signing_key:
|
843
870
|
specification_version: 4
|
844
871
|
summary: A discovery platform for geospatial holdings
|
845
872
|
test_files:
|
@@ -880,10 +907,16 @@ test_files:
|
|
880
907
|
- spec/features/sms_spec.rb
|
881
908
|
- spec/features/split_view.html.erb_spec.rb
|
882
909
|
- spec/features/suppressed_records_spec.rb
|
910
|
+
- spec/features/tilejson_spec.rb
|
883
911
|
- spec/features/tms_spec.rb
|
884
912
|
- spec/features/web_services_modal_spec.rb
|
913
|
+
- spec/features/wmts_spec.rb
|
914
|
+
- spec/features/xyz_spec.rb
|
885
915
|
- spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
|
886
916
|
- spec/fixtures/iso19139/stanford-cg357zz0321.xml
|
917
|
+
- spec/fixtures/manifests/tilejson.json
|
918
|
+
- spec/fixtures/manifests/wmts-multiple.xml
|
919
|
+
- spec/fixtures/manifests/wmts-single.xml
|
887
920
|
- spec/fixtures/mods/fb897vt9938.mods
|
888
921
|
- spec/fixtures/mods/stanford-cg357zz0321.mods
|
889
922
|
- spec/fixtures/solr_documents/README.md
|
@@ -923,11 +956,15 @@ test_files:
|
|
923
956
|
- spec/fixtures/solr_documents/public_iiif_princeton.json
|
924
957
|
- spec/fixtures/solr_documents/public_polygon_mit.json
|
925
958
|
- spec/fixtures/solr_documents/restricted-line.json
|
959
|
+
- spec/fixtures/solr_documents/tilejson.json
|
926
960
|
- spec/fixtures/solr_documents/tms.json
|
927
961
|
- spec/fixtures/solr_documents/umn_metro_result1.json
|
928
962
|
- spec/fixtures/solr_documents/umn_state_result1.json
|
929
963
|
- spec/fixtures/solr_documents/umn_state_result2.json
|
930
964
|
- spec/fixtures/solr_documents/uva_slug_colon.json
|
965
|
+
- spec/fixtures/solr_documents/wmts-multiple.json
|
966
|
+
- spec/fixtures/solr_documents/wmts-single-layer.json
|
967
|
+
- spec/fixtures/solr_documents/xyz.json
|
931
968
|
- spec/helpers/arcgis_helper_spec.rb
|
932
969
|
- spec/helpers/carto_helper_spec.rb
|
933
970
|
- spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb
|