geoblacklight 4.1.1 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +4 -12
- data/.gitignore +9 -0
- data/Gemfile +14 -0
- data/Procfile.dev +3 -0
- data/README.md +5 -30
- data/app/assets/images/blacklight/geoblacklight-icons.json +1857 -966
- data/app/assets/javascripts/geoblacklight/modules/util.js +8 -3
- data/app/assets/javascripts/geoblacklight/templates/index_map_info.hbs +22 -1
- data/app/assets/javascripts/geoblacklight/viewers/cog.js +5 -0
- data/app/assets/javascripts/geoblacklight/viewers/pmtiles.js +5 -0
- data/app/controllers/download_controller.rb +1 -21
- data/app/frontend/clover/clover_initializer.js +29 -0
- data/app/frontend/entrypoints/application.js +28 -0
- data/app/frontend/entrypoints/clover.js +5 -0
- data/app/frontend/entrypoints/ol.js +5 -0
- data/app/frontend/openlayers/basemaps.js +47 -0
- data/app/frontend/openlayers/ol_initializer.js +105 -0
- data/app/frontend/stylesheets/openlayers.css +1 -0
- data/app/helpers/geoblacklight_helper.rb +54 -0
- data/app/views/catalog/_citation.html.erb +1 -1
- data/app/views/catalog/_show_default_viewer_container.html.erb +1 -2
- data/app/views/catalog/_web_services_default.html.erb +6 -1
- data/app/views/catalog/_web_services_wfs.html.erb +6 -1
- data/app/views/catalog/_web_services_wms.html.erb +6 -1
- data/app/views/catalog/web_services.html.erb +16 -0
- data/bin/vite +29 -0
- data/config/locales/geoblacklight.en.yml +12 -2
- data/config/vite.json +14 -0
- data/geoblacklight.gemspec +8 -6
- data/lib/generators/geoblacklight/install_generator.rb +30 -4
- data/lib/generators/geoblacklight/templates/base.html.erb +52 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +0 -2
- data/lib/generators/geoblacklight/templates/clover.js +5 -0
- data/lib/generators/geoblacklight/templates/ol.js +5 -0
- data/lib/generators/geoblacklight/templates/package.json +7 -0
- data/lib/generators/geoblacklight/templates/settings.yml +4 -0
- data/lib/generators/geoblacklight/templates/vite.config.ts +19 -0
- data/lib/generators/geoblacklight/templates/vite.json +16 -0
- data/lib/generators/geoblacklight/templates/vite.rb +4 -0
- data/lib/geoblacklight/constants.rb +3 -1
- data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +1 -1
- data/lib/geoblacklight/item_viewer.rb +13 -1
- data/lib/geoblacklight/metadata_transformer/base.rb +1 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/package.json +8 -12
- data/spec/features/download_layer_spec.rb +1 -2
- data/spec/features/full_screen_controll_spec.rb +8 -1
- data/spec/features/home_page_spec.rb +3 -0
- data/spec/features/search_results_map_spec.rb +1 -0
- data/spec/features/web_services_modal_spec.rb +30 -0
- data/spec/fixtures/index_maps/index-map-point.geojson +949 -0
- data/spec/fixtures/index_maps/index-map-polygon-no-downloadurl.geojson +970 -0
- data/spec/fixtures/index_maps/index-map-polygon.geojson +970 -0
- data/spec/fixtures/index_maps/index-map-stanford.geojson +390 -0
- data/spec/fixtures/index_maps/index-map-v1-complex.geojson +12249 -0
- data/spec/fixtures/solr_documents/README.md +1 -0
- data/spec/fixtures/solr_documents/b1g_iiif_manifest.json +64 -0
- data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +1 -1
- data/spec/fixtures/solr_documents/index-map-polygon.json +1 -1
- data/spec/fixtures/solr_documents/index-map-stanford.json +1 -1
- data/spec/fixtures/solr_documents/index-map-v1-complex.json +56 -0
- data/spec/fixtures/solr_documents/index_map_point.json +1 -1
- data/spec/fixtures/solr_documents/public_cog_princeton.json +57 -0
- data/spec/fixtures/solr_documents/public_pmtiles_princeton.json +41 -0
- data/spec/helpers/geoblacklight_helper_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/test_app_templates/Gemfile.extra +0 -1
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +16 -17
- data/vite.config.ts +8 -0
- metadata +79 -28
- data/spec/test_app_templates/solr_documents +0 -1
- /data/spec/{test_app_templates → fixtures}/metadata/fgdc.html +0 -0
- /data/spec/{test_app_templates → fixtures}/metadata/fgdc.xml +0 -0
- /data/spec/{test_app_templates → fixtures}/metadata/iso.html +0 -0
- /data/spec/{test_app_templates → fixtures}/metadata/iso.xml +0 -0
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.
|
4
|
+
version: 4.3.0
|
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: 2024-03-08 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: '6.1'
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '7.
|
25
|
+
version: '7.2'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -32,27 +32,21 @@ dependencies:
|
|
32
32
|
version: '6.1'
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '7.
|
35
|
+
version: '7.2'
|
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
42
|
version: '7.0'
|
43
|
-
- - "<="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '7.33'
|
46
43
|
type: :runtime
|
47
44
|
prerelease: false
|
48
45
|
version_requirements: !ruby/object:Gem::Requirement
|
49
46
|
requirements:
|
50
|
-
- - "
|
47
|
+
- - "~>"
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: '7.0'
|
53
|
-
- - "<="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '7.33'
|
56
50
|
- !ruby/object:Gem::Dependency
|
57
51
|
name: config
|
58
52
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,16 +65,16 @@ dependencies:
|
|
71
65
|
name: faraday
|
72
66
|
requirement: !ruby/object:Gem::Requirement
|
73
67
|
requirements:
|
74
|
-
- - "
|
68
|
+
- - "~>"
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
70
|
+
version: '2.0'
|
77
71
|
type: :runtime
|
78
72
|
prerelease: false
|
79
73
|
version_requirements: !ruby/object:Gem::Requirement
|
80
74
|
requirements:
|
81
|
-
- - "
|
75
|
+
- - "~>"
|
82
76
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
77
|
+
version: '2.0'
|
84
78
|
- !ruby/object:Gem::Dependency
|
85
79
|
name: coderay
|
86
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,14 +109,14 @@ dependencies:
|
|
115
109
|
requirements:
|
116
110
|
- - "~>"
|
117
111
|
- !ruby/object:Gem::Version
|
118
|
-
version: '0.
|
112
|
+
version: '0.9'
|
119
113
|
type: :runtime
|
120
114
|
prerelease: false
|
121
115
|
version_requirements: !ruby/object:Gem::Requirement
|
122
116
|
requirements:
|
123
117
|
- - "~>"
|
124
118
|
- !ruby/object:Gem::Version
|
125
|
-
version: '0.
|
119
|
+
version: '0.9'
|
126
120
|
- !ruby/object:Gem::Dependency
|
127
121
|
name: mime-types
|
128
122
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +159,34 @@ dependencies:
|
|
165
159
|
- - ">="
|
166
160
|
- !ruby/object:Gem::Version
|
167
161
|
version: '0'
|
162
|
+
- !ruby/object:Gem::Dependency
|
163
|
+
name: sprockets-rails
|
164
|
+
requirement: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '3.0'
|
169
|
+
type: :runtime
|
170
|
+
prerelease: false
|
171
|
+
version_requirements: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '3.0'
|
176
|
+
- !ruby/object:Gem::Dependency
|
177
|
+
name: vite_rails
|
178
|
+
requirement: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '3.0'
|
183
|
+
type: :runtime
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '3.0'
|
168
190
|
- !ruby/object:Gem::Dependency
|
169
191
|
name: solr_wrapper
|
170
192
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,28 +291,28 @@ dependencies:
|
|
269
291
|
requirements:
|
270
292
|
- - "~>"
|
271
293
|
- !ruby/object:Gem::Version
|
272
|
-
version: '
|
294
|
+
version: '2.0'
|
273
295
|
type: :development
|
274
296
|
prerelease: false
|
275
297
|
version_requirements: !ruby/object:Gem::Requirement
|
276
298
|
requirements:
|
277
299
|
- - "~>"
|
278
300
|
- !ruby/object:Gem::Version
|
279
|
-
version: '
|
301
|
+
version: '2.0'
|
280
302
|
- !ruby/object:Gem::Dependency
|
281
303
|
name: simplecov
|
282
304
|
requirement: !ruby/object:Gem::Requirement
|
283
305
|
requirements:
|
284
306
|
- - "~>"
|
285
307
|
- !ruby/object:Gem::Version
|
286
|
-
version: 0.
|
308
|
+
version: '0.22'
|
287
309
|
type: :development
|
288
310
|
prerelease: false
|
289
311
|
version_requirements: !ruby/object:Gem::Requirement
|
290
312
|
requirements:
|
291
313
|
- - "~>"
|
292
314
|
- !ruby/object:Gem::Version
|
293
|
-
version: 0.
|
315
|
+
version: '0.22'
|
294
316
|
- !ruby/object:Gem::Dependency
|
295
317
|
name: foreman
|
296
318
|
requirement: !ruby/object:Gem::Requirement
|
@@ -342,7 +364,8 @@ email:
|
|
342
364
|
- drh@stanford.edu
|
343
365
|
- eliotj@princeton.edu
|
344
366
|
- pjreed@stanford.edu
|
345
|
-
executables:
|
367
|
+
executables:
|
368
|
+
- vite
|
346
369
|
extensions: []
|
347
370
|
extra_rdoc_files: []
|
348
371
|
files:
|
@@ -358,6 +381,7 @@ files:
|
|
358
381
|
- CONTRIBUTING.md
|
359
382
|
- Gemfile
|
360
383
|
- LICENSE.txt
|
384
|
+
- Procfile.dev
|
361
385
|
- README.md
|
362
386
|
- Rakefile
|
363
387
|
- app/assets/images/blacklight/american-geographical-society-library-uwm-libraries.svg
|
@@ -477,6 +501,7 @@ files:
|
|
477
501
|
- app/assets/javascripts/geoblacklight/templates/index_map_download.hbs
|
478
502
|
- app/assets/javascripts/geoblacklight/templates/index_map_info.hbs
|
479
503
|
- app/assets/javascripts/geoblacklight/viewers.js
|
504
|
+
- app/assets/javascripts/geoblacklight/viewers/cog.js
|
480
505
|
- app/assets/javascripts/geoblacklight/viewers/esri.js
|
481
506
|
- app/assets/javascripts/geoblacklight/viewers/esri/dynamic_map_layer.js
|
482
507
|
- app/assets/javascripts/geoblacklight/viewers/esri/feature_layer.js
|
@@ -486,6 +511,7 @@ files:
|
|
486
511
|
- app/assets/javascripts/geoblacklight/viewers/index_map.js
|
487
512
|
- app/assets/javascripts/geoblacklight/viewers/map.js
|
488
513
|
- app/assets/javascripts/geoblacklight/viewers/oembed.js
|
514
|
+
- app/assets/javascripts/geoblacklight/viewers/pmtiles.js
|
489
515
|
- app/assets/javascripts/geoblacklight/viewers/tilejson.js
|
490
516
|
- app/assets/javascripts/geoblacklight/viewers/tms.js
|
491
517
|
- app/assets/javascripts/geoblacklight/viewers/viewer.js
|
@@ -523,6 +549,13 @@ files:
|
|
523
549
|
- app/controllers/download_controller.rb
|
524
550
|
- app/controllers/relation_controller.rb
|
525
551
|
- app/controllers/wms_controller.rb
|
552
|
+
- app/frontend/clover/clover_initializer.js
|
553
|
+
- app/frontend/entrypoints/application.js
|
554
|
+
- app/frontend/entrypoints/clover.js
|
555
|
+
- app/frontend/entrypoints/ol.js
|
556
|
+
- app/frontend/openlayers/basemaps.js
|
557
|
+
- app/frontend/openlayers/ol_initializer.js
|
558
|
+
- app/frontend/stylesheets/openlayers.css
|
526
559
|
- app/helpers/arcgis_helper.rb
|
527
560
|
- app/helpers/blacklight_helper.rb
|
528
561
|
- app/helpers/carto_helper.rb
|
@@ -576,9 +609,11 @@ files:
|
|
576
609
|
- app/views/relation/index.json.jbuilder
|
577
610
|
- app/views/shared/_header_navbar.html.erb
|
578
611
|
- babel.config.json
|
612
|
+
- bin/vite
|
579
613
|
- config/initializers/new_gbl_settings_defaults_4.1.yml
|
580
614
|
- config/initializers/rails_config.rb
|
581
615
|
- config/locales/geoblacklight.en.yml
|
616
|
+
- config/vite.json
|
582
617
|
- geoblacklight.gemspec
|
583
618
|
- jest.config.js
|
584
619
|
- lib/generators/geoblacklight/assets_generator.rb
|
@@ -588,9 +623,16 @@ files:
|
|
588
623
|
- lib/generators/geoblacklight/templates/assets/_geoblacklight.scss
|
589
624
|
- lib/generators/geoblacklight/templates/assets/application.scss
|
590
625
|
- lib/generators/geoblacklight/templates/assets/geoblacklight.js
|
626
|
+
- lib/generators/geoblacklight/templates/base.html.erb
|
591
627
|
- lib/generators/geoblacklight/templates/catalog_controller.rb
|
628
|
+
- lib/generators/geoblacklight/templates/clover.js
|
629
|
+
- lib/generators/geoblacklight/templates/ol.js
|
630
|
+
- lib/generators/geoblacklight/templates/package.json
|
592
631
|
- lib/generators/geoblacklight/templates/settings.gbl_v1.yml
|
593
632
|
- lib/generators/geoblacklight/templates/settings.yml
|
633
|
+
- lib/generators/geoblacklight/templates/vite.config.ts
|
634
|
+
- lib/generators/geoblacklight/templates/vite.json
|
635
|
+
- lib/generators/geoblacklight/templates/vite.rb
|
594
636
|
- lib/geoblacklight.rb
|
595
637
|
- lib/geoblacklight/bounding_box.rb
|
596
638
|
- lib/geoblacklight/constants.rb
|
@@ -701,10 +743,19 @@ files:
|
|
701
743
|
- spec/features/wmts_spec.rb
|
702
744
|
- spec/features/xyz_spec.rb
|
703
745
|
- spec/fixtures/fgdc/harvard-g7064-s2-1834-k3.xml
|
746
|
+
- spec/fixtures/index_maps/index-map-point.geojson
|
747
|
+
- spec/fixtures/index_maps/index-map-polygon-no-downloadurl.geojson
|
748
|
+
- spec/fixtures/index_maps/index-map-polygon.geojson
|
749
|
+
- spec/fixtures/index_maps/index-map-stanford.geojson
|
750
|
+
- spec/fixtures/index_maps/index-map-v1-complex.geojson
|
704
751
|
- spec/fixtures/iso19139/stanford-cg357zz0321.xml
|
705
752
|
- spec/fixtures/manifests/tilejson.json
|
706
753
|
- spec/fixtures/manifests/wmts-multiple.xml
|
707
754
|
- spec/fixtures/manifests/wmts-single.xml
|
755
|
+
- spec/fixtures/metadata/fgdc.html
|
756
|
+
- spec/fixtures/metadata/fgdc.xml
|
757
|
+
- spec/fixtures/metadata/iso.html
|
758
|
+
- spec/fixtures/metadata/iso.xml
|
708
759
|
- spec/fixtures/mods/fb897vt9938.mods
|
709
760
|
- spec/fixtures/mods/stanford-cg357zz0321.mods
|
710
761
|
- spec/fixtures/solr_documents/README.md
|
@@ -713,6 +764,7 @@ files:
|
|
713
764
|
- spec/fixtures/solr_documents/actual-polygon1.json
|
714
765
|
- spec/fixtures/solr_documents/actual-raster1.json
|
715
766
|
- spec/fixtures/solr_documents/all-relationships.json
|
767
|
+
- spec/fixtures/solr_documents/b1g_iiif_manifest.json
|
716
768
|
- spec/fixtures/solr_documents/b1g_wabash_child_15.json
|
717
769
|
- spec/fixtures/solr_documents/b1g_wabash_child_16.json
|
718
770
|
- spec/fixtures/solr_documents/b1g_wabash_child_17.json
|
@@ -735,6 +787,7 @@ files:
|
|
735
787
|
- spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json
|
736
788
|
- spec/fixtures/solr_documents/index-map-polygon.json
|
737
789
|
- spec/fixtures/solr_documents/index-map-stanford.json
|
790
|
+
- spec/fixtures/solr_documents/index-map-v1-complex.json
|
738
791
|
- spec/fixtures/solr_documents/index_map_point.json
|
739
792
|
- spec/fixtures/solr_documents/metadata_no_geom.json
|
740
793
|
- spec/fixtures/solr_documents/metadata_no_provider.json
|
@@ -747,8 +800,10 @@ files:
|
|
747
800
|
- spec/fixtures/solr_documents/princeton-child3.json
|
748
801
|
- spec/fixtures/solr_documents/princeton-child4.json
|
749
802
|
- spec/fixtures/solr_documents/princeton-parent.json
|
803
|
+
- spec/fixtures/solr_documents/public_cog_princeton.json
|
750
804
|
- spec/fixtures/solr_documents/public_direct_download.json
|
751
805
|
- spec/fixtures/solr_documents/public_iiif_princeton.json
|
806
|
+
- spec/fixtures/solr_documents/public_pmtiles_princeton.json
|
752
807
|
- spec/fixtures/solr_documents/public_polygon_mit.json
|
753
808
|
- spec/fixtures/solr_documents/restricted-line.json
|
754
809
|
- spec/fixtures/solr_documents/the-related-record.json
|
@@ -812,11 +867,6 @@ files:
|
|
812
867
|
- spec/tasks/geoblacklight_spec.rb
|
813
868
|
- spec/test_app_templates/Gemfile.extra
|
814
869
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
815
|
-
- spec/test_app_templates/metadata/fgdc.html
|
816
|
-
- spec/test_app_templates/metadata/fgdc.xml
|
817
|
-
- spec/test_app_templates/metadata/iso.html
|
818
|
-
- spec/test_app_templates/metadata/iso.xml
|
819
|
-
- spec/test_app_templates/solr_documents
|
820
870
|
- spec/views/catalog/_document_split.html.erb_spec.rb
|
821
871
|
- spec/views/catalog/_index_split.html.erb_spec.rb
|
822
872
|
- spec/views/catalog/_results_pagination.html.erb_spec.rb
|
@@ -839,6 +889,7 @@ files:
|
|
839
889
|
- vendor/assets/javascripts/native.history.js
|
840
890
|
- vendor/assets/stylesheets/leaflet.css
|
841
891
|
- vendor/assets/stylesheets/leaflet.fullscreen.css
|
892
|
+
- vite.config.ts
|
842
893
|
homepage: http://github.com/geoblacklight/geoblacklight
|
843
894
|
licenses:
|
844
895
|
- Apache 2.0
|
@@ -1 +0,0 @@
|
|
1
|
-
../fixtures/solr_documents
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|