geoblacklight 4.0.0.pre.alpha.3 → 4.0.0.pre.rc3
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/ISSUE_TEMPLATE.md +1 -1
- data/.github/workflows/ruby.yml +32 -103
- data/.gitignore +1 -0
- data/.rubocop.yml +12 -6
- data/.rubocop_todo.yml +0 -3
- data/.solr_wrapper +2 -0
- data/README.md +1 -4
- data/Rakefile +0 -1
- data/app/assets/images/blacklight/child-item.svg +3 -0
- data/app/assets/images/blacklight/collections.svg +4 -0
- data/app/assets/images/blacklight/datasets.svg +7 -0
- data/app/assets/images/blacklight/geoblacklight-icons.json +363 -332
- data/app/assets/images/blacklight/imagery.svg +4 -0
- data/app/assets/images/blacklight/maps.svg +4 -0
- data/app/assets/images/blacklight/parent-item.svg +3 -0
- data/app/assets/images/blacklight/university-of-colorado-boulder.svg +6 -0
- data/app/assets/images/blacklight/websites.svg +4 -0
- data/app/assets/javascripts/geoblacklight/controls/fullscreen.js +8 -0
- data/app/assets/javascripts/geoblacklight/geoblacklight.js +2 -1
- data/app/assets/javascripts/geoblacklight/viewers/esri.js +1 -0
- data/app/assets/javascripts/geoblacklight/viewers/index_map.js +1 -0
- 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/viewer.js +3 -0
- 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/app/assets/stylesheets/geoblacklight/geoblacklight.scss +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/_base.scss +0 -1
- data/app/assets/stylesheets/geoblacklight/modules/_styles.scss +5 -1
- data/app/assets/stylesheets/geoblacklight/modules/downloads.scss +20 -47
- data/app/assets/stylesheets/geoblacklight/modules/index_maps.scss +68 -0
- data/app/assets/stylesheets/geoblacklight/modules/item.scss +16 -0
- data/app/assets/stylesheets/geoblacklight/modules/modal.scss +6 -0
- data/app/assets/stylesheets/geoblacklight/modules/sidebar.scss +4 -0
- data/app/components/geoblacklight/icon_facet_item_component.rb +33 -0
- data/app/controllers/wms_controller.rb +1 -1
- data/app/helpers/geoblacklight_helper.rb +6 -45
- data/app/models/concerns/geoblacklight/bbox_filter_field.rb +64 -0
- data/app/models/concerns/geoblacklight/bbox_filter_query.rb +50 -0
- data/app/models/concerns/geoblacklight/solr_document.rb +1 -1
- data/app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb +31 -0
- data/app/presenters/geoblacklight/bbox_item_presenter.rb +9 -0
- data/app/views/catalog/_downloads_collapse.html.erb +27 -0
- data/app/views/catalog/_header_icons.html.erb +2 -2
- data/app/views/catalog/_index_split_default.html.erb +2 -2
- data/app/views/catalog/_show_default_viewer_container.html.erb +17 -0
- data/app/views/catalog/_show_downloads.html.erb +10 -21
- data/app/views/catalog/_show_sidebar.html.erb +3 -0
- data/app/views/catalog/_show_web_services.html.erb +11 -0
- data/app/views/catalog/_web_services.html.erb +3 -2
- data/app/views/catalog/web_services.html.erb +1 -1
- data/app/views/shared/_header_navbar.html.erb +13 -3
- data/config/locales/geoblacklight.en.yml +6 -1
- data/geoblacklight.gemspec +7 -7
- data/lib/generators/geoblacklight/assets_generator.rb +1 -1
- data/lib/generators/geoblacklight/install_generator.rb +18 -1
- data/lib/generators/geoblacklight/templates/assets/_customizations.scss +5 -4
- data/lib/generators/geoblacklight/templates/assets/application.scss +0 -3
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +86 -57
- data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +5 -5
- data/lib/generators/geoblacklight/templates/settings.yml +62 -25
- data/lib/geoblacklight/bounding_box.rb +5 -1
- data/lib/geoblacklight/constants.rb +3 -0
- data/lib/geoblacklight/download.rb +1 -1
- data/lib/geoblacklight/engine.rb +7 -4
- data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +176 -0
- data/lib/geoblacklight/item_viewer.rb +13 -1
- data/lib/geoblacklight/metadata/base.rb +2 -1
- data/lib/geoblacklight/metadata_transformer/base.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/geoblacklight/view_helper_override.rb +2 -28
- data/lib/geoblacklight.rb +0 -10
- data/lib/tasks/geoblacklight.rake +1 -1
- data/schema/geoblacklight-schema-aardvark.json +3 -23
- data/solr/conf/schema.xml +37 -43
- data/solr/conf/solrconfig.xml +17 -17
- data/spec/components/geoblacklight/icon_facet_item_component_spec.rb +17 -0
- data/spec/config/initializers/rails_config_spec.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +8 -8
- data/spec/controllers/download_controller_spec.rb +4 -4
- data/spec/controllers/relation_controller_spec.rb +1 -1
- data/spec/controllers/wms_controller_spec.rb +2 -4
- data/spec/features/download_layer_spec.rb +31 -14
- data/spec/features/esri_viewer_spec.rb +5 -1
- data/spec/features/full_screen_controll_spec.rb +15 -0
- data/spec/features/home_page_spec.rb +2 -2
- data/spec/features/index_map_spec.rb +2 -2
- data/spec/features/missing_metadata_spec.rb +1 -1
- data/spec/features/multiple_downloads_spec.rb +2 -1
- data/spec/features/relations_spec.rb +12 -1
- data/spec/features/saved_searches_spec.rb +1 -1
- data/spec/features/search_results_complex_geometry_spec.rb +24 -0
- data/spec/features/search_results_icons_spec.rb +16 -0
- data/spec/features/search_results_map_spec.rb +2 -2
- data/spec/features/search_spec.rb +17 -0
- data/spec/features/show_page_download_spec.rb +6 -3
- data/spec/features/show_page_metadata_spec.rb +2 -2
- data/spec/features/split_view.html.erb_spec.rb +12 -1
- data/spec/features/tilejson_spec.rb +22 -0
- data/spec/features/tms_spec.rb +2 -2
- data/spec/features/web_services_modal_spec.rb +35 -2
- 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/README.md +46 -43
- data/spec/fixtures/solr_documents/actual-papermap1.json +2 -1
- data/spec/fixtures/solr_documents/actual-point1.json +2 -1
- data/spec/fixtures/solr_documents/actual-polygon1.json +2 -1
- data/spec/fixtures/solr_documents/actual-raster1.json +3 -2
- data/spec/fixtures/solr_documents/b1g_wabash_child_15.json +62 -0
- data/spec/fixtures/solr_documents/b1g_wabash_child_16.json +64 -0
- data/spec/fixtures/solr_documents/b1g_wabash_child_17.json +62 -0
- data/spec/fixtures/solr_documents/b1g_wabash_child_18.json +62 -0
- data/spec/fixtures/solr_documents/b1g_wabash_parent.json +59 -0
- data/spec/fixtures/solr_documents/baruch_ancestor1.json +2 -1
- data/spec/fixtures/solr_documents/baruch_ancestor2.json +2 -1
- data/spec/fixtures/solr_documents/baruch_documentation_download.json +1 -1
- data/spec/fixtures/solr_documents/bbox-spans-180.json +2 -1
- data/spec/fixtures/solr_documents/cornell_html_metadata.json +4 -3
- data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +3 -2
- data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +3 -2
- data/spec/fixtures/solr_documents/esri-feature-layer.json +2 -1
- data/spec/fixtures/solr_documents/esri-image-map-layer.json +3 -2
- data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +2 -1
- data/spec/fixtures/solr_documents/esri-wms-layer.json +2 -1
- data/spec/fixtures/solr_documents/harvard_raster.json +3 -2
- data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +3 -2
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +2 -1
- data/spec/fixtures/solr_documents/index-map-polygon.json +2 -1
- data/spec/fixtures/solr_documents/index-map-stanford.json +2 -1
- data/spec/fixtures/solr_documents/index_map_point.json +3 -2
- data/spec/fixtures/solr_documents/metadata_no_provider.json +2 -1
- data/spec/fixtures/solr_documents/multiple-downloads.json +3 -2
- data/spec/fixtures/solr_documents/no_spatial.json +1 -4
- data/spec/fixtures/solr_documents/oembed.json +2 -1
- data/spec/fixtures/solr_documents/princeton-child1.json +3 -2
- data/spec/fixtures/solr_documents/princeton-child2.json +3 -2
- data/spec/fixtures/solr_documents/princeton-child3.json +2 -1
- data/spec/fixtures/solr_documents/princeton-child4.json +3 -2
- data/spec/fixtures/solr_documents/princeton-parent.json +5 -3
- data/spec/fixtures/solr_documents/public_direct_download.json +2 -1
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +3 -2
- data/spec/fixtures/solr_documents/public_polygon_mit.json +2 -1
- data/spec/fixtures/solr_documents/restricted-line.json +2 -1
- data/spec/fixtures/solr_documents/tilejson.json +48 -0
- data/spec/fixtures/solr_documents/tms.json +15 -18
- data/spec/fixtures/solr_documents/umn_metro_result1.json +5 -3
- data/spec/fixtures/solr_documents/umn_state_result1.json +3 -2
- data/spec/fixtures/solr_documents/umn_state_result2.json +3 -5
- data/spec/fixtures/solr_documents/uva_slug_colon.json +2 -1
- data/spec/fixtures/solr_documents/wmts-multiple.json +41 -0
- data/spec/fixtures/solr_documents/wmts-single-layer.json +48 -0
- data/spec/fixtures/solr_documents/xyz.json +46 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +14 -37
- data/spec/lib/geoblacklight/document_presenter_spec.rb +3 -3
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -1
- data/spec/lib/geoblacklight/download_spec.rb +2 -2
- data/spec/lib/geoblacklight/metadata/base_spec.rb +19 -1
- data/spec/lib/geoblacklight/metadata_transformer/fgdc_spec.rb +1 -1
- data/spec/lib/geoblacklight/metadata_transformer/iso19139_spec.rb +1 -1
- data/spec/lib/geoblacklight/references_spec.rb +5 -3
- data/spec/lib/geoblacklight/relation/relation_response_spec.rb +5 -0
- data/spec/lib/geoblacklight/view_helper_override_spec.rb +0 -10
- data/spec/lib/geoblacklight/wms_layer_spec.rb +1 -1
- data/spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb +96 -0
- data/spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb +105 -0
- data/spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb +2 -1
- data/spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb +31 -0
- data/spec/presenters/geoblacklight/bbox_item_presenter_spec.rb +36 -0
- data/spec/spec_helper.rb +8 -3
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +4 -4
- data/spec/views/catalog/_results_pagination.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_downloads.html.erb_spec.rb +6 -6
- data/template.rb +2 -4
- data/vendor/assets/images/fullscreen.png +0 -0
- data/vendor/assets/images/fullscreen@2x.png +0 -0
- data/vendor/assets/javascripts/Leaflet.fullscreen.js +152 -0
- data/vendor/assets/javascripts/esri-leaflet.js +10 -3
- data/vendor/assets/javascripts/esri-leaflet.js.map +1 -1
- data/vendor/assets/javascripts/leaflet-iiif.js +39 -18
- data/vendor/assets/javascripts/leaflet-src.js.erb +14126 -0
- data/vendor/assets/javascripts/leaflet-src.js.map +1 -1
- data/vendor/assets/stylesheets/leaflet.css +640 -634
- data/vendor/assets/stylesheets/leaflet.fullscreen.css +40 -0
- metadata +102 -49
- data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +0 -71
- data/app/views/catalog/_download_generated_link.html.erb +0 -4
- data/app/views/catalog/_download_link.html.erb +0 -3
- data/app/views/catalog/_downloads_generated.html.erb +0 -6
- data/app/views/catalog/_downloads_primary.html.erb +0 -21
- data/app/views/catalog/_downloads_secondary.html.erb +0 -39
- data/app/views/catalog/_icon_facet.html.erb +0 -16
- data/bin/coverage.rb +0 -36
- data/lib/generators/geoblacklight/templates/Procfile +0 -3
- data/lib/generators/geoblacklight/templates/package.json +0 -14
- data/lib/generators/geoblacklight/templates/webpacker.yml +0 -67
- data/lib/generators/geoblacklight/webpacker_generator.rb +0 -36
- data/lib/geoblacklight/catalog_helper_override.rb +0 -14
- data/spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb +0 -97
- data/vendor/assets/javascripts/leaflet.js.erb +0 -13922
- data/vendor/assets/stylesheets/leaflet-label.css +0 -54
@@ -0,0 +1,40 @@
|
|
1
|
+
.leaflet-control-fullscreen a {
|
2
|
+
background:#fff url(fullscreen.png) no-repeat 0 0;
|
3
|
+
background-size:26px 52px;
|
4
|
+
}
|
5
|
+
.leaflet-touch .leaflet-control-fullscreen a {
|
6
|
+
background-position: 2px 2px;
|
7
|
+
}
|
8
|
+
.leaflet-fullscreen-on .leaflet-control-fullscreen a {
|
9
|
+
background-position:0 -26px;
|
10
|
+
}
|
11
|
+
.leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a {
|
12
|
+
background-position: 2px -24px;
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Do not combine these two rules; IE will break. */
|
16
|
+
.leaflet-container:-webkit-full-screen {
|
17
|
+
width:100%!important;
|
18
|
+
height:100%!important;
|
19
|
+
}
|
20
|
+
.leaflet-container.leaflet-fullscreen-on {
|
21
|
+
width:100%!important;
|
22
|
+
height:100%!important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.leaflet-pseudo-fullscreen {
|
26
|
+
position:fixed!important;
|
27
|
+
width:100%!important;
|
28
|
+
height:100%!important;
|
29
|
+
top:0!important;
|
30
|
+
left:0!important;
|
31
|
+
z-index:99999;
|
32
|
+
}
|
33
|
+
|
34
|
+
@media
|
35
|
+
(-webkit-min-device-pixel-ratio:2),
|
36
|
+
(min-resolution:192dpi) {
|
37
|
+
.leaflet-control-fullscreen a {
|
38
|
+
background-image:url(fullscreen@2x.png);
|
39
|
+
}
|
40
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geoblacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.pre.
|
4
|
+
version: 4.0.0.pre.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Graves
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -19,34 +19,34 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '6.1'
|
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
|
29
29
|
requirements:
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '6.1'
|
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
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '7.
|
42
|
+
version: '7.12'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '7.
|
49
|
+
version: '7.12'
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: config
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,30 +65,16 @@ dependencies:
|
|
65
65
|
name: faraday
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- - "
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '1.0'
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- - "
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '1.0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: faraday_middleware
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - "~>"
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 1.0.0.rc1
|
85
|
-
type: :runtime
|
86
|
-
prerelease: false
|
87
|
-
version_requirements: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - "~>"
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: 1.0.0.rc1
|
92
78
|
- !ruby/object:Gem::Dependency
|
93
79
|
name: coderay
|
94
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -319,42 +305,56 @@ dependencies:
|
|
319
305
|
requirements:
|
320
306
|
- - "~>"
|
321
307
|
- !ruby/object:Gem::Version
|
322
|
-
version: '1.
|
308
|
+
version: '1.25'
|
323
309
|
type: :development
|
324
310
|
prerelease: false
|
325
311
|
version_requirements: !ruby/object:Gem::Requirement
|
326
312
|
requirements:
|
327
313
|
- - "~>"
|
328
314
|
- !ruby/object:Gem::Version
|
329
|
-
version: '1.
|
315
|
+
version: '1.25'
|
330
316
|
- !ruby/object:Gem::Dependency
|
331
317
|
name: rubocop-rails
|
332
318
|
requirement: !ruby/object:Gem::Requirement
|
333
319
|
requirements:
|
334
320
|
- - "~>"
|
335
321
|
- !ruby/object:Gem::Version
|
336
|
-
version: '2.
|
322
|
+
version: '2.13'
|
337
323
|
type: :development
|
338
324
|
prerelease: false
|
339
325
|
version_requirements: !ruby/object:Gem::Requirement
|
340
326
|
requirements:
|
341
327
|
- - "~>"
|
342
328
|
- !ruby/object:Gem::Version
|
343
|
-
version: '2.
|
329
|
+
version: '2.13'
|
344
330
|
- !ruby/object:Gem::Dependency
|
345
331
|
name: rubocop-rspec
|
346
332
|
requirement: !ruby/object:Gem::Requirement
|
347
333
|
requirements:
|
348
334
|
- - "~>"
|
349
335
|
- !ruby/object:Gem::Version
|
350
|
-
version: '2.
|
336
|
+
version: '2.8'
|
337
|
+
type: :development
|
338
|
+
prerelease: false
|
339
|
+
version_requirements: !ruby/object:Gem::Requirement
|
340
|
+
requirements:
|
341
|
+
- - "~>"
|
342
|
+
- !ruby/object:Gem::Version
|
343
|
+
version: '2.8'
|
344
|
+
- !ruby/object:Gem::Dependency
|
345
|
+
name: webmock
|
346
|
+
requirement: !ruby/object:Gem::Requirement
|
347
|
+
requirements:
|
348
|
+
- - "~>"
|
349
|
+
- !ruby/object:Gem::Version
|
350
|
+
version: '3.14'
|
351
351
|
type: :development
|
352
352
|
prerelease: false
|
353
353
|
version_requirements: !ruby/object:Gem::Requirement
|
354
354
|
requirements:
|
355
355
|
- - "~>"
|
356
356
|
- !ruby/object:Gem::Version
|
357
|
-
version: '
|
357
|
+
version: '3.14'
|
358
358
|
description: GeoBlacklight provides a world-class discovery platform for geospatial
|
359
359
|
(GIS) holdings. It is an open collaborative project aiming to build off of the successes
|
360
360
|
of the Blacklight Solr-powered discovery interface and the multi-institutional OpenGeoportal
|
@@ -364,8 +364,7 @@ email:
|
|
364
364
|
- drh@stanford.edu
|
365
365
|
- eliotj@princeton.edu
|
366
366
|
- pjreed@stanford.edu
|
367
|
-
executables:
|
368
|
-
- coverage.rb
|
367
|
+
executables: []
|
369
368
|
extensions: []
|
370
369
|
extra_rdoc_files: []
|
371
370
|
files:
|
@@ -392,10 +391,13 @@ files:
|
|
392
391
|
- app/assets/images/blacklight/bookmark.svg
|
393
392
|
- app/assets/images/blacklight/cd-rom.svg
|
394
393
|
- app/assets/images/blacklight/chicago.svg
|
394
|
+
- app/assets/images/blacklight/child-item.svg
|
395
395
|
- app/assets/images/blacklight/citation.svg
|
396
396
|
- app/assets/images/blacklight/collection.svg
|
397
|
+
- app/assets/images/blacklight/collections.svg
|
397
398
|
- app/assets/images/blacklight/columbia.svg
|
398
399
|
- app/assets/images/blacklight/cornell.svg
|
400
|
+
- app/assets/images/blacklight/datasets.svg
|
399
401
|
- app/assets/images/blacklight/dvd-rom.svg
|
400
402
|
- app/assets/images/blacklight/email.svg
|
401
403
|
- app/assets/images/blacklight/esri-globe.svg
|
@@ -405,6 +407,7 @@ files:
|
|
405
407
|
- app/assets/images/blacklight/home.svg
|
406
408
|
- app/assets/images/blacklight/illinois.svg
|
407
409
|
- app/assets/images/blacklight/image.svg
|
410
|
+
- app/assets/images/blacklight/imagery.svg
|
408
411
|
- app/assets/images/blacklight/indiana.svg
|
409
412
|
- app/assets/images/blacklight/iowa.svg
|
410
413
|
- app/assets/images/blacklight/leaf.svg
|
@@ -413,6 +416,7 @@ files:
|
|
413
416
|
- app/assets/images/blacklight/logo.svg
|
414
417
|
- app/assets/images/blacklight/map-marker.svg
|
415
418
|
- app/assets/images/blacklight/map.svg
|
419
|
+
- app/assets/images/blacklight/maps.svg
|
416
420
|
- app/assets/images/blacklight/maryland.svg
|
417
421
|
- app/assets/images/blacklight/massgis.svg
|
418
422
|
- app/assets/images/blacklight/metadata.svg
|
@@ -429,6 +433,7 @@ files:
|
|
429
433
|
- app/assets/images/blacklight/ohio-state.svg
|
430
434
|
- app/assets/images/blacklight/pagelines-brands.svg
|
431
435
|
- app/assets/images/blacklight/paper-map.svg
|
436
|
+
- app/assets/images/blacklight/parent-item.svg
|
432
437
|
- app/assets/images/blacklight/penn-state.svg
|
433
438
|
- app/assets/images/blacklight/pennsylvania-state-university.svg
|
434
439
|
- app/assets/images/blacklight/point.svg
|
@@ -449,6 +454,7 @@ files:
|
|
449
454
|
- app/assets/images/blacklight/tufts.svg
|
450
455
|
- app/assets/images/blacklight/ucla.svg
|
451
456
|
- app/assets/images/blacklight/university-of-chicago.svg
|
457
|
+
- app/assets/images/blacklight/university-of-colorado-boulder.svg
|
452
458
|
- app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg
|
453
459
|
- app/assets/images/blacklight/university-of-iowa.svg
|
454
460
|
- app/assets/images/blacklight/university-of-maryland.svg
|
@@ -458,10 +464,12 @@ files:
|
|
458
464
|
- app/assets/images/blacklight/university-of-wisconsin-madison.svg
|
459
465
|
- app/assets/images/blacklight/uva.svg
|
460
466
|
- app/assets/images/blacklight/web_services.svg
|
467
|
+
- app/assets/images/blacklight/websites.svg
|
461
468
|
- app/assets/images/blacklight/wisconsin.svg
|
462
469
|
- app/assets/images/favicon.ico
|
463
470
|
- app/assets/javascripts/geoblacklight/basemaps.js
|
464
471
|
- app/assets/javascripts/geoblacklight/controls.js
|
472
|
+
- app/assets/javascripts/geoblacklight/controls/fullscreen.js
|
465
473
|
- app/assets/javascripts/geoblacklight/controls/opacity.js
|
466
474
|
- app/assets/javascripts/geoblacklight/downloaders.js
|
467
475
|
- app/assets/javascripts/geoblacklight/downloaders/downloader.js
|
@@ -493,9 +501,12 @@ files:
|
|
493
501
|
- app/assets/javascripts/geoblacklight/viewers/index_map.js
|
494
502
|
- app/assets/javascripts/geoblacklight/viewers/map.js
|
495
503
|
- app/assets/javascripts/geoblacklight/viewers/oembed.js
|
504
|
+
- app/assets/javascripts/geoblacklight/viewers/tilejson.js
|
496
505
|
- app/assets/javascripts/geoblacklight/viewers/tms.js
|
497
506
|
- app/assets/javascripts/geoblacklight/viewers/viewer.js
|
498
507
|
- app/assets/javascripts/geoblacklight/viewers/wms.js
|
508
|
+
- app/assets/javascripts/geoblacklight/viewers/wmts.js
|
509
|
+
- app/assets/javascripts/geoblacklight/viewers/xyz.js
|
499
510
|
- app/assets/stylesheets/geoblacklight/geoblacklight.scss
|
500
511
|
- app/assets/stylesheets/geoblacklight/modules/_base.scss
|
501
512
|
- app/assets/stylesheets/geoblacklight/modules/_blacklight_overrides.scss
|
@@ -521,6 +532,7 @@ files:
|
|
521
532
|
- app/assets/stylesheets/geoblacklight/modules/web_services.scss
|
522
533
|
- app/components/geoblacklight/homepage_feature_facet_component.html.erb
|
523
534
|
- app/components/geoblacklight/homepage_feature_facet_component.rb
|
535
|
+
- app/components/geoblacklight/icon_facet_item_component.rb
|
524
536
|
- app/controllers/download_controller.rb
|
525
537
|
- app/controllers/relation_controller.rb
|
526
538
|
- app/controllers/wms_controller.rb
|
@@ -529,27 +541,25 @@ files:
|
|
529
541
|
- app/helpers/carto_helper.rb
|
530
542
|
- app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
|
531
543
|
- app/helpers/geoblacklight_helper.rb
|
544
|
+
- app/models/concerns/geoblacklight/bbox_filter_field.rb
|
545
|
+
- app/models/concerns/geoblacklight/bbox_filter_query.rb
|
532
546
|
- app/models/concerns/geoblacklight/solr_document.rb
|
533
547
|
- app/models/concerns/geoblacklight/solr_document/arcgis.rb
|
534
548
|
- app/models/concerns/geoblacklight/solr_document/carto.rb
|
535
549
|
- app/models/concerns/geoblacklight/solr_document/citation.rb
|
536
550
|
- app/models/concerns/geoblacklight/solr_document/finder.rb
|
537
551
|
- app/models/concerns/geoblacklight/solr_document/inspection.rb
|
538
|
-
- app/models/concerns/geoblacklight/
|
552
|
+
- app/models/concerns/geoblacklight/suppressed_records_search_behavior.rb
|
553
|
+
- app/presenters/geoblacklight/bbox_item_presenter.rb
|
539
554
|
- app/presenters/geoblacklight/document_presenter.rb
|
540
555
|
- app/views/catalog/_arcgis.html.erb
|
541
556
|
- app/views/catalog/_carto.html.erb
|
542
557
|
- app/views/catalog/_citation.html.erb
|
543
558
|
- app/views/catalog/_data_dictionary.html.erb
|
544
559
|
- app/views/catalog/_document_split.html.erb
|
545
|
-
- app/views/catalog/
|
546
|
-
- app/views/catalog/_download_link.html.erb
|
547
|
-
- app/views/catalog/_downloads_generated.html.erb
|
548
|
-
- app/views/catalog/_downloads_primary.html.erb
|
549
|
-
- app/views/catalog/_downloads_secondary.html.erb
|
560
|
+
- app/views/catalog/_downloads_collapse.html.erb
|
550
561
|
- app/views/catalog/_header_icons.html.erb
|
551
562
|
- app/views/catalog/_home_text.html.erb
|
552
|
-
- app/views/catalog/_icon_facet.html.erb
|
553
563
|
- app/views/catalog/_index_split_default.html.erb
|
554
564
|
- app/views/catalog/_metadata.html.erb
|
555
565
|
- app/views/catalog/_relations_container.html.erb
|
@@ -560,6 +570,7 @@ files:
|
|
560
570
|
- app/views/catalog/_show_downloads.html.erb
|
561
571
|
- app/views/catalog/_show_header_default.html.erb
|
562
572
|
- app/views/catalog/_show_sidebar.html.erb
|
573
|
+
- app/views/catalog/_show_web_services.html.erb
|
563
574
|
- app/views/catalog/_web_services.html.erb
|
564
575
|
- app/views/catalog/_web_services_default.html.erb
|
565
576
|
- app/views/catalog/_web_services_wfs.html.erb
|
@@ -576,7 +587,6 @@ files:
|
|
576
587
|
- app/views/relation/index.json.jbuilder
|
577
588
|
- app/views/shared/_header_navbar.html.erb
|
578
589
|
- babel.config.json
|
579
|
-
- bin/coverage.rb
|
580
590
|
- config/initializers/new_gbl_settings_defaults_3_4.yml
|
581
591
|
- config/initializers/rails_config.rb
|
582
592
|
- config/locales/geoblacklight.en.yml
|
@@ -584,21 +594,16 @@ files:
|
|
584
594
|
- jest.config.js
|
585
595
|
- lib/generators/geoblacklight/assets_generator.rb
|
586
596
|
- lib/generators/geoblacklight/install_generator.rb
|
587
|
-
- lib/generators/geoblacklight/templates/Procfile
|
588
597
|
- lib/generators/geoblacklight/templates/assets/_blacklight.scss
|
589
598
|
- lib/generators/geoblacklight/templates/assets/_customizations.scss
|
590
599
|
- lib/generators/geoblacklight/templates/assets/_geoblacklight.scss
|
591
600
|
- lib/generators/geoblacklight/templates/assets/application.scss
|
592
601
|
- lib/generators/geoblacklight/templates/assets/geoblacklight.js
|
593
602
|
- lib/generators/geoblacklight/templates/catalog_controller.rb
|
594
|
-
- lib/generators/geoblacklight/templates/package.json
|
595
603
|
- lib/generators/geoblacklight/templates/settings.gbl_v1.yml
|
596
604
|
- lib/generators/geoblacklight/templates/settings.yml
|
597
|
-
- lib/generators/geoblacklight/templates/webpacker.yml
|
598
|
-
- lib/generators/geoblacklight/webpacker_generator.rb
|
599
605
|
- lib/geoblacklight.rb
|
600
606
|
- lib/geoblacklight/bounding_box.rb
|
601
|
-
- lib/geoblacklight/catalog_helper_override.rb
|
602
607
|
- lib/geoblacklight/constants.rb
|
603
608
|
- lib/geoblacklight/download.rb
|
604
609
|
- lib/geoblacklight/download/geojson_download.rb
|
@@ -608,6 +613,7 @@ files:
|
|
608
613
|
- lib/geoblacklight/download/shapefile_download.rb
|
609
614
|
- lib/geoblacklight/engine.rb
|
610
615
|
- lib/geoblacklight/exceptions.rb
|
616
|
+
- lib/geoblacklight/faraday_middleware/follow_redirects.rb
|
611
617
|
- lib/geoblacklight/geometry.rb
|
612
618
|
- lib/geoblacklight/item_viewer.rb
|
613
619
|
- lib/geoblacklight/metadata.rb
|
@@ -655,6 +661,7 @@ files:
|
|
655
661
|
- solr/conf/xslt/example_rss.xsl
|
656
662
|
- solr/conf/xslt/luke.xsl
|
657
663
|
- spec/components/geoblacklight/homepage_feature_facet_component_spec.rb
|
664
|
+
- spec/components/geoblacklight/icon_facet_item_component_spec.rb
|
658
665
|
- spec/config/initializers/rails_config_spec.rb
|
659
666
|
- spec/controllers/catalog_controller_spec.rb
|
660
667
|
- spec/controllers/download_controller_spec.rb
|
@@ -668,6 +675,7 @@ files:
|
|
668
675
|
- spec/features/empty_search_spec.rb
|
669
676
|
- spec/features/esri_viewer_spec.rb
|
670
677
|
- spec/features/exports_spec.rb
|
678
|
+
- spec/features/full_screen_controll_spec.rb
|
671
679
|
- spec/features/help_text_spec.rb
|
672
680
|
- spec/features/home_page_spec.rb
|
673
681
|
- spec/features/iiif_viewer_spec.rb
|
@@ -684,6 +692,8 @@ files:
|
|
684
692
|
- spec/features/relations_spec.rb
|
685
693
|
- spec/features/saved_searches_spec.rb
|
686
694
|
- spec/features/search_bar_spec.rb
|
695
|
+
- spec/features/search_results_complex_geometry_spec.rb
|
696
|
+
- spec/features/search_results_icons_spec.rb
|
687
697
|
- spec/features/search_results_map_spec.rb
|
688
698
|
- spec/features/search_results_overlap_ratio_spec.rb
|
689
699
|
- spec/features/search_spec.rb
|
@@ -692,10 +702,16 @@ files:
|
|
692
702
|
- spec/features/sms_spec.rb
|
693
703
|
- spec/features/split_view.html.erb_spec.rb
|
694
704
|
- spec/features/suppressed_records_spec.rb
|
705
|
+
- spec/features/tilejson_spec.rb
|
695
706
|
- spec/features/tms_spec.rb
|
696
707
|
- spec/features/web_services_modal_spec.rb
|
708
|
+
- spec/features/wmts_spec.rb
|
709
|
+
- spec/features/xyz_spec.rb
|
697
710
|
- spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
|
698
711
|
- spec/fixtures/iso19139/stanford-cg357zz0321.xml
|
712
|
+
- spec/fixtures/manifests/tilejson.json
|
713
|
+
- spec/fixtures/manifests/wmts-multiple.xml
|
714
|
+
- spec/fixtures/manifests/wmts-single.xml
|
699
715
|
- spec/fixtures/mods/fb897vt9938.mods
|
700
716
|
- spec/fixtures/mods/stanford-cg357zz0321.mods
|
701
717
|
- spec/fixtures/solr_documents/README.md
|
@@ -704,6 +720,11 @@ files:
|
|
704
720
|
- spec/fixtures/solr_documents/actual-polygon1.json
|
705
721
|
- spec/fixtures/solr_documents/actual-raster1.json
|
706
722
|
- spec/fixtures/solr_documents/all-relationships.json
|
723
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_15.json
|
724
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_16.json
|
725
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_17.json
|
726
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_18.json
|
727
|
+
- spec/fixtures/solr_documents/b1g_wabash_parent.json
|
707
728
|
- spec/fixtures/solr_documents/baruch_ancestor1.json
|
708
729
|
- spec/fixtures/solr_documents/baruch_ancestor2.json
|
709
730
|
- spec/fixtures/solr_documents/baruch_documentation_download.json
|
@@ -737,11 +758,15 @@ files:
|
|
737
758
|
- spec/fixtures/solr_documents/public_polygon_mit.json
|
738
759
|
- spec/fixtures/solr_documents/restricted-line.json
|
739
760
|
- spec/fixtures/solr_documents/the-related-record.json
|
761
|
+
- spec/fixtures/solr_documents/tilejson.json
|
740
762
|
- spec/fixtures/solr_documents/tms.json
|
741
763
|
- spec/fixtures/solr_documents/umn_metro_result1.json
|
742
764
|
- spec/fixtures/solr_documents/umn_state_result1.json
|
743
765
|
- spec/fixtures/solr_documents/umn_state_result2.json
|
744
766
|
- spec/fixtures/solr_documents/uva_slug_colon.json
|
767
|
+
- spec/fixtures/solr_documents/wmts-multiple.json
|
768
|
+
- spec/fixtures/solr_documents/wmts-single-layer.json
|
769
|
+
- spec/fixtures/solr_documents/xyz.json
|
745
770
|
- spec/helpers/arcgis_helper_spec.rb
|
746
771
|
- spec/helpers/carto_helper_spec.rb
|
747
772
|
- spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb
|
@@ -774,12 +799,15 @@ files:
|
|
774
799
|
- spec/lib/geoblacklight/view_helper_override_spec.rb
|
775
800
|
- spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb
|
776
801
|
- spec/lib/geoblacklight/wms_layer_spec.rb
|
802
|
+
- spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb
|
803
|
+
- spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb
|
777
804
|
- spec/models/concerns/geoblacklight/solr_document/carto_spec.rb
|
778
805
|
- spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
|
779
806
|
- spec/models/concerns/geoblacklight/solr_document/finder_spec.rb
|
780
807
|
- spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
|
781
808
|
- spec/models/concerns/geoblacklight/solr_document_spec.rb
|
782
|
-
- spec/models/concerns/geoblacklight/
|
809
|
+
- spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb
|
810
|
+
- spec/presenters/geoblacklight/bbox_item_presenter_spec.rb
|
783
811
|
- spec/routing/catalog_routing_spec.rb
|
784
812
|
- spec/spec_helper.rb
|
785
813
|
- spec/support/backport_test_helpers.rb
|
@@ -801,19 +829,22 @@ files:
|
|
801
829
|
- spec/views/catalog/_show_downloads.html.erb_spec.rb
|
802
830
|
- spec/views/catalog/_show_tools.html.erb_spec.rb
|
803
831
|
- template.rb
|
832
|
+
- vendor/assets/images/fullscreen.png
|
833
|
+
- vendor/assets/images/fullscreen@2x.png
|
804
834
|
- vendor/assets/images/layers-2x.png
|
805
835
|
- vendor/assets/images/layers.png
|
806
836
|
- vendor/assets/images/marker-icon-2x.png
|
807
837
|
- vendor/assets/images/marker-icon.png
|
808
838
|
- vendor/assets/images/marker-shadow.png
|
839
|
+
- vendor/assets/javascripts/Leaflet.fullscreen.js
|
809
840
|
- vendor/assets/javascripts/esri-leaflet.js
|
810
841
|
- vendor/assets/javascripts/esri-leaflet.js.map
|
811
842
|
- vendor/assets/javascripts/leaflet-iiif.js
|
843
|
+
- vendor/assets/javascripts/leaflet-src.js.erb
|
812
844
|
- vendor/assets/javascripts/leaflet-src.js.map
|
813
|
-
- vendor/assets/javascripts/leaflet.js.erb
|
814
845
|
- vendor/assets/javascripts/native.history.js
|
815
|
-
- vendor/assets/stylesheets/leaflet-label.css
|
816
846
|
- vendor/assets/stylesheets/leaflet.css
|
847
|
+
- vendor/assets/stylesheets/leaflet.fullscreen.css
|
817
848
|
homepage: http://github.com/geoblacklight/geoblacklight
|
818
849
|
licenses:
|
819
850
|
- Apache 2.0
|
@@ -839,6 +870,7 @@ specification_version: 4
|
|
839
870
|
summary: A discovery platform for geospatial holdings
|
840
871
|
test_files:
|
841
872
|
- spec/components/geoblacklight/homepage_feature_facet_component_spec.rb
|
873
|
+
- spec/components/geoblacklight/icon_facet_item_component_spec.rb
|
842
874
|
- spec/config/initializers/rails_config_spec.rb
|
843
875
|
- spec/controllers/catalog_controller_spec.rb
|
844
876
|
- spec/controllers/download_controller_spec.rb
|
@@ -852,6 +884,7 @@ test_files:
|
|
852
884
|
- spec/features/empty_search_spec.rb
|
853
885
|
- spec/features/esri_viewer_spec.rb
|
854
886
|
- spec/features/exports_spec.rb
|
887
|
+
- spec/features/full_screen_controll_spec.rb
|
855
888
|
- spec/features/help_text_spec.rb
|
856
889
|
- spec/features/home_page_spec.rb
|
857
890
|
- spec/features/iiif_viewer_spec.rb
|
@@ -868,6 +901,8 @@ test_files:
|
|
868
901
|
- spec/features/relations_spec.rb
|
869
902
|
- spec/features/saved_searches_spec.rb
|
870
903
|
- spec/features/search_bar_spec.rb
|
904
|
+
- spec/features/search_results_complex_geometry_spec.rb
|
905
|
+
- spec/features/search_results_icons_spec.rb
|
871
906
|
- spec/features/search_results_map_spec.rb
|
872
907
|
- spec/features/search_results_overlap_ratio_spec.rb
|
873
908
|
- spec/features/search_spec.rb
|
@@ -876,10 +911,16 @@ test_files:
|
|
876
911
|
- spec/features/sms_spec.rb
|
877
912
|
- spec/features/split_view.html.erb_spec.rb
|
878
913
|
- spec/features/suppressed_records_spec.rb
|
914
|
+
- spec/features/tilejson_spec.rb
|
879
915
|
- spec/features/tms_spec.rb
|
880
916
|
- spec/features/web_services_modal_spec.rb
|
917
|
+
- spec/features/wmts_spec.rb
|
918
|
+
- spec/features/xyz_spec.rb
|
881
919
|
- spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
|
882
920
|
- spec/fixtures/iso19139/stanford-cg357zz0321.xml
|
921
|
+
- spec/fixtures/manifests/tilejson.json
|
922
|
+
- spec/fixtures/manifests/wmts-multiple.xml
|
923
|
+
- spec/fixtures/manifests/wmts-single.xml
|
883
924
|
- spec/fixtures/mods/fb897vt9938.mods
|
884
925
|
- spec/fixtures/mods/stanford-cg357zz0321.mods
|
885
926
|
- spec/fixtures/solr_documents/README.md
|
@@ -888,6 +929,11 @@ test_files:
|
|
888
929
|
- spec/fixtures/solr_documents/actual-polygon1.json
|
889
930
|
- spec/fixtures/solr_documents/actual-raster1.json
|
890
931
|
- spec/fixtures/solr_documents/all-relationships.json
|
932
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_15.json
|
933
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_16.json
|
934
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_17.json
|
935
|
+
- spec/fixtures/solr_documents/b1g_wabash_child_18.json
|
936
|
+
- spec/fixtures/solr_documents/b1g_wabash_parent.json
|
891
937
|
- spec/fixtures/solr_documents/baruch_ancestor1.json
|
892
938
|
- spec/fixtures/solr_documents/baruch_ancestor2.json
|
893
939
|
- spec/fixtures/solr_documents/baruch_documentation_download.json
|
@@ -921,11 +967,15 @@ test_files:
|
|
921
967
|
- spec/fixtures/solr_documents/public_polygon_mit.json
|
922
968
|
- spec/fixtures/solr_documents/restricted-line.json
|
923
969
|
- spec/fixtures/solr_documents/the-related-record.json
|
970
|
+
- spec/fixtures/solr_documents/tilejson.json
|
924
971
|
- spec/fixtures/solr_documents/tms.json
|
925
972
|
- spec/fixtures/solr_documents/umn_metro_result1.json
|
926
973
|
- spec/fixtures/solr_documents/umn_state_result1.json
|
927
974
|
- spec/fixtures/solr_documents/umn_state_result2.json
|
928
975
|
- spec/fixtures/solr_documents/uva_slug_colon.json
|
976
|
+
- spec/fixtures/solr_documents/wmts-multiple.json
|
977
|
+
- spec/fixtures/solr_documents/wmts-single-layer.json
|
978
|
+
- spec/fixtures/solr_documents/xyz.json
|
929
979
|
- spec/helpers/arcgis_helper_spec.rb
|
930
980
|
- spec/helpers/carto_helper_spec.rb
|
931
981
|
- spec/helpers/geoblacklight/geoblacklight_helper_behavior_spec.rb
|
@@ -958,12 +1008,15 @@ test_files:
|
|
958
1008
|
- spec/lib/geoblacklight/view_helper_override_spec.rb
|
959
1009
|
- spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb
|
960
1010
|
- spec/lib/geoblacklight/wms_layer_spec.rb
|
1011
|
+
- spec/models/concerns/geoblacklight/bbox_filter_field_spec.rb
|
1012
|
+
- spec/models/concerns/geoblacklight/bbox_filter_query_spec.rb
|
961
1013
|
- spec/models/concerns/geoblacklight/solr_document/carto_spec.rb
|
962
1014
|
- spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
|
963
1015
|
- spec/models/concerns/geoblacklight/solr_document/finder_spec.rb
|
964
1016
|
- spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
|
965
1017
|
- spec/models/concerns/geoblacklight/solr_document_spec.rb
|
966
|
-
- spec/models/concerns/geoblacklight/
|
1018
|
+
- spec/models/concerns/geoblacklight/suppressed_records_search_behavior_spec.rb
|
1019
|
+
- spec/presenters/geoblacklight/bbox_item_presenter_spec.rb
|
967
1020
|
- spec/routing/catalog_routing_spec.rb
|
968
1021
|
- spec/spec_helper.rb
|
969
1022
|
- spec/support/backport_test_helpers.rb
|
@@ -1,71 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module Geoblacklight
|
3
|
-
module SpatialSearchBehavior
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
|
6
|
-
included do
|
7
|
-
self.default_processor_chain += [:add_spatial_params, :hide_suppressed_records]
|
8
|
-
end
|
9
|
-
|
10
|
-
##
|
11
|
-
# Adds spatial parameters to a Solr query if :bbox is present.
|
12
|
-
# @param [Blacklight::Solr::Request] solr_params :bbox should be in Solr
|
13
|
-
# :bbox should be passed in using Solr lat-lon rectangle format e.g.
|
14
|
-
# "minX minY maxX maxY"
|
15
|
-
# @return [Blacklight::Solr::Request]
|
16
|
-
def add_spatial_params(solr_params)
|
17
|
-
if blacklight_params[:bbox]
|
18
|
-
solr_params[:bq] ||= []
|
19
|
-
solr_params[:bq] << "#{Settings.FIELDS.SPATIAL_EXTENT}:\"IsWithin(#{envelope_bounds})\"#{boost}"
|
20
|
-
solr_params[:fq] ||= []
|
21
|
-
solr_params[:fq] << "#{Settings.FIELDS.SPATIAL_EXTENT}:\"Intersects(#{envelope_bounds})\""
|
22
|
-
|
23
|
-
if Settings.OVERLAP_RATIO_BOOST
|
24
|
-
solr_params[:bf] ||= []
|
25
|
-
solr_params[:overlap] =
|
26
|
-
"{!field uf=* defType=lucene f=#{Settings.FIELDS.OVERLAP_FIELD} score=overlapRatio}Intersects(#{envelope_bounds})"
|
27
|
-
solr_params[:bf] << "$overlap^#{Settings.OVERLAP_RATIO_BOOST}"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
solr_params
|
31
|
-
rescue Geoblacklight::Exceptions::WrongBoundingBoxFormat
|
32
|
-
# TODO: Potentially delete bbox params here so that its not rendered as search param
|
33
|
-
solr_params
|
34
|
-
end
|
35
|
-
|
36
|
-
##
|
37
|
-
# @return [String]
|
38
|
-
def envelope_bounds
|
39
|
-
bounding_box.to_envelope
|
40
|
-
end
|
41
|
-
|
42
|
-
## Allow bq boost to be configured, default 10 for backwards compatibility
|
43
|
-
# @return [String]
|
44
|
-
def boost
|
45
|
-
"^#{Settings.BBOX_WITHIN_BOOST || '10'}"
|
46
|
-
end
|
47
|
-
|
48
|
-
##
|
49
|
-
# Returns a Geoblacklight::BoundingBox built from the blacklight_params
|
50
|
-
# @return [Geoblacklight::BoundingBox]
|
51
|
-
def bounding_box
|
52
|
-
Geoblacklight::BoundingBox.from_rectangle(blacklight_params[:bbox])
|
53
|
-
end
|
54
|
-
|
55
|
-
##
|
56
|
-
# Hide suppressed records in search
|
57
|
-
# @param [Blacklight::Solr::Request]
|
58
|
-
# @return [Blacklight::Solr::Request]
|
59
|
-
def hide_suppressed_records(solr_params)
|
60
|
-
# Show child records if searching for a specific source parent
|
61
|
-
return unless blacklight_params.fetch(:f, {})[Settings.FIELDS.SOURCE.to_sym].nil?
|
62
|
-
|
63
|
-
# Do not suppress action_documents method calls for individual documents
|
64
|
-
# ex. CatalogController#web_services (exportable views)
|
65
|
-
return if solr_params[:q]&.include?("{!lucene}#{Settings.FIELDS.ID}:")
|
66
|
-
|
67
|
-
solr_params[:fq] ||= []
|
68
|
-
solr_params[:fq] << "-#{Settings.FIELDS.SUPPRESSED}: true"
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<%# Renders the secondary downloads displayed in the split dropdown %>
|
2
|
-
<% document ||= @document %>
|
3
|
-
|
4
|
-
<% document.download_types.each do |type| %>
|
5
|
-
<%= render partial: 'download_generated_link', locals: { download_body: download_generated_body(type.first), download_link: download_link_generated(type.first, document) } %>
|
6
|
-
<% end %>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<%# Renders the primary download that is shown first %>
|
2
|
-
<% document ||= @document %>
|
3
|
-
|
4
|
-
<% if document.direct_download.present? %>
|
5
|
-
<% if document.direct_download[:download].is_a? Array %>
|
6
|
-
<% document.direct_download[:download].each do |download| %>
|
7
|
-
<%= render partial: 'download_link', locals: { download_link: download_link_file(download['label'], document.id, download['url']) } %>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
<% if document.direct_download[:download].is_a? String %>
|
11
|
-
<%= render partial: 'download_link', locals: { download_link: download_link_file(download_text(document.file_format), document.id, document.direct_download[:download]) } %>
|
12
|
-
<% end %>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<% if document.hgl_download.present? %>
|
16
|
-
<%= render partial: 'download_link', locals: { download_link: download_link_hgl(download_text(document.download_types.first[0]), document) } %>
|
17
|
-
<% end %>
|
18
|
-
|
19
|
-
<% if document.iiif_download.present? %>
|
20
|
-
<%= render partial: 'download_link', locals: { download_link: download_link_iiif } %>
|
21
|
-
<% end %>
|