geoblacklight 4.1.1 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +3 -11
  3. data/.gitignore +9 -0
  4. data/Gemfile +14 -0
  5. data/Procfile.dev +3 -0
  6. data/README.md +5 -30
  7. data/app/assets/images/blacklight/geoblacklight-icons.json +1857 -966
  8. data/app/assets/javascripts/geoblacklight/modules/util.js +8 -3
  9. data/app/assets/javascripts/geoblacklight/templates/index_map_info.hbs +22 -1
  10. data/app/assets/javascripts/geoblacklight/viewers/cog.js +5 -0
  11. data/app/assets/javascripts/geoblacklight/viewers/pmtiles.js +5 -0
  12. data/app/controllers/download_controller.rb +1 -21
  13. data/app/frontend/clover/clover_initializer.js +29 -0
  14. data/app/frontend/entrypoints/application.js +28 -0
  15. data/app/frontend/entrypoints/clover.js +5 -0
  16. data/app/frontend/entrypoints/ol.js +5 -0
  17. data/app/frontend/openlayers/basemaps.js +47 -0
  18. data/app/frontend/openlayers/ol_initializer.js +105 -0
  19. data/app/frontend/stylesheets/openlayers.css +1 -0
  20. data/app/helpers/geoblacklight/application_helper.rb +8 -0
  21. data/app/helpers/geoblacklight_helper.rb +54 -0
  22. data/app/views/catalog/_citation.html.erb +1 -1
  23. data/app/views/catalog/_show_default_viewer_container.html.erb +1 -2
  24. data/app/views/catalog/_web_services_default.html.erb +6 -1
  25. data/app/views/catalog/_web_services_wfs.html.erb +6 -1
  26. data/app/views/catalog/_web_services_wms.html.erb +6 -1
  27. data/app/views/catalog/web_services.html.erb +16 -0
  28. data/bin/vite +29 -0
  29. data/config/locales/geoblacklight.en.yml +12 -2
  30. data/config/vite.json +14 -0
  31. data/geoblacklight.gemspec +7 -5
  32. data/lib/generators/geoblacklight/install_generator.rb +19 -4
  33. data/lib/generators/geoblacklight/templates/base.html.erb +52 -0
  34. data/lib/generators/geoblacklight/templates/catalog_controller.rb +0 -2
  35. data/lib/generators/geoblacklight/templates/settings.yml +4 -0
  36. data/lib/generators/geoblacklight/templates/vite.json +16 -0
  37. data/lib/geoblacklight/constants.rb +3 -1
  38. data/lib/geoblacklight/engine.rb +24 -0
  39. data/lib/geoblacklight/faraday_middleware/follow_redirects.rb +1 -1
  40. data/lib/geoblacklight/item_viewer.rb +13 -1
  41. data/lib/geoblacklight/metadata_transformer/base.rb +1 -1
  42. data/lib/geoblacklight/version.rb +1 -1
  43. data/package.json +8 -12
  44. data/spec/features/download_layer_spec.rb +1 -2
  45. data/spec/features/full_screen_controll_spec.rb +8 -1
  46. data/spec/features/home_page_spec.rb +3 -0
  47. data/spec/features/search_results_map_spec.rb +1 -0
  48. data/spec/features/web_services_modal_spec.rb +30 -0
  49. data/spec/fixtures/index_maps/index-map-point.geojson +949 -0
  50. data/spec/fixtures/index_maps/index-map-polygon-no-downloadurl.geojson +970 -0
  51. data/spec/fixtures/index_maps/index-map-polygon.geojson +970 -0
  52. data/spec/fixtures/index_maps/index-map-stanford.geojson +390 -0
  53. data/spec/fixtures/index_maps/index-map-v1-complex.geojson +12249 -0
  54. data/spec/fixtures/solr_documents/README.md +1 -0
  55. data/spec/fixtures/solr_documents/b1g_iiif_manifest.json +64 -0
  56. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +1 -1
  57. data/spec/fixtures/solr_documents/index-map-polygon.json +1 -1
  58. data/spec/fixtures/solr_documents/index-map-stanford.json +1 -1
  59. data/spec/fixtures/solr_documents/index-map-v1-complex.json +56 -0
  60. data/spec/fixtures/solr_documents/index_map_point.json +1 -1
  61. data/spec/fixtures/solr_documents/public_cog_princeton.json +57 -0
  62. data/spec/fixtures/solr_documents/public_pmtiles_princeton.json +41 -0
  63. data/spec/helpers/geoblacklight_helper_spec.rb +42 -0
  64. data/spec/spec_helper.rb +1 -1
  65. data/spec/test_app_templates/Gemfile.extra +0 -1
  66. data/spec/test_app_templates/lib/generators/test_app_generator.rb +7 -17
  67. data/vite.config.ts +8 -0
  68. metadata +74 -27
  69. data/spec/test_app_templates/solr_documents +0 -1
  70. /data/spec/{test_app_templates → fixtures}/metadata/fgdc.html +0 -0
  71. /data/spec/{test_app_templates → fixtures}/metadata/fgdc.xml +0 -0
  72. /data/spec/{test_app_templates → fixtures}/metadata/iso.html +0 -0
  73. /data/spec/{test_app_templates → fixtures}/metadata/iso.xml +0 -0
@@ -0,0 +1,390 @@
1
+ {
2
+ "type": "FeatureCollection",
3
+ "features": [
4
+ {
5
+ "type": "Feature",
6
+ "properties": {
7
+ "sheet": 1,
8
+ "available": false,
9
+ "recordIdentifier": 10532136,
10
+ "websiteUrl": "http://purl.stanford.edu/zh828kt2136",
11
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
12
+ "titleEng": "Dabao Kinb?zu",
13
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 8",
14
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
15
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/zh828kt2136&hide_title=true#",
16
+ "iiifUrl": "https://purl.stanford.edu/zh828kt2136/iiif/manifest",
17
+ "callNumberShort": "G8064 .D245 S50 .J3",
18
+ "label": "SHEET 8",
19
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 8",
20
+ "barcode": 36105221064400,
21
+ "id": 0,
22
+ "objectIdentifier": "zh828kt2136"
23
+ },
24
+ "geometry": {
25
+ "type": "Polygon",
26
+ "coordinates": [
27
+ [
28
+ [
29
+ 125,
30
+ 6.6666
31
+ ],
32
+ [
33
+ 125,
34
+ 6.833275
35
+ ],
36
+ [
37
+ 125.25,
38
+ 6.833275
39
+ ],
40
+ [
41
+ 125.25,
42
+ 6.6666
43
+ ],
44
+ [
45
+ 125,
46
+ 6.6666
47
+ ]
48
+ ]
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "type": "Feature",
54
+ "properties": {
55
+ "sheet": 1,
56
+ "available": true,
57
+ "recordIdentifier": 10532136,
58
+ "websiteUrl": "http://purl.stanford.edu/ww531pg8163",
59
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
60
+ "titleEng": "Dabao Kinb?zu",
61
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 7",
62
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
63
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/ww531pg8163&hide_title=true#",
64
+ "iiifUrl": "https://purl.stanford.edu/ww531pg8163/iiif/manifest",
65
+ "callNumberShort": "G8064 .D245 S50 .J3",
66
+ "label": "SHEET 7",
67
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 7",
68
+ "barcode": 36105221064400,
69
+ "id": 0,
70
+ "objectIdentifier": "ww531pg8163"
71
+ },
72
+ "geometry": {
73
+ "type": "Polygon",
74
+ "coordinates": [
75
+ [
76
+ [
77
+ 125.25,
78
+ 6.6666
79
+ ],
80
+ [
81
+ 125.25,
82
+ 6.833275
83
+ ],
84
+ [
85
+ 125.5,
86
+ 6.833275
87
+ ],
88
+ [
89
+ 125.5,
90
+ 6.6666
91
+ ],
92
+ [
93
+ 125.25,
94
+ 6.6666
95
+ ]
96
+ ]
97
+ ]
98
+ }
99
+ },
100
+ {
101
+ "type": "Feature",
102
+ "properties": {
103
+ "sheet": 1,
104
+ "available": true,
105
+ "recordIdentifier": 10532136,
106
+ "websiteUrl": "http://purl.stanford.edu/ff398nq3366",
107
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
108
+ "titleEng": "Dabao Kinb?zu",
109
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 6",
110
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
111
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/ff398nq3366&hide_title=true#",
112
+ "iiifUrl": "https://purl.stanford.edu/ff398nq3366/iiif/manifest",
113
+ "callNumberShort": "G8064 .D245 S50 .J3",
114
+ "label": "SHEET 6",
115
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 6",
116
+ "barcode": 36105221064400,
117
+ "id": 0,
118
+ "objectIdentifier": "ff398nq3366"
119
+ },
120
+ "geometry": {
121
+ "type": "Polygon",
122
+ "coordinates": [
123
+ [
124
+ [
125
+ 125.25,
126
+ 6.833275
127
+ ],
128
+ [
129
+ 125.25,
130
+ 6.99995
131
+ ],
132
+ [
133
+ 125.5,
134
+ 6.99995
135
+ ],
136
+ [
137
+ 125.5,
138
+ 6.833275
139
+ ],
140
+ [
141
+ 125.25,
142
+ 6.833275
143
+ ]
144
+ ]
145
+ ]
146
+ }
147
+ },
148
+ {
149
+ "type": "Feature",
150
+ "properties": {
151
+ "sheet": 1,
152
+ "available": true,
153
+ "recordIdentifier": 10532136,
154
+ "websiteUrl": "http://purl.stanford.edu/zs508nd4169",
155
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
156
+ "titleEng": "Dabao Kinb?zu",
157
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 4",
158
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
159
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/zs508nd4169&hide_title=true#",
160
+ "iiifUrl": "https://purl.stanford.edu/zs508nd4169/iiif/manifest",
161
+ "callNumberShort": "G8064 .D245 S50 .J3",
162
+ "label": "SHEET 4",
163
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 4",
164
+ "barcode": 36105221064400,
165
+ "id": 0,
166
+ "objectIdentifier": "zs508nd4169"
167
+ },
168
+ "geometry": {
169
+ "type": "Polygon",
170
+ "coordinates": [
171
+ [
172
+ [
173
+ 125.59930182113703,
174
+ 6.833275
175
+ ],
176
+ [
177
+ 125.59930182113703,
178
+ 6.99995
179
+ ],
180
+ [
181
+ 125.84930182113703,
182
+ 6.99995
183
+ ],
184
+ [
185
+ 125.84930182113703,
186
+ 6.833275
187
+ ],
188
+ [
189
+ 125.59930182113703,
190
+ 6.833275
191
+ ]
192
+ ]
193
+ ]
194
+ }
195
+ },
196
+ {
197
+ "type": "Feature",
198
+ "properties": {
199
+ "sheet": 1,
200
+ "available": true,
201
+ "recordIdentifier": 10532136,
202
+ "websiteUrl": "http://purl.stanford.edu/bt394cv2922",
203
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
204
+ "titleEng": "Dabao Kinb?zu",
205
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 5",
206
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
207
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/bt394cv2922&hide_title=true#",
208
+ "iiifUrl": "https://purl.stanford.edu/bt394cv2922/iiif/manifest",
209
+ "callNumberShort": "G8064 .D245 S50 .J3",
210
+ "label": "SHEET 5",
211
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 5",
212
+ "barcode": 36105221064400,
213
+ "id": 0,
214
+ "objectIdentifier": "bt394cv2922"
215
+ },
216
+ "geometry": {
217
+ "type": "Polygon",
218
+ "coordinates": [
219
+ [
220
+ [
221
+ 125.25,
222
+ 6.99995
223
+ ],
224
+ [
225
+ 125.25,
226
+ 7.166625
227
+ ],
228
+ [
229
+ 125.5,
230
+ 7.166625
231
+ ],
232
+ [
233
+ 125.5,
234
+ 6.99995
235
+ ],
236
+ [
237
+ 125.25,
238
+ 6.99995
239
+ ]
240
+ ]
241
+ ]
242
+ }
243
+ },
244
+ {
245
+ "type": "Feature",
246
+ "properties": {
247
+ "sheet": 1,
248
+ "available": true,
249
+ "recordIdentifier": 10532136,
250
+ "websiteUrl": "http://purl.stanford.edu/qc332sy1729",
251
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
252
+ "titleEng": "Dabao Kinb?zu",
253
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 3",
254
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
255
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/qc332sy1729&hide_title=true#",
256
+ "iiifUrl": "https://purl.stanford.edu/qc332sy1729/iiif/manifest",
257
+ "callNumberShort": "G8064 .D245 S50 .J3",
258
+ "label": "SHEET 3",
259
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 3",
260
+ "barcode": 36105221064400,
261
+ "id": 0,
262
+ "objectIdentifier": "qc332sy1729"
263
+ },
264
+ "geometry": {
265
+ "type": "Polygon",
266
+ "coordinates": [
267
+ [
268
+ [
269
+ 125.5,
270
+ 6.99995
271
+ ],
272
+ [
273
+ 125.5,
274
+ 7.166625
275
+ ],
276
+ [
277
+ 125.75,
278
+ 7.166625
279
+ ],
280
+ [
281
+ 125.75,
282
+ 6.99995
283
+ ],
284
+ [
285
+ 125.5,
286
+ 6.99995
287
+ ]
288
+ ]
289
+ ]
290
+ }
291
+ },
292
+ {
293
+ "type": "Feature",
294
+ "properties": {
295
+ "sheet": 1,
296
+ "available": true,
297
+ "recordIdentifier": 10532136,
298
+ "websiteUrl": "http://purl.stanford.edu/nt236fh7803",
299
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
300
+ "titleEng": "Dabao Kinb?zu",
301
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 1",
302
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
303
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/nt236fh7803&hide_title=true#",
304
+ "iiifUrl": "https://purl.stanford.edu/nt236fh7803/iiif/manifest",
305
+ "callNumberShort": "G8064 .D245 S50 .J3",
306
+ "label": "SHEET 1",
307
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 1",
308
+ "barcode": 36105221065500,
309
+ "id": 0,
310
+ "objectIdentifier": "nt236fh7803"
311
+ },
312
+ "geometry": {
313
+ "type": "Polygon",
314
+ "coordinates": [
315
+ [
316
+ [
317
+ 125.75,
318
+ 6.99995
319
+ ],
320
+ [
321
+ 125.75,
322
+ 7.166625
323
+ ],
324
+ [
325
+ 126,
326
+ 7.166625
327
+ ],
328
+ [
329
+ 126,
330
+ 6.99995
331
+ ],
332
+ [
333
+ 125.75,
334
+ 6.99995
335
+ ]
336
+ ]
337
+ ]
338
+ }
339
+ },
340
+ {
341
+ "type": "Feature",
342
+ "properties": {
343
+ "sheet": 1,
344
+ "available": true,
345
+ "recordIdentifier": 10532136,
346
+ "websiteUrl": "http://purl.stanford.edu/qs945pv4099",
347
+ "title": "Dabao Kinbōzu -- ダバオ近傍圖",
348
+ "titleEng": "Dabao Kinb?zu",
349
+ "callNumber": "G8064 .D245 S50 .J3 SHEET 2",
350
+ "webmapURL": "http://stanford.maps.arcgis.com/apps/SimpleViewer/index.html?appid=fbf74326c29945118d5642f061647e74",
351
+ "downloadUrl": "https://embed.stanford.edu/iframe?url=https://purl.stanford.edu/qs945pv4099&hide_title=true#",
352
+ "iiifUrl": "https://purl.stanford.edu/qs945pv4099/iiif/manifest",
353
+ "callNumberShort": "G8064 .D245 S50 .J3",
354
+ "label": "SHEET 2",
355
+ "sheetCallNumber": "G8064 .D245 S50 .J3 SHEET 2",
356
+ "barcode": 36105221064400,
357
+ "id": 0,
358
+ "objectIdentifier": "qs945pv4099"
359
+ },
360
+ "geometry": {
361
+ "type": "Polygon",
362
+ "coordinates": [
363
+ [
364
+ [
365
+ 125.5,
366
+ 7.166625
367
+ ],
368
+ [
369
+ 125.5,
370
+ 7.3333
371
+ ],
372
+ [
373
+ 125.75,
374
+ 7.3333
375
+ ],
376
+ [
377
+ 125.75,
378
+ 7.166625
379
+ ],
380
+ [
381
+ 125.5,
382
+ 7.166625
383
+ ]
384
+ ]
385
+ ]
386
+ }
387
+ }
388
+ ]
389
+ }
390
+