geoblacklight 4.0.0 → 4.1.1

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.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +23 -8
  3. data/.gitignore +3 -0
  4. data/.standard.yml +1 -0
  5. data/Gemfile +13 -11
  6. data/README.md +1 -1
  7. data/Rakefile +42 -50
  8. data/app/assets/images/blacklight/american-geographical-society-library-uwm-libraries.svg +26 -0
  9. data/app/assets/images/blacklight/arizona.svg +4 -0
  10. data/app/assets/images/blacklight/circle-info-solid.svg +1 -0
  11. data/app/assets/images/blacklight/fire-solid.svg +1 -0
  12. data/app/assets/images/blacklight/lightbulb-solid.svg +1 -0
  13. data/app/assets/images/blacklight/nebraska.svg +4 -0
  14. data/app/assets/images/blacklight/rutgers.svg +5 -0
  15. data/app/assets/images/blacklight/triangle-exclamation-solid.svg +1 -0
  16. data/app/assets/javascripts/geoblacklight/basemaps.js +1 -1
  17. data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +8 -0
  18. data/app/components/geoblacklight/display_note_component.html.erb +1 -0
  19. data/app/components/geoblacklight/display_note_component.rb +47 -0
  20. data/app/components/geoblacklight/icon_facet_item_component.rb +2 -2
  21. data/app/controllers/download_controller.rb +36 -37
  22. data/app/controllers/relation_controller.rb +1 -0
  23. data/app/controllers/wms_controller.rb +1 -0
  24. data/app/helpers/arcgis_helper.rb +2 -1
  25. data/app/helpers/blacklight_helper.rb +2 -1
  26. data/app/helpers/carto_helper.rb +3 -2
  27. data/app/helpers/geoblacklight/geoblacklight_helper_behavior.rb +2 -1
  28. data/app/helpers/geoblacklight_helper.rb +47 -36
  29. data/app/models/concerns/geoblacklight/bbox_filter_query.rb +1 -1
  30. data/app/models/concerns/geoblacklight/solr_document/arcgis.rb +1 -0
  31. data/app/models/concerns/geoblacklight/solr_document/carto.rb +1 -0
  32. data/app/models/concerns/geoblacklight/solr_document/citation.rb +3 -2
  33. data/app/models/concerns/geoblacklight/solr_document/finder.rb +1 -0
  34. data/app/models/concerns/geoblacklight/solr_document/inspection.rb +1 -0
  35. data/app/models/concerns/geoblacklight/solr_document.rb +17 -9
  36. data/app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb +2 -1
  37. data/app/presenters/geoblacklight/document_presenter.rb +3 -2
  38. data/app/views/catalog/_citation.html.erb +35 -10
  39. data/app/views/catalog/_show_default_display_note.html.erb +7 -0
  40. data/app/views/catalog/_show_sidebar.html.erb +1 -0
  41. data/app/views/catalog/_show_sidebar_static_map.html.erb +10 -0
  42. data/app/views/relation/index.json.jbuilder +1 -1
  43. data/config/initializers/new_gbl_settings_defaults_4.1.yml +104 -0
  44. data/config/initializers/rails_config.rb +5 -1
  45. data/config/locales/geoblacklight.en.yml +18 -10
  46. data/geoblacklight.gemspec +36 -40
  47. data/lib/generators/geoblacklight/assets_generator.rb +15 -15
  48. data/lib/generators/geoblacklight/install_generator.rb +24 -23
  49. data/lib/generators/geoblacklight/templates/catalog_controller.rb +66 -71
  50. data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +2 -2
  51. data/lib/generators/geoblacklight/templates/settings.yml +76 -24
  52. data/lib/geoblacklight/bounding_box.rb +1 -0
  53. data/lib/geoblacklight/constants.rb +26 -25
  54. data/lib/geoblacklight/download/geojson_download.rb +10 -9
  55. data/lib/geoblacklight/download/geotiff_download.rb +6 -5
  56. data/lib/geoblacklight/download/hgl_download.rb +4 -3
  57. data/lib/geoblacklight/download/kmz_download.rb +11 -10
  58. data/lib/geoblacklight/download/shapefile_download.rb +10 -9
  59. data/lib/geoblacklight/download.rb +12 -11
  60. data/lib/geoblacklight/engine.rb +10 -9
  61. data/lib/geoblacklight/exceptions.rb +3 -0
  62. data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +14 -11
  63. data/lib/geoblacklight/geometry.rb +6 -5
  64. data/lib/geoblacklight/item_viewer.rb +4 -3
  65. data/lib/geoblacklight/metadata/base.rb +4 -3
  66. data/lib/geoblacklight/metadata/fgdc.rb +1 -0
  67. data/lib/geoblacklight/metadata/html.rb +5 -4
  68. data/lib/geoblacklight/metadata/iso19139.rb +1 -0
  69. data/lib/geoblacklight/metadata.rb +1 -0
  70. data/lib/geoblacklight/metadata_transformer/base.rb +5 -4
  71. data/lib/geoblacklight/metadata_transformer/fgdc.rb +1 -0
  72. data/lib/geoblacklight/metadata_transformer/iso19139.rb +1 -0
  73. data/lib/geoblacklight/metadata_transformer.rb +6 -2
  74. data/lib/geoblacklight/reference.rb +3 -2
  75. data/lib/geoblacklight/references.rb +12 -7
  76. data/lib/geoblacklight/relation/ancestors.rb +4 -3
  77. data/lib/geoblacklight/relation/descendants.rb +4 -3
  78. data/lib/geoblacklight/relation/relation_response.rb +3 -2
  79. data/lib/geoblacklight/routes/downloadable.rb +3 -2
  80. data/lib/geoblacklight/routes/exportable.rb +4 -3
  81. data/lib/geoblacklight/routes/wms.rb +2 -1
  82. data/lib/geoblacklight/routes.rb +4 -3
  83. data/lib/geoblacklight/version.rb +2 -1
  84. data/lib/geoblacklight/view_helper_override.rb +3 -2
  85. data/lib/geoblacklight/wms_layer/feature_info_response.rb +5 -4
  86. data/lib/geoblacklight/wms_layer.rb +4 -3
  87. data/lib/geoblacklight.rb +32 -31
  88. data/lib/tasks/geoblacklight.rake +45 -44
  89. data/schema/geoblacklight-schema-aardvark.json +6 -0
  90. data/spec/components/geoblacklight/display_note_component_spec.rb +27 -0
  91. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +11 -10
  92. data/spec/components/geoblacklight/icon_facet_item_component_spec.rb +8 -7
  93. data/spec/config/initializers/rails_config_spec.rb +10 -9
  94. data/spec/controllers/catalog_controller_spec.rb +27 -26
  95. data/spec/controllers/download_controller_spec.rb +50 -49
  96. data/spec/controllers/relation_controller_spec.rb +5 -4
  97. data/spec/controllers/wms_controller_spec.rb +10 -9
  98. data/spec/factories/user.rb +3 -2
  99. data/spec/features/bookmarks_spec.rb +7 -6
  100. data/spec/features/citations_spec.rb +12 -0
  101. data/spec/features/configurable_basemap_spec.rb +12 -11
  102. data/spec/features/data_dictionary_download_spec.rb +11 -10
  103. data/spec/features/download_layer_spec.rb +64 -63
  104. data/spec/features/empty_search_spec.rb +6 -5
  105. data/spec/features/esri_viewer_spec.rb +33 -32
  106. data/spec/features/exports_spec.rb +18 -17
  107. data/spec/features/full_screen_controll_spec.rb +8 -8
  108. data/spec/features/help_text_spec.rb +6 -5
  109. data/spec/features/home_page_spec.rb +30 -29
  110. data/spec/features/iiif_viewer_spec.rb +6 -5
  111. data/spec/features/index_map_spec.rb +17 -16
  112. data/spec/features/layer_inspection_spec.rb +8 -7
  113. data/spec/features/layer_opacity_spec.rb +15 -14
  114. data/spec/features/layer_preview_spec.rb +11 -10
  115. data/spec/features/layer_with_no_references_spec.rb +5 -4
  116. data/spec/features/linkified_attribute_table_spec.rb +8 -7
  117. data/spec/features/metadata_panel_spec.rb +32 -31
  118. data/spec/features/missing_metadata_spec.rb +18 -17
  119. data/spec/features/multiple_downloads_spec.rb +11 -10
  120. data/spec/features/oembed_spec.rb +6 -5
  121. data/spec/features/relations_spec.rb +51 -26
  122. data/spec/features/saved_searches_spec.rb +7 -6
  123. data/spec/features/search_bar_spec.rb +9 -8
  124. data/spec/features/search_results_complex_geometry_spec.rb +12 -11
  125. data/spec/features/search_results_icons_spec.rb +10 -9
  126. data/spec/features/search_results_map_spec.rb +21 -20
  127. data/spec/features/search_results_overlap_ratio_spec.rb +17 -16
  128. data/spec/features/search_spec.rb +19 -18
  129. data/spec/features/show_page_download_spec.rb +15 -14
  130. data/spec/features/show_page_metadata_spec.rb +9 -8
  131. data/spec/features/show_page_sidebar_static_map_spec.rb +21 -0
  132. data/spec/features/sms_spec.rb +12 -11
  133. data/spec/features/split_view.html.erb_spec.rb +56 -55
  134. data/spec/features/suppressed_records_spec.rb +10 -9
  135. data/spec/features/tilejson_spec.rb +12 -9
  136. data/spec/features/tms_spec.rb +6 -5
  137. data/spec/features/web_services_modal_spec.rb +39 -38
  138. data/spec/features/wmts_spec.rb +20 -17
  139. data/spec/features/xyz_spec.rb +6 -5
  140. data/spec/fixtures/manifests/tilejson.json +1 -1
  141. data/spec/fixtures/manifests/wmts-single.xml +5 -5
  142. data/spec/fixtures/solr_documents/actual-papermap1.json +1 -1
  143. data/spec/fixtures/solr_documents/actual-point1.json +1 -1
  144. data/spec/fixtures/solr_documents/actual-polygon1.json +1 -1
  145. data/spec/fixtures/solr_documents/actual-raster1.json +1 -1
  146. data/spec/fixtures/solr_documents/baruch_ancestor1.json +1 -1
  147. data/spec/fixtures/solr_documents/baruch_ancestor2.json +1 -1
  148. data/spec/fixtures/solr_documents/baruch_documentation_download.json +2 -2
  149. data/spec/fixtures/solr_documents/cornell_html_metadata.json +1 -1
  150. data/spec/fixtures/solr_documents/display-note.json +52 -0
  151. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +1 -1
  152. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +1 -1
  153. data/spec/fixtures/solr_documents/esri-feature-layer.json +1 -1
  154. data/spec/fixtures/solr_documents/esri-image-map-layer.json +1 -1
  155. data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +1 -1
  156. data/spec/fixtures/solr_documents/esri-wms-layer.json +1 -1
  157. data/spec/fixtures/solr_documents/harvard_raster.json +1 -1
  158. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
  159. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +1 -1
  160. data/spec/fixtures/solr_documents/index-map-polygon.json +1 -1
  161. data/spec/fixtures/solr_documents/index-map-stanford.json +1 -1
  162. data/spec/fixtures/solr_documents/index_map_point.json +1 -1
  163. data/spec/fixtures/solr_documents/princeton-parent.json +1 -1
  164. data/spec/fixtures/solr_documents/public_direct_download.json +1 -1
  165. data/spec/fixtures/solr_documents/public_iiif_princeton.json +1 -1
  166. data/spec/fixtures/solr_documents/restricted-line.json +1 -1
  167. data/spec/fixtures/solr_documents/tilejson.json +3 -3
  168. data/spec/fixtures/solr_documents/umn_metro_result1.json +2 -2
  169. data/spec/fixtures/solr_documents/umn_state_result1.json +1 -1
  170. data/spec/fixtures/solr_documents/umn_state_result2.json +1 -1
  171. data/spec/fixtures/solr_documents/uva_slug_colon.json +1 -1
  172. data/spec/fixtures/solr_documents/wmts-multiple.json +1 -1
  173. data/spec/fixtures/solr_documents/wmts-single-layer.json +7 -7
  174. data/spec/fixtures/solr_documents/xyz.json +3 -3
  175. data/spec/helpers/arcgis_helper_spec.rb +8 -7
  176. data/spec/helpers/carto_helper_spec.rb +6 -5
  177. data/spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb +10 -15
  178. data/spec/helpers/geoblacklight_helper_spec.rb +139 -138
  179. data/spec/lib/geoblacklight/bounding_box_spec.rb +14 -13
  180. data/spec/lib/geoblacklight/document_presenter_spec.rb +26 -25
  181. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +8 -7
  182. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +8 -7
  183. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +16 -15
  184. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +9 -8
  185. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +8 -7
  186. data/spec/lib/geoblacklight/download_spec.rb +61 -60
  187. data/spec/lib/geoblacklight/geometry_spec.rb +29 -28
  188. data/spec/lib/geoblacklight/item_viewer_spec.rb +25 -24
  189. data/spec/lib/geoblacklight/metadata/base_spec.rb +44 -43
  190. data/spec/lib/geoblacklight/metadata/html_spec.rb +7 -6
  191. data/spec/lib/geoblacklight/metadata_spec.rb +15 -14
  192. data/spec/lib/geoblacklight/metadata_transformer/base_spec.rb +13 -12
  193. data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +8 -7
  194. data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +8 -7
  195. data/spec/lib/geoblacklight/metadata_transformer_spec.rb +15 -14
  196. data/spec/lib/geoblacklight/reference_spec.rb +28 -27
  197. data/spec/lib/geoblacklight/references_spec.rb +89 -76
  198. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +17 -16
  199. data/spec/lib/geoblacklight/relation/descendants_spec.rb +17 -16
  200. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +29 -28
  201. data/spec/lib/geoblacklight/view_helper_override_spec.rb +14 -13
  202. data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +19 -18
  203. data/spec/lib/geoblacklight/wms_layer_spec.rb +31 -30
  204. data/spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb +31 -31
  205. data/spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb +32 -32
  206. data/spec/models/concerns/geoblacklight/solr_document/carto_spec.rb +16 -15
  207. data/spec/models/concerns/geoblacklight/solr_document/citation_spec.rb +7 -6
  208. data/spec/models/concerns/geoblacklight/solr_document/finder_spec.rb +16 -17
  209. data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +7 -6
  210. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +121 -107
  211. data/spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb +8 -7
  212. data/spec/presenters/geoblacklight/bbox_item_presenter_spec.rb +10 -10
  213. data/spec/routing/catalog_routing_spec.rb +4 -3
  214. data/spec/spec_helper.rb +35 -38
  215. data/spec/support/backport_test_helpers.rb +6 -5
  216. data/spec/support/features/session_helpers.rb +8 -7
  217. data/spec/support/features.rb +2 -1
  218. data/spec/support/fixtures.rb +2 -1
  219. data/spec/tasks/geoblacklight_spec.rb +10 -9
  220. data/spec/test_app_templates/lib/generators/test_app_generator.rb +16 -15
  221. data/spec/views/catalog/_document_split.html.erb_spec.rb +3 -2
  222. data/spec/views/catalog/_index_split.html.erb_spec.rb +3 -2
  223. data/spec/views/catalog/_results_pagination.html.erb_spec.rb +5 -4
  224. data/spec/views/catalog/_show_downloads.html.erb_spec.rb +11 -10
  225. data/spec/views/catalog/_show_tools.html.erb_spec.rb +13 -12
  226. data/template.rb +9 -8
  227. metadata +40 -216
  228. data/.gitmodules +0 -0
  229. data/.rubocop.yml +0 -111
  230. data/.rubocop_todo.yml +0 -437
  231. data/config/initializers/new_gbl_settings_defaults_3_4.yml +0 -6
  232. /data/app/assets/images/blacklight/{berkeley.svg → university-of-california-berkeley.svg} +0 -0
@@ -1,58 +1,59 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
3
2
 
4
- feature 'web services tools' do
5
- feature 'when wms/wfs are provided', js: true do
6
- scenario 'shows up in tools' do
7
- visit solr_document_path 'stanford-cg357zz0321'
8
- expect(page).to have_css 'div.web-services-sidebar a', text: 'Web services'
9
- click_link 'Web services'
10
- within '.modal-body' do
11
- expect(page).to have_css 'input', count: 4
12
- expect(page).to have_css 'label', text: 'Web Feature Service (WFS)'
3
+ require "spec_helper"
4
+
5
+ feature "web services tools" do
6
+ feature "when wms/wfs are provided", js: true do
7
+ scenario "shows up in tools" do
8
+ visit solr_document_path "stanford-cg357zz0321"
9
+ expect(page).to have_css "div.web-services-sidebar a", text: "Web services"
10
+ click_link "Web services"
11
+ within ".modal-body" do
12
+ expect(page).to have_css "input", count: 4
13
+ expect(page).to have_css "label", text: "Web Feature Service (WFS)"
13
14
  expect(page).to have_css 'input[value="https://geowebservices-restricted.stanford.edu/geoserver/wfs"]'
14
15
  expect(page).to have_css 'input[value="druid:cg357zz0321"]', count: 2
15
- expect(page).to have_css 'label', text: 'Web Mapping Service (WMS)'
16
+ expect(page).to have_css "label", text: "Web Mapping Service (WMS)"
16
17
  expect(page).to have_css 'input[value="https://geowebservices-restricted.stanford.edu/geoserver/wms"]'
17
18
  end
18
19
  end
19
20
  end
20
- feature 'no wms or wfs provided' do
21
- scenario 'does not show up in tools' do
22
- visit solr_document_path 'mit-001145244'
23
- expect(page).not_to have_css 'div.web-services-sidebar a', text: 'Web services'
21
+ feature "no wms or wfs provided" do
22
+ scenario "does not show up in tools" do
23
+ visit solr_document_path "mit-001145244"
24
+ expect(page).not_to have_css "div.web-services-sidebar a", text: "Web services"
24
25
  end
25
26
  end
26
- feature 'when xyz tile reference is provided', js: true do
27
- scenario 'shows up in tools' do
28
- visit solr_document_path '6f47b103-9955-4bbe-a364-387039623106-xyz'
29
- expect(page).to have_css 'div.web-services-sidebar a', text: 'Web services'
30
- click_link 'Web services'
31
- within '.modal-body' do
32
- expect(page).to have_css 'label', text: 'XYZ Tiles'
27
+ feature "when xyz tile reference is provided", js: true do
28
+ scenario "shows up in tools" do
29
+ visit solr_document_path "6f47b103-9955-4bbe-a364-387039623106-xyz"
30
+ expect(page).to have_css "div.web-services-sidebar a", text: "Web services"
31
+ click_link "Web services"
32
+ within ".modal-body" do
33
+ expect(page).to have_css "label", text: "XYZ Tiles"
33
34
  expect(page).to have_css 'input[value="https://earthquake.usgs.gov/basemap/tiles/faults/{z}/{x}/{y}.png"]'
34
35
  end
35
36
  end
36
37
  end
37
- feature 'when wmts tile reference is provided', js: true do
38
- scenario 'shows up in tools' do
39
- visit solr_document_path 'princeton-fk4544658v-wmts'
40
- expect(page).to have_css 'div.web-services-sidebar a', text: 'Web services'
41
- click_link 'Web services'
42
- within '.modal-body' do
43
- expect(page).to have_css 'label', text: 'Web Map Tile Service'
44
- expect(page).to have_css 'input[value="https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?id=2a91d82c541c426cb787cc62afe8f248"]'
38
+ feature "when wmts tile reference is provided", js: true do
39
+ scenario "shows up in tools" do
40
+ visit solr_document_path "princeton-fk4544658v-wmts"
41
+ expect(page).to have_css "div.web-services-sidebar a", text: "Web services"
42
+ click_link "Web services"
43
+ within ".modal-body" do
44
+ expect(page).to have_css "label", text: "Web Map Tile Service"
45
+ expect(page).to have_css 'input[value="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml"]'
45
46
  end
46
47
  end
47
48
  end
48
- feature 'when tilejson reference is provided', js: true do
49
- scenario 'shows up in tools' do
50
- visit solr_document_path 'princeton-fk4544658v-tilejson'
51
- expect(page).to have_css 'div.web-services-sidebar a', text: 'Web services'
52
- click_link 'Web services'
53
- within '.modal-body' do
54
- expect(page).to have_css 'label', text: 'TileJSON Document'
55
- expect(page).to have_css 'input[value="https://map-tiles-staging.princeton.edu/mosaicjson/tilejson.json?id=2a91d82c541c426cb787cc62afe8f248"]'
49
+ feature "when tilejson reference is provided", js: true do
50
+ scenario "shows up in tools" do
51
+ visit solr_document_path "princeton-fk4544658v-tilejson"
52
+ expect(page).to have_css "div.web-services-sidebar a", text: "Web services"
53
+ click_link "Web services"
54
+ within ".modal-body" do
55
+ expect(page).to have_css "label", text: "TileJSON Document"
56
+ expect(page).to have_css 'input[value="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/tilejson.json"]'
56
57
  end
57
58
  end
58
59
  end
@@ -1,34 +1,37 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
3
2
 
4
- feature 'wmts layer' do
3
+ require "spec_helper"
4
+
5
+ feature "wmts layer" do
5
6
  before do
6
- WebMock.disable_net_connect!(allow_localhost: true, allow: 'chromedriver.storage.googleapis.com')
7
+ WebMock.disable_net_connect!(allow_localhost: true, allow: "chromedriver.storage.googleapis.com")
7
8
  end
8
9
 
9
10
  after do
10
11
  WebMock.allow_net_connect!
11
12
  end
12
13
 
13
- context 'when referencing a WMTSCapabilities document with a single layer' do
14
- scenario 'displays the layer', js: true do
14
+ context "when referencing a WMTSCapabilities document with a single layer" do
15
+ scenario "displays the layer", js: true do
15
16
  # Mock wmts manifest url
16
- stub_request(:get, 'https://map-tiles-staging.princeton.edu/mosaicjson/WMTSCapabilities.xml?id=2a91d82c541c426cb787cc62afe8f248')
17
- .to_return(status: 200, body: read_fixture('manifests/wmts-single.xml'))
17
+ stub_request(:get, "https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml")
18
+ .to_return(status: 200, body: read_fixture("manifests/wmts-single.xml"))
18
19
 
19
- visit solr_document_path('princeton-fk4544658v-wmts')
20
- expect(page).to have_css '.leaflet-control-zoom', visible: :visible
21
- expect(page).to have_css "img[src*='map-tiles-staging.princeton.edu/mosaicjson/tiles/WebMercatorQuad']"
20
+ visit solr_document_path("princeton-fk4544658v-wmts")
21
+ expect(page).to have_css ".leaflet-control-zoom", visible: :visible
22
+ expect(page).to have_css "div[data-protocol='Wmts']"
23
+ expect(page).to have_css "div[data-url='https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml']"
22
24
  end
23
25
  end
24
- context 'when referencing a WMTSCapabilities document with a multiple layers' do
25
- scenario 'displays the layer referenced in the layer_id field', js: true do
26
+ context "when referencing a WMTSCapabilities document with a multiple layers" do
27
+ scenario "displays the layer referenced in the layer_id field", js: true do
26
28
  # Mock wmts manifest url
27
- stub_request(:get, 'https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml')
28
- .to_return(status: 200, body: read_fixture('manifests/wmts-multiple.xml'))
29
- visit solr_document_path('princeton-fk4db9hn29')
30
- expect(page).to have_css '.leaflet-control-zoom', visible: :visible
31
- expect(page).to have_css "img[src*='http://maps1.wien.gv.at/wmts/lb2016/farbe/google3857']"
29
+ stub_request(:get, "https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml")
30
+ .to_return(status: 200, body: read_fixture("manifests/wmts-multiple.xml"))
31
+ visit solr_document_path("princeton-fk4db9hn29")
32
+ expect(page).to have_css ".leaflet-control-zoom", visible: :visible
33
+ expect(page).to have_css "div[data-protocol='Wmts']"
34
+ expect(page).to have_css "div[data-url='https://maps.wien.gv.at/wmts/1.0.0/WMTSCapabilities.xml']"
32
35
  end
33
36
  end
34
37
  end
@@ -1,10 +1,11 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
3
2
 
4
- feature 'xyz layer' do
5
- scenario 'displays tms layer', js: true do
6
- visit solr_document_path('6f47b103-9955-4bbe-a364-387039623106-xyz')
7
- expect(page).to have_css '.leaflet-control-zoom', visible: :visible
3
+ require "spec_helper"
4
+
5
+ feature "xyz layer" do
6
+ scenario "displays tms layer", js: true do
7
+ visit solr_document_path("6f47b103-9955-4bbe-a364-387039623106-xyz")
8
+ expect(page).to have_css ".leaflet-control-zoom", visible: :visible
8
9
  expect(page).to have_css "img[src*='earthquake.usgs.gov']"
9
10
  end
10
11
  end
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "scheme": "xyz",
5
5
  "tiles": [
6
- "https://map-tiles-staging.princeton.edu/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url=s3%3A%2F%2Ffiggy-geo-staging%2F2a%2F91%2Fd8%2F2a91d82c541c426cb787cc62afe8f248%2Fmosaic-6c5b32bfe4cb8e4fb07d32cd6656d024.json&rescale=0%2C255"
6
+ "https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}@1x"
7
7
  ],
8
8
  "minzoom": 8,
9
9
  "maxzoom": 13,
@@ -8,7 +8,7 @@
8
8
  <ows:Operation name="GetCapabilities">
9
9
  <ows:DCP>
10
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&amp;rescale=0%2C255">
11
+ <ows:Get xlink:href="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml">
12
12
  <ows:Constraint name="GetEncoding">
13
13
  <ows:AllowedValues>
14
14
  <ows:Value>RESTful</ows:Value>
@@ -21,7 +21,7 @@
21
21
  <ows:Operation name="GetTile">
22
22
  <ows:DCP>
23
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&amp;rescale=0%2C255">
24
+ <ows:Get xlink:href="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml">
25
25
  <ows:Constraint name="GetEncoding">
26
26
  <ows:AllowedValues>
27
27
  <ows:Value>RESTful</ows:Value>
@@ -48,7 +48,7 @@
48
48
  <TileMatrixSetLink>
49
49
  <TileMatrixSet>WebMercatorQuad</TileMatrixSet>
50
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&amp;rescale=0%2C255"/>
51
+ <ResourceURL format="image/png" resourceType="tile" template="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/tiles/WebMercatorQuad/{TileMatrix}/{TileCol}/{TileRow}@1x.png"/>
52
52
  </Layer>
53
53
  <TileMatrixSet>
54
54
  <ows:Identifier>WebMercatorQuad</ows:Identifier>
@@ -122,5 +122,5 @@
122
122
 
123
123
  </TileMatrixSet>
124
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&amp;rescale=0%2C255"/>
126
- </Capabilities>
125
+ <ServiceMetadataURL xlink:href="https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/WMTSCapabilities.xml"/>
126
+ </Capabilities>
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dct_issued_s": "1905-06-22",
28
28
  "gbl_indexYear_im": [
29
- "1996"
29
+ 1996
30
30
  ],
31
31
  "gbl_dateRange_drsim": [
32
32
  "[1996 TO 1996]"
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dct_issued_s": "1905-07-06",
35
35
  "gbl_indexYear_im": [
36
- "1905"
36
+ 1905
37
37
  ],
38
38
  "gbl_dateRange_drsim": [
39
39
  "[1905 TO 2014]"
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dct_issued_s": "1905-06-27",
30
30
  "gbl_indexYear_im": [
31
- "2004"
31
+ 2004
32
32
  ],
33
33
  "gbl_dateRange_drsim": [
34
34
  "[2004 TO 2004]"
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dct_issued_s": "1905-06-27",
42
42
  "gbl_indexYear_im": [
43
- "2005"
43
+ 2005
44
44
  ],
45
45
  "gbl_dateRange_drsim": [
46
46
  "[2005 TO 2005]"
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dct_issued_s": "2016-01-15",
40
40
  "gbl_indexYear_im": [
41
- "2010"
41
+ 2010
42
42
  ],
43
43
  "gbl_dateRange_drsim": [
44
44
  "[2010 TO 2016]"
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dct_issued_s": "2016-01-15",
40
40
  "gbl_indexYear_im": [
41
- "2010"
41
+ 2010
42
42
  ],
43
43
  "gbl_dateRange_drsim": [
44
44
  "[2010 TO 2016]"
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dct_issued_s": "2016-01-15",
42
42
  "gbl_indexYear_im": [
43
- "2015"
43
+ 2015
44
44
  ],
45
45
  "gbl_dateRange_drsim": [
46
46
  "[2015 TO 2015]"
@@ -59,7 +59,7 @@
59
59
  "locn_geometry": "ENVELOPE(-74.030876,-73.755405,40.903125,40.576127)",
60
60
  "dcat_centroid": "40.739626,-73.8931405",
61
61
  "dct_source_sm": [
62
- "nyu_2451_34635",
62
+ "nyu_2451_34635",
63
63
  "nyu_2451_34636"
64
64
  ],
65
65
  "dct_accessRights_s": "Public",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dct_issued_s": "2000-06-00",
40
40
  "gbl_indexYear_im": [
41
- "2000"
41
+ 2000
42
42
  ],
43
43
  "gbl_dateRange_drsim": [
44
44
  "[2000 TO *]"
@@ -0,0 +1,52 @@
1
+ {
2
+ "dct_title_s": "Building Footprints, Frobozz Headquarters, 781 GUE",
3
+ "dct_description_sm": [
4
+ "This is just a test record that has a couple of display notes."
5
+ ],
6
+ "dct_language_sm": [
7
+ "eng"
8
+ ],
9
+ "gbl_displayNote_sm": [
10
+ "This is a generic note about the resource that may be useful to users of this data.",
11
+ "Danger: This document is highly flammable.",
12
+ "Info: This dataset represents the buildings before they were destroyed by the Curse of Megaboz.",
13
+ "Tip: Be sure to look in the mailbox outside the white house.",
14
+ "Warning: This data is fictional."
15
+ ],
16
+ "dct_creator_sm": [
17
+ "FrobozzCo International"
18
+ ],
19
+ "dct_publisher_sm": [
20
+ "FrobozzCo International"
21
+ ],
22
+ "schema_provider_s": "Cornell",
23
+ "gbl_resourceClass_sm": [
24
+ "Datasets"
25
+ ],
26
+ "gbl_resourceType_sm": [
27
+ "Polygon data"
28
+ ],
29
+ "dct_subject_sm": [
30
+ "Buildings"
31
+ ],
32
+ "dcat_keyword_sm": [
33
+ "GBL Fixture records"
34
+ ],
35
+ "dct_temporal_sm": [
36
+ "781 GUE"
37
+ ],
38
+ "dct_issued_s": "1983-01-01",
39
+ "gbl_indexYear_im": [
40
+ 1983
41
+ ],
42
+ "dct_spatial_sm": [
43
+ "Flatheadia, Great Underground Empire"
44
+ ],
45
+ "locn_geometry": "ENVELOPE(-71.118450,-71.074848,42.381246,42.354612)",
46
+ "dcat_bbox": "ENVELOPE(-71.118450,-71.074848,42.381246,42.354612)",
47
+ "dct_accessRights_s": "Public",
48
+ "dct_format_s": "Shapefile",
49
+ "id": "frobozz-111",
50
+ "gbl_mdModified_dt": "2023-03-03T18:29:16Z",
51
+ "gbl_mdVersion_s": "Aardvark"
52
+ }
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dct_issued_s": "1905-06-20",
36
36
  "gbl_indexYear_im": [
37
- "1998"
37
+ 1998
38
38
  ],
39
39
  "gbl_dateRange_drsim": [
40
40
  "[1998 TO 1998]"
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dct_issued_s": "2003-05-30",
37
37
  "gbl_indexYear_im": [
38
- "2003"
38
+ 2003
39
39
  ],
40
40
  "gbl_dateRange_drsim": [
41
41
  "[2003 TO 2003]"
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dct_issued_s": "2016-02-16",
36
36
  "gbl_indexYear_im": [
37
- "2016"
37
+ 2016
38
38
  ],
39
39
  "gbl_dateRange_drsim": [
40
40
  "[2016 TO 2016]"
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dct_issued_s": "2015-10-31",
33
33
  "gbl_indexYear_im": [
34
- "1929"
34
+ 1929
35
35
  ],
36
36
  "gbl_dateRange_drsim": [
37
37
  "[1929 TO 1929]"
@@ -27,7 +27,7 @@
27
27
  "2010"
28
28
  ],
29
29
  "gbl_indexYear_im": [
30
- "2010"
30
+ 2010
31
31
  ],
32
32
  "gbl_dateRange_drsim": [
33
33
  "[2010 TO 2010]"
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dct_issued_s": "2003-01-28",
37
37
  "gbl_indexYear_im": [
38
- "1972"
38
+ 1972
39
39
  ],
40
40
  "gbl_dateRange_drsim": [
41
41
  "[1972 TO 1997]"
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dct_issued_s": "1905-06-22",
42
42
  "gbl_indexYear_im": [
43
- "1834"
43
+ 1834
44
44
  ],
45
45
  "gbl_dateRange_drsim": [
46
46
  "[1834 TO 1834]"
@@ -24,7 +24,7 @@
24
24
  "1750"
25
25
  ],
26
26
  "gbl_indexYear_im": [
27
- "1750"
27
+ 1750
28
28
  ],
29
29
  "gbl_dateRange_drsim": [
30
30
  "[1750 TO 1750]"
@@ -35,7 +35,7 @@
35
35
  "1995"
36
36
  ],
37
37
  "gbl_indexYear_im": [
38
- "1995"
38
+ 1995
39
39
  ],
40
40
  "gbl_dateRange_drsim": [
41
41
  "[1995 TO 1995]"
@@ -35,7 +35,7 @@
35
35
  "1995"
36
36
  ],
37
37
  "gbl_indexYear_im": [
38
- "1995"
38
+ 1995
39
39
  ],
40
40
  "gbl_dateRange_drsim": [
41
41
  "[1995 TO 1995]"
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dct_issued_s": "1905-07-08",
42
42
  "gbl_indexYear_im": [
43
- "1944"
43
+ 1944
44
44
  ],
45
45
  "gbl_dateRange_drsim": [
46
46
  "[1944 TO 1944]"
@@ -33,7 +33,7 @@
33
33
  ],
34
34
  "dct_issued_s": "c.1960",
35
35
  "gbl_indexYear_im": [
36
- "1960"
36
+ 1960
37
37
  ],
38
38
  "gbl_dateRange_drsim": [
39
39
  "[1960 TO 1969]"
@@ -29,7 +29,7 @@
29
29
  "GBL Fixture records"
30
30
  ],
31
31
  "gbl_indexYear_im": [
32
- "1885"
32
+ 1885
33
33
  ],
34
34
  "gbl_dateRange_drsim": [
35
35
  "[1885 TO 1885]"
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dct_issued_s": "1905-06-27",
37
37
  "gbl_indexYear_im": [
38
- "2005"
38
+ 2005
39
39
  ],
40
40
  "gbl_dateRange_drsim": [
41
41
  "[2005 TO 2005]"
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "dct_issued_s": "1904-11-12",
38
38
  "gbl_indexYear_im": [
39
- "1778"
39
+ 1778
40
40
  ],
41
41
  "gbl_dateRange_drsim": [
42
42
  "[1778 TO 1778]"
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "dct_issued_s": "2002",
43
43
  "gbl_indexYear_im": [
44
- "2002"
44
+ 2002
45
45
  ],
46
46
  "gbl_dateRange_drsim": [
47
47
  "[2002 TO 2002]"
@@ -30,12 +30,12 @@
30
30
  "Balkan Peninsula",
31
31
  "Turkey"
32
32
  ],
33
- "dct_issued_s": 1908,
33
+ "dct_issued_s": "1908",
34
34
  "gbl_indexYear_im": [
35
- "1908"
35
+ 1908
36
36
  ],
37
37
  "gbl_mdModified_dt": "2022-02-03T22:13:40Z",
38
- "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\"}",
38
+ "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/2a91d82c541c426cb787cc62afe8f248/WebMercatorQuad/{z}/{x}/{y}@1x.png\",\"https://github.com/mapbox/tilejson-spec\":\"https://map-tiles-staging.princeton.edu/2a91d82c541c426cb787cc62afe8f248/mosaicjson/tilejson.json\"}",
39
39
  "layer_geom_type_s": "Image",
40
40
  "gbl_resourceClass_sm": [
41
41
  "Maps",
@@ -35,8 +35,8 @@
35
35
  ],
36
36
  "dct_issued_s": "2015-10-01",
37
37
  "gbl_indexYear_im": [
38
- "2014",
39
- "2030"
38
+ 2014,
39
+ 2030
40
40
  ],
41
41
  "gbl_dateRange_drsim": [
42
42
  "[2014 TO 2014]"
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dct_issued_s": "2015-11-18",
36
36
  "gbl_indexYear_im": [
37
- "2015"
37
+ 2015
38
38
  ],
39
39
  "gbl_dateRange_drsim": [
40
40
  "[2015 TO 2015]"
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "dct_issued_s": "2015-11-18",
36
36
  "gbl_indexYear_im": [
37
- "1998"
37
+ 1998
38
38
  ],
39
39
  "gbl_dateRange_drsim": [
40
40
  "[1998 TO 1998]"
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dct_issued_s": "2008-10-17",
30
30
  "gbl_indexYear_im": [
31
- "2015"
31
+ 2015
32
32
  ],
33
33
  "gbl_dateRange_drsim": [
34
34
  "[2015 TO 2018]"
@@ -23,7 +23,7 @@
23
23
  "2022"
24
24
  ],
25
25
  "gbl_indexYear_im": [
26
- "2022"
26
+ 2022
27
27
  ],
28
28
  "gbl_mdModified_dt": "2022-02-04T22:13:37Z",
29
29
  "gbl_wxsIdentifier_s": "lb2016",