geoblacklight_sidecar_images 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +12 -4
  3. data/.solr_wrapper.yml +0 -1
  4. data/README.md +10 -16
  5. data/app/assets/stylesheets/geoblacklight_sidecar_images/modules/_results.scss +32 -8
  6. data/app/models/concerns/wms_rewrite_concern.rb +1 -1
  7. data/app/services/geoblacklight_sidecar_images/image_service/wms.rb +1 -1
  8. data/geoblacklight_sidecar_images.gemspec +2 -2
  9. data/lib/generators/geoblacklight_sidecar_images/helpers_generator.rb +21 -0
  10. data/lib/generators/geoblacklight_sidecar_images/install_generator.rb +7 -1
  11. data/lib/generators/geoblacklight_sidecar_images/templates/helpers/blacklight/layout_helper_behavior.rb +110 -0
  12. data/lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb +25 -24
  13. data/lib/geoblacklight_sidecar_images/version.rb +1 -1
  14. data/lib/tasks/geoblacklight_sidecar_images_tasks.rake +1 -1
  15. data/solr/conf/schema.xml +60 -58
  16. data/solr/conf/solrconfig.xml +29 -29
  17. data/spec/fixtures/files/actual-polygon1.json +33 -18
  18. data/spec/fixtures/files/esri-dynamic-layer-all-layers.json +34 -25
  19. data/spec/fixtures/files/esri-image-map-layer.json +36 -26
  20. data/spec/fixtures/files/esri-tiled_map_layer.json +35 -20
  21. data/spec/fixtures/files/placeholder.json +38 -0
  22. data/spec/fixtures/files/public_iiif_princeton.json +41 -26
  23. data/spec/fixtures/files/umich_iiif_jpg.json +48 -25
  24. data/spec/fixtures/files/umn_iiif_jpg.json +57 -28
  25. data/spec/fixtures/files/umn_solr_thumb.json +59 -31
  26. data/spec/services/image_service_spec.rb +60 -7
  27. data/template.rb +4 -4
  28. metadata +11 -42
  29. data/app/assets/stylesheets/geoblacklight_sidecar_images/application.scss +0 -10
  30. data/lib/generators/geoblacklight_sidecar_images/templates/gblsci.scss +0 -3
  31. data/spec/fixtures/files/actual-papermap1.json +0 -23
  32. data/spec/fixtures/files/actual-point1.json +0 -37
  33. data/spec/fixtures/files/actual-raster1.json +0 -38
  34. data/spec/fixtures/files/b1g_thumbnail.json +0 -42
  35. data/spec/fixtures/files/baruch_ancestor1.json +0 -46
  36. data/spec/fixtures/files/baruch_ancestor2.json +0 -46
  37. data/spec/fixtures/files/baruch_documentation_download.json +0 -49
  38. data/spec/fixtures/files/bbox-spans-180.json +0 -20
  39. data/spec/fixtures/files/cornell_html_metadata.json +0 -42
  40. data/spec/fixtures/files/esri-dynamic-layer-single-layer.json +0 -40
  41. data/spec/fixtures/files/esri-feature-layer.json +0 -46
  42. data/spec/fixtures/files/esri-wms-layer.json +0 -33
  43. data/spec/fixtures/files/harvard_raster.json +0 -44
  44. data/spec/fixtures/files/iiif-eastern-hemisphere.json +0 -30
  45. data/spec/fixtures/files/index-map-polygon-no-downloadurl.json +0 -37
  46. data/spec/fixtures/files/index-map-polygon.json +0 -37
  47. data/spec/fixtures/files/index-map-stanford.json +0 -37
  48. data/spec/fixtures/files/index_map_point.json +0 -27
  49. data/spec/fixtures/files/no_spatial.json +0 -21
  50. data/spec/fixtures/files/princeton-child1.json +0 -30
  51. data/spec/fixtures/files/princeton-child2.json +0 -30
  52. data/spec/fixtures/files/princeton-child3.json +0 -30
  53. data/spec/fixtures/files/princeton-child4.json +0 -30
  54. data/spec/fixtures/files/princeton-parent.json +0 -25
  55. data/spec/fixtures/files/public_direct_download.json +0 -34
  56. data/spec/fixtures/files/public_polygon_mit.json +0 -27
  57. data/spec/fixtures/files/restricted-line.json +0 -37
  58. data/spec/fixtures/files/umn_metro_result1.json +0 -41
  59. data/spec/fixtures/files/umn_metro_result2.json +0 -35
  60. data/spec/fixtures/files/umn_state_result1.json +0 -38
  61. data/spec/fixtures/files/umn_state_result2.json +0 -38
  62. data/spec/fixtures/files/uva_slug_colon.json +0 -25
@@ -1,29 +1,58 @@
1
1
  {
2
- "dc_description_s":"Cartographic Details: Scale approximately 1:1,341,000. 90 British Miles 69 1/2 to a Degree = 10.8 cm. Third edition. 56 x 83 cm",
3
- "layer_modified_dt":"2017-12-11T12:01:50Z",
4
- "solr_geom":"ENVELOPE(-93.2601, -93.2301, 44.98, 44.96)",
5
- "dct_references_s":"{\"http://schema.org/url\":\"http://purl.umn.edu/204328\",\"http://schema.org/downloadUrl\":\"https://umedia.lib.umn.edu/sites/default/files/archive/84/image/tiff/1062058.tif\",\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll245/889/info.json\"}",
6
- "dc_rights_s":"Public",
7
- "uuid":"83f4648a-125c-4000-a12f-aba2b432e7cd",
8
- "dct_provenance_s":"Minnesota",
9
- "dc_subject_sm":["Aerial views",
10
- "Bird's-eye views"],
11
- "dct_temporal_sm":["1891"],
12
- "dct_issued_s":"1891",
13
- "dc_format_s":"TIFF",
14
- "dc_creator_sm":["Pezolt, F."],
15
- "dc_type_s":"Image",
16
- "dc_identifier_s":"minnesota-iiif-jpg-83f4648a-125c-4000-a12f-aba2b432e7cd",
17
- "dc_relation_sm":["http://sws.geonames.org/5037649",
18
- "http://sws.geonames.org/5037779"],
19
- "dct_isPartOf_sm":["John R. Borchert Map Library"],
20
- "solr_year_i":1891,
21
- "dct_spatial_sm":["Minneapolis, Minnesota, United States",
22
- "Minnesota, United States"],
23
- "dc_publisher_sm":["A.M. Smith"],
24
- "dc_title_s":"Bird's eye view of Minneapolis, Minn",
25
- "layer_slug_s":"83f4648a-125c-4000-a12f-aba2b432e7cd",
26
- "centroid_s":"44.97,-93.2451",
27
- "layer_geom_type_s":"Paper Map",
28
- "dc_language_s":"English"
29
- }
2
+ "id": "83f4648a-125c-4000-a12f-aba2b432e7cd",
3
+ "dct_identifier_sm": [
4
+ "minnesota-iiif-jpg-83f4648a-125c-4000-a12f-aba2b432e7cd"
5
+ ],
6
+ "dct_title_s": "Bird's eye view of Minneapolis, Minn",
7
+ "dct_description_sm": [
8
+ "Cartographic Details: Scale approximately 1:1,341,000. 90 British Miles 69 1/2 to a Degree = 10.8 cm. Third edition. 56 x 83 cm"
9
+ ],
10
+ "dct_language_sm": [
11
+ "English"
12
+ ],
13
+ "dct_creator_sm": [
14
+ "Pezolt, F."
15
+ ],
16
+ "dct_publisher_sm": [
17
+ "A.M. Smith"
18
+ ],
19
+ "schema_provider_s": "Minnesota",
20
+ "gbl_resourceClass_sm": [
21
+ "Imagery"
22
+ ],
23
+ "gbl_resourceType_sm": [
24
+ "EDIT ME -- this record had layer_geom_type_s = Paper Map"
25
+ ],
26
+ "dct_subject_sm": [
27
+ "Aerial views",
28
+ "Bird's-eye views"
29
+ ],
30
+ "dcat_theme_sm": [
31
+ "imagery",
32
+ "biology"
33
+ ],
34
+ "dct_temporal_sm": [
35
+ "1891"
36
+ ],
37
+ "dct_issued_s": "1891",
38
+ "gbl_indexYear_im": [
39
+ 1891
40
+ ],
41
+ "dct_spatial_sm": [
42
+ "Minneapolis, Minnesota, United States",
43
+ "Minnesota, United States"
44
+ ],
45
+ "locn_geometry": "ENVELOPE(-93.2601, -93.2301, 44.98, 44.96)",
46
+ "dcat_bbox": "ENVELOPE(-93.2601, -93.2301, 44.98, 44.96)",
47
+ "dct_accessRights_s": "Public",
48
+ "dct_format_s": "TIFF",
49
+ "dct_references_s": "{\"http://schema.org/url\":\"http://purl.umn.edu/204328\",\"http://schema.org/downloadUrl\":[{\"label\":\"TIFF\",\"url\":\"https://umedia.lib.umn.edu/sites/default/files/archive/84/image/tiff/1062058.tif\"}],\"http://iiif.io/api/image\":\"https://cdm16022.contentdm.oclc.org/digital/iiif/p16022coll245/889/info.json\"}",
50
+ "gbl_mdModified_dt": "2017-12-11T12:01:50Z",
51
+ "gbl_mdVersion_s": "Aardvark",
52
+ "dc_relation_sm": [
53
+ "http://sws.geonames.org/5037649",
54
+ "http://sws.geonames.org/5037779"
55
+ ],
56
+ "centroid_s": "44.97,-93.2451",
57
+ "dct_isPartOf_sm": "minnesota-collection-john-r-borchert-map-library"
58
+ }
@@ -1,34 +1,62 @@
1
1
  {
2
- "dc_description_s":"Cartographic Details: Scale approximately 1:1,530,000. Description based on: 1932 sheet. Each sheet lists the Commissioner of highways and the Chief Engineer. On verso: Distance tables for various cities in Minnesota.",
3
- "layer_modified_dt":"2017-06-12T13:36:50Z",
4
- "solr_geom":"ENVELOPE(-97.2509765625, -90.9228515625, 49.3787965644, 43.4648808289)",
5
- "dct_references_s":"{\"http://schema.org/url\":\"http://purl.umn.edu/231125\",\"http://schema.org/downloadUrl\":\"https://umedia.lib.umn.edu/sites/default/files/archive/562/image/tiff/1089695.tif\",\"http://iiif.io/api/image\":\"https://umedia.lib.umn.edu/fcgi-bin/iipsrv.fcgi?IIIF=sites/default/files/reference/562/image/jp2/1089695.jp2/info.json\"}",
6
- "dc_rights_s":"Public",
7
- "uuid":"aaf63e35-3d5f-4e62-b59d-377f008e9aad",
8
- "dct_provenance_s":"Minnesota",
9
- "dc_subject_sm":["Roads -- Minnesota -- Maps",
2
+ "id": "aaf63e35-3d5f-4e62-b59d-377f008e9aad",
3
+ "dct_identifier_sm": [
4
+ "aaf63e35-3d5f-4e62-b59d-377f008e9aad"
5
+ ],
6
+ "dct_title_s": "Condition map of Minnesota Trunk Highways : a 7,000 mile primary system showing national and state markings",
7
+ "dct_description_sm": [
8
+ "Cartographic Details: Scale approximately 1:1,530,000. Description based on: 1932 sheet. Each sheet lists the Commissioner of highways and the Chief Engineer. On verso: Distance tables for various cities in Minnesota."
9
+ ],
10
+ "dct_language_sm": [
11
+ "eng"
12
+ ],
13
+ "dct_creator_sm": [
14
+ "Minnesota. Department of Highways."
15
+ ],
16
+ "dct_publisher_sm": [
17
+ "The Department"
18
+ ],
19
+ "schema_provider_s": "Minnesota",
20
+ "gbl_resourceClass_sm": [
21
+ "EDIT ME -- this record had dc_type_s = Still image"
22
+ ],
23
+ "gbl_resourceType_sm": [
24
+ "EDIT ME -- this record had layer_geom_type_s = Paper Map"
25
+ ],
26
+ "dct_subject_sm": [
27
+ "Roads -- Minnesota -- Maps",
10
28
  "Minnesota -- Distances -- Tables",
11
29
  "Minnesota -- Maps",
12
- "Maps"],
13
- "dct_temporal_sm":["1925"],
14
- "layer_slug_s":"aaf63e35-3d5f-4e62-b59d-377f008e9aad",
15
- "dc_format_s":"TIFF",
16
- "dc_creator_sm":["Minnesota. Department of Highways."],
17
- "thumbnail_path_ss":"https://cdm16022.contentdm.oclc.org/utils/getthumbnail/collection/p16022coll206/id/133.jpg",
18
- "dc_type_s":"Still image",
19
- "dc_identifier_s":"aaf63e35-3d5f-4e62-b59d-377f008e9aad",
20
- "dc_relation_sm":["http://sws.geonames.org/5037779/about/rdf"],
21
- "dct_isPartOf_sm":["John R. Borchert Map Library"],
22
- "solr_year_i":1925,
23
- "dct_spatial_sm":["Minnesota, United States"],
24
- "dc_publisher_sm":["The Department"],
25
- "layer_id_s":"urn:aaf63e35-3d5f-4e62-b59d-377f008e9aad",
26
- "georss_box_s":"43.4648808289 -97.2509765625 49.3787965644 -90.9228515625",
27
- "dc_title_s":"Condition map of Minnesota Trunk Highways : a 7,000 mile primary system showing national and state markings",
28
- "dct_issued_s":"1925",
29
- "georss_polygon_s":"43.4648808289 -97.2509765625 49.3787965644 -97.2509765625 49.3787965644 -90.9228515625 43.4648808289 -90.9228515625 43.4648808289 -97.2509765625",
30
- "layer_geom_type_s":"Paper Map",
31
- "dc_language_s":"eng",
32
- "timestamp":"2017-06-12T22:01:27.649Z",
33
- "centroid_s":"46.42183869665,-94.0869140625"
34
- }
30
+ "Maps"
31
+ ],
32
+ "dcat_theme_sm": [
33
+ "transportation"
34
+ ],
35
+ "dct_temporal_sm": [
36
+ "1925"
37
+ ],
38
+ "dct_issued_s": "1925",
39
+ "gbl_indexYear_im": [
40
+ 1925
41
+ ],
42
+ "dct_spatial_sm": [
43
+ "Minnesota, United States"
44
+ ],
45
+ "locn_geometry": "ENVELOPE(-97.2509765625, -90.9228515625, 49.3787965644, 43.4648808289)",
46
+ "dcat_bbox": "ENVELOPE(-97.2509765625, -90.9228515625, 49.3787965644, 43.4648808289)",
47
+ "dct_accessRights_s": "Public",
48
+ "dct_format_s": "TIFF",
49
+ "gbl_wxsIdentifier_s": "urn:aaf63e35-3d5f-4e62-b59d-377f008e9aad",
50
+ "dct_references_s": "{\"http://schema.org/url\":\"http://purl.umn.edu/231125\",\"http://schema.org/downloadUrl\":[{\"label\":\"TIFF\",\"url\":\"https://umedia.lib.umn.edu/sites/default/files/archive/562/image/tiff/1089695.tif\"}],\"http://iiif.io/api/image\":\"https://umedia.lib.umn.edu/fcgi-bin/iipsrv.fcgi?IIIF=sites/default/files/reference/562/image/jp2/1089695.jp2/info.json\"}",
51
+ "gbl_mdModified_dt": "2017-06-12T13:36:50Z",
52
+ "gbl_mdVersion_s": "Aardvark",
53
+ "thumbnail_path_ss": "https://cdm16022.contentdm.oclc.org/utils/getthumbnail/collection/p16022coll206/id/133.jpg",
54
+ "dc_relation_sm": [
55
+ "http://sws.geonames.org/5037779/about/rdf"
56
+ ],
57
+ "georss_box_s": "43.4648808289 -97.2509765625 49.3787965644 -90.9228515625",
58
+ "georss_polygon_s": "43.4648808289 -97.2509765625 49.3787965644 -97.2509765625 49.3787965644 -90.9228515625 43.4648808289 -90.9228515625 43.4648808289 -97.2509765625",
59
+ "timestamp": "2017-06-12T22:01:27.649Z",
60
+ "centroid_s": "46.42183869665,-94.0869140625",
61
+ "dct_isPartOf_sm": "minnesota-collection-john-r-borchert-map-library"
62
+ }
@@ -3,27 +3,80 @@
3
3
  require "rails_helper"
4
4
 
5
5
  describe GeoblacklightSidecarImages::ImageService do
6
+ # Dynamic Map Layer
7
+ let(:dynamic_map_document) { SolrDocument.new(json_data("esri-dynamic-layer-all-layers")) }
8
+ let(:dynamic_map_imgsvc) { described_class.new(dynamic_map_document) }
9
+
10
+ # IIIF
6
11
  let(:iiif_document) { SolrDocument.new(json_data("umich_iiif_jpg")) }
7
12
  let(:iiif_imgsvc) { described_class.new(iiif_document) }
8
- let(:wms_document) { SolrDocument.new(json_data("esri-wms-layer")) }
13
+
14
+ # Image Map Layer
15
+ let(:image_map_document) { SolrDocument.new(json_data("esri-image-map-layer")) }
16
+ let(:image_map_imgsvc) { described_class.new(image_map_document) }
17
+
18
+ # WMS
19
+ let(:wms_document) { SolrDocument.new(json_data("actual-polygon1")) }
9
20
  let(:wms_imgsvc) { described_class.new(wms_document) }
21
+
22
+ # Thumbnail
10
23
  let(:thumb_document) { SolrDocument.new(json_data("umn_solr_thumb")) }
11
24
  let(:thumb_imgsvc) { described_class.new(thumb_document) }
12
- let(:map_document) { SolrDocument.new(json_data("b1g_thumbnail")) }
13
- let(:map_imgsvc) { described_class.new(map_document) }
14
25
 
15
- # @TODO: bdcbcd3e-f6db-4ee4-b7b7-d75fe35f1d92 - Michigan State - thumbnail_path_ss
26
+ # Tiled Map Layer
27
+ let(:tiled_map_document) { SolrDocument.new(json_data("esri-tiled_map_layer")) }
28
+ let(:tiled_map_imgsvc) { described_class.new(tiled_map_document) }
29
+
30
+ # Placeholder Image
31
+ let(:placeholder_document) { SolrDocument.new(json_data("placeholder")) }
32
+ let(:placeholder_imgsvc) { described_class.new(placeholder_document) }
16
33
 
17
34
  describe "#store" do
18
35
  it "responds to store" do
19
36
  expect(iiif_imgsvc).to respond_to(:store)
20
37
  end
21
38
 
22
- it "stores an image" do
39
+ it "stores a Dynamic Map Layer" do
40
+ # Doc: 90f14ff4-1359-4beb-b931-5cb41d20ab90
41
+ dynamic_map_imgsvc.store
42
+ expect(dynamic_map_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
43
+ end
44
+
45
+ it "stores a IIIF image" do
46
+ # Doc: 3ffb1f2e-d617-4361-bc2b-49d9ad270cad
23
47
  iiif_imgsvc.store
24
48
  expect(iiif_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
25
49
  end
26
50
 
51
+ it "stores an Image Map Layer" do
52
+ # Doc: 32653ed6-8d83-4692-8a06-bf13ffe2c018
53
+ image_map_imgsvc.store
54
+ expect(image_map_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
55
+ end
56
+
57
+ it "stores a Thumbnail" do
58
+ thumb_imgsvc.store
59
+ expect(thumb_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
60
+ end
61
+
62
+ it "stores a Tiled Map Layer" do
63
+ # Doc: esri-tiled-map-layer
64
+ tiled_map_imgsvc.store
65
+ expect(tiled_map_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
66
+ end
67
+
68
+ it "stores a WMS image" do
69
+ # Doc: tufts-cambridgegrid100-04
70
+ wms_imgsvc.store
71
+ expect(wms_imgsvc.document.sidecar.image_state.current_state).to eq("succeeded")
72
+ end
73
+
74
+ it "placeholders a doc without an imageservice" do
75
+ # Doc: mit-001145244
76
+ placeholder_imgsvc.store
77
+ expect(placeholder_imgsvc.document.sidecar.image_state.current_state).to eq("placeheld")
78
+ end
79
+
27
80
  it "prioritizes settings thumbnail field" do
28
81
  expect(thumb_imgsvc.send(:gblsi_thumbnail_field?)).to be_truthy
29
82
  end
@@ -37,12 +90,12 @@ describe GeoblacklightSidecarImages::ImageService do
37
90
  end
38
91
 
39
92
  it "returns references without a settings thumbnail field value" do
40
- pending "MIT fixture is not working."
93
+ skip "MIT fixture is not working."
41
94
  expect(wms_imgsvc.send(:image_url)).to include "wms"
42
95
  end
43
96
 
44
97
  it "returns no service_url when settings thumbnail field" do
45
- expect(map_imgsvc.send(:service_url)).to be_falsey
98
+ expect(thumb_imgsvc.send(:service_url)).to be_falsey
46
99
  end
47
100
  end
48
101
 
data/template.rb CHANGED
@@ -1,9 +1,9 @@
1
- # $ rails _5.2.2_ new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight_sidecar_images/master/template.rb
1
+ # $ rails _7.0.4.2_ new app-name -m https://raw.githubusercontent.com/geoblacklight/geoblacklight_sidecar_images/master/template.rb
2
2
 
3
- gem "blacklight", ">= 7.0"
4
- gem "geoblacklight", ">= 2.0"
3
+ gem "blacklight", ">= 7.0", "< 8.0"
4
+ gem "geoblacklight", ">= 4.0"
5
5
  gem "statesman", ">= 3.4"
6
- gem "geoblacklight_sidecar_images", git: "git://github.com/ewlarson/geoblacklight_sidecar_images.git", branch: "master"
6
+ gem "geoblacklight_sidecar_images", git: "git://github.com/ewlarson/geoblacklight_sidecar_images.git", branch: "develop"
7
7
 
8
8
  run "bundle install"
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_sidecar_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-03 00:00:00.000000000 Z
12
+ date: 2023-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.0'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '1.0'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: geoblacklight
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.3'
34
+ version: '4.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '3.3'
41
+ version: '4.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: image_processing
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -286,7 +286,6 @@ files:
286
286
  - README.md
287
287
  - Rakefile
288
288
  - app/assets/stylesheets/geoblacklight_sidecar_images/_gblsci.scss
289
- - app/assets/stylesheets/geoblacklight_sidecar_images/application.scss
290
289
  - app/assets/stylesheets/geoblacklight_sidecar_images/modules/_results.scss
291
290
  - app/controllers/geoblacklight_sidecar_images/application_controller.rb
292
291
  - app/helpers/geoblacklight_sidecar_images/application_helper.rb
@@ -311,11 +310,12 @@ files:
311
310
  - geoblacklight_sidecar_images.gemspec
312
311
  - lib/generators/geoblacklight_sidecar_images/config_generator.rb
313
312
  - lib/generators/geoblacklight_sidecar_images/example_docs_generator.rb
313
+ - lib/generators/geoblacklight_sidecar_images/helpers_generator.rb
314
314
  - lib/generators/geoblacklight_sidecar_images/install_generator.rb
315
315
  - lib/generators/geoblacklight_sidecar_images/jobs_generator.rb
316
316
  - lib/generators/geoblacklight_sidecar_images/models_generator.rb
317
317
  - lib/generators/geoblacklight_sidecar_images/templates/config/initializers/statesman.rb
318
- - lib/generators/geoblacklight_sidecar_images/templates/gblsci.scss
318
+ - lib/generators/geoblacklight_sidecar_images/templates/helpers/blacklight/layout_helper_behavior.rb
319
319
  - lib/generators/geoblacklight_sidecar_images/templates/views/catalog/_index_split_default.html.erb
320
320
  - lib/generators/geoblacklight_sidecar_images/views_generator.rb
321
321
  - lib/geoblacklight_sidecar_images.rb
@@ -340,46 +340,15 @@ files:
340
340
  - solr/conf/xslt/example_rss.xsl
341
341
  - solr/conf/xslt/luke.xsl
342
342
  - spec/fixtures/files/README.md
343
- - spec/fixtures/files/actual-papermap1.json
344
- - spec/fixtures/files/actual-point1.json
345
343
  - spec/fixtures/files/actual-polygon1.json
346
- - spec/fixtures/files/actual-raster1.json
347
- - spec/fixtures/files/b1g_thumbnail.json
348
- - spec/fixtures/files/baruch_ancestor1.json
349
- - spec/fixtures/files/baruch_ancestor2.json
350
- - spec/fixtures/files/baruch_documentation_download.json
351
- - spec/fixtures/files/bbox-spans-180.json
352
- - spec/fixtures/files/cornell_html_metadata.json
353
344
  - spec/fixtures/files/esri-dynamic-layer-all-layers.json
354
- - spec/fixtures/files/esri-dynamic-layer-single-layer.json
355
- - spec/fixtures/files/esri-feature-layer.json
356
345
  - spec/fixtures/files/esri-image-map-layer.json
357
346
  - spec/fixtures/files/esri-tiled_map_layer.json
358
- - spec/fixtures/files/esri-wms-layer.json
359
- - spec/fixtures/files/harvard_raster.json
360
- - spec/fixtures/files/iiif-eastern-hemisphere.json
361
- - spec/fixtures/files/index-map-polygon-no-downloadurl.json
362
- - spec/fixtures/files/index-map-polygon.json
363
- - spec/fixtures/files/index-map-stanford.json
364
- - spec/fixtures/files/index_map_point.json
365
- - spec/fixtures/files/no_spatial.json
366
- - spec/fixtures/files/princeton-child1.json
367
- - spec/fixtures/files/princeton-child2.json
368
- - spec/fixtures/files/princeton-child3.json
369
- - spec/fixtures/files/princeton-child4.json
370
- - spec/fixtures/files/princeton-parent.json
371
- - spec/fixtures/files/public_direct_download.json
347
+ - spec/fixtures/files/placeholder.json
372
348
  - spec/fixtures/files/public_iiif_princeton.json
373
- - spec/fixtures/files/public_polygon_mit.json
374
- - spec/fixtures/files/restricted-line.json
375
349
  - spec/fixtures/files/umich_iiif_jpg.json
376
350
  - spec/fixtures/files/umn_iiif_jpg.json
377
- - spec/fixtures/files/umn_metro_result1.json
378
- - spec/fixtures/files/umn_metro_result2.json
379
351
  - spec/fixtures/files/umn_solr_thumb.json
380
- - spec/fixtures/files/umn_state_result1.json
381
- - spec/fixtures/files/umn_state_result2.json
382
- - spec/fixtures/files/uva_slug_colon.json
383
352
  - spec/jobs/store_image_job_spec.rb
384
353
  - spec/lib/tasks/geoblacklight_sidecar_images_spec.rb
385
354
  - spec/models/solr_document_sidecar_spec.rb
@@ -1,10 +0,0 @@
1
- // GBLSCI results
2
- .media {
3
- img,span {
4
- min-width: 100px;
5
- text-align: center;
6
- }
7
- span.icon.square {
8
- font-size:3rem;
9
- }
10
- }
@@ -1,3 +0,0 @@
1
- /*
2
- *= require geoblacklight_sidecar_images/application
3
- */
@@ -1,23 +0,0 @@
1
- {
2
- "geoblacklight_version": "1.0",
3
- "dc_description_s": "Panel title. Depths shown by isolines. \"Geological map [copyright] NERC 1996.\" Also available on flat sheet. \"Sheet 1\"--on panel. Includes text, notes, organizations' logos, and ancillary map of \"Orogenic terranes of Britain, Ireland and surrounding seas.\"",
4
- "dc_format_s": "Paper",
5
- "dc_identifier_s": "urn:arrowsmith.mit.edu:MIT.001145244",
6
- "dc_language_s": "English",
7
- "dc_publisher_s": "British Geological Survey",
8
- "dc_rights_s": "Public",
9
- "dc_title_s": "1:1 500 000 series [cartographic material] : tectonic map of Britain, Ireland and adjacent areas / British Geological Survey ; Geological Survey of Ireland ; Geological Survey of Northern Ireland.",
10
- "dc_type_s": "Dataset",
11
- "dct_references_s": "{\"http://schema.org/url\":\"http://library.mit.edu/item/001145244\"}",
12
- "dct_temporal_sm": [
13
- "1996"
14
- ],
15
- "dct_issued_s": "2000",
16
- "dct_provenance_s": "MIT",
17
- "layer_slug_s": "mit-001145244",
18
- "layer_id_s": "MIT:001145244",
19
- "layer_geom_type_s": "Paper Map",
20
- "layer_modified_dt": "2014-12-04T21:32:59Z",
21
- "solr_geom": "ENVELOPE(-13.0, 4.0, 62.0, 49.0)",
22
- "solr_year_i": 1996
23
- }
@@ -1,37 +0,0 @@
1
- {
2
- "dc_creator_sm": [
3
- ],
4
- "dc_description_s": "This point shapefile was created as a guide to New York City’s non-neighborhood place locations that appear in “New York: A City of Neighborhoods.” These place locations include parks, cemeteries, and airports. Best estimates of label centroids were established at a 1:1,000 scale, but are ideally viewed at a 1:50,000 scale.",
5
- "dc_format_s": "Shapefile",
6
- "dc_identifier_s": "http://hdl.handle.net/2451/34564",
7
- "dc_language_s": "English",
8
- "dc_publisher_s": "New York (City). Department of City Planning",
9
- "dc_rights_s": "Public",
10
- "dc_subject_sm": [
11
- "Airports",
12
- "Parks",
13
- "Public spaces"
14
- ],
15
- "dc_title_s": "2014 New York City Places",
16
- "dc_type_s": "Dataset",
17
- "dct_isPartOf_sm": [
18
- "Bytes of the Big Apple"
19
- ],
20
- "dct_issued_s": "2014",
21
- "dct_provenance_s": "NYU",
22
- "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/34564\",\"http://schema.org/downloadUrl\":\"https://archive.nyu.edu/retrieve/74563/nyu_2451_34564.zip\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\"}",
23
- "dct_spatial_sm": [
24
- "New York, New York, United States"
25
- ],
26
- "dct_temporal_sm": [
27
- "2014"
28
- ],
29
- "geoblacklight_version": "1.0",
30
- "layer_geom_type_s": "Point",
31
- "layer_id_s": "sdr:nyu_2451_34564",
32
- "layer_modified_dt": "2016-04-20T21:31:14Z",
33
- "layer_slug_s": "nyu-2451-34564",
34
- "nyu_addl_dspace_s": "35497",
35
- "solr_geom": "ENVELOPE(-74.2485646353495, -73.7322869841185, 40.8962098695574, 40.4995658893951)",
36
- "solr_year_i": 2014
37
- }
@@ -1,38 +0,0 @@
1
- {
2
- "dc_identifier_s": "http://purl.stanford.edu/dp018hs9766",
3
- "dc_title_s": "1-Meter Shaded Relief Multibeam Bathymetry Image (Color): Elkhorn Slough, California, 2005",
4
- "dc_description_s": "This layer is a 10-color shaded relief GeoTIFF that contains high-resolution bathymetric data collected from the Elkhorn Slough region of Monterey Bay, California. The survey for Elkhorn Slough was conducted 8/12/2005 - 8/15/2005. Elkhorn Slough, one of the largest remaining coastal wetlands in California, has been directly subjected to tidal scour since the opening of Moss Landing Harbor in 1946. This erosion endangers the habitat of several rare and endangered species and disrupts the wetland ecosystem as a whole. In 2003, the Seafloor Mapping Lab of California State University, Monterey Bay created the most detailed bathymetry model of the Slough to date using a combination of multi-beam sonar, single-beam sonar and aerial photography. This layer was created as part of the California Seafloor Mapping Project.This project was conducted to determine changes in the pattern of erosion and deposition in Elkhorn Slough since surveys conducted in 1993, 2001 and 2003. Marine data offered here represent the efforts of a comprehensive state waters mapping program for California launched by the California State Coastal Conservancy, Ocean Protection Council, Department of Fish and Game, and the NOAA National Marine Sanctuary Program. The ultimate goal is the creation of a high-resolution 1:24,000 scale geologic and habitat base map series covering all of California's 14,500 km2 state waters out to the 3 mile limit, and support of the state's Marine Life Protection Act Initiative (MLPA) goal to create a statewide network of Marine Protected Areas (MPAs). This statewide project requires, involves and leverages expertise from industry, resource management agencies and academia. The tiered mapping campaign involves the use of state-of-the-art sonar, LIDAR (aerial laser) and video seafloor mapping technologies; computer aided classification and visualization; expert geologic and habitat interpretations codified into strip maps spanning California's land/sea boundary; and the creation of an online, publicly accessible data repository for the dissemination of all mapping products.\n",
5
- "dc_rights_s": "Restricted",
6
- "dct_provenance_s": "Stanford",
7
- "dct_references_s": "{\"http://schema.org/url\":\"http://purl.stanford.edu/dp018hs9766\",\"http://schema.org/downloadUrl\":\"http://stacks.stanford.edu/file/druid:dp018hs9766/data.zip\",\"http://www.loc.gov/mods/v3\":\"http://purl.stanford.edu/dp018hs9766.mods\",\"http://www.isotc211.org/schemas/2005/gmd/\":\"https://raw.githubusercontent.com/OpenGeoMetadata/edu.stanford.purl/master/dp/018/hs/9766/iso19139.xml\",\"http://www.opengis.net/def/serviceType/ogc/wcs\":\"https://geowebservices-restricted.stanford.edu/geoserver/wcs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://geowebservices-restricted.stanford.edu/geoserver/wms\"}",
8
- "layer_id_s": "druid:dp018hs9766",
9
- "layer_slug_s": "stanford-dp018hs9766",
10
- "layer_geom_type_s": "Raster",
11
- "layer_modified_dt": "2015-04-16T23:09:17Z",
12
- "dc_format_s": "GeoTIFF",
13
- "dc_language_s": "English",
14
- "dc_type_s": "Dataset",
15
- "dc_publisher_s": "Seafloor Mapping Lab",
16
- "dc_creator_sm": [
17
- "Seafloor Mapping Lab"
18
- ],
19
- "dc_subject_sm": [
20
- "Continental margins",
21
- "Multibeam mapping",
22
- "Elevation",
23
- "Imagery and Base Maps",
24
- "Inland Waters"
25
- ],
26
- "dct_issued_s": "2005",
27
- "dct_temporal_sm": [
28
- "2005"
29
- ],
30
- "dct_spatial_sm": [
31
- "Elkhorn Slough (Calif.)",
32
- "Monterey Bay (Calif.)"
33
- ],
34
- "solr_geom": "ENVELOPE(-121.7948738, -121.7389503, 36.8606925, 36.8085911)",
35
- "solr_year_i": 2005,
36
- "stanford_rights_metadata_s": "<?xml version=\"1.0\"?>\n<rightsMetadata>\n <access type=\"discover\">\n <machine>\n <world/>\n </machine>\n </access>\n <access type=\"read\">\n <machine>\n <group>Stanford</group>\n </machine>\n </access>\n <use>\n <human type=\"useAndReproduction\">These data are licensed by Stanford Libraries and are available to Stanford University affiliates only. Affiliates are limited to current faculty, staff and students. These data may not be reproduced or used for any purpose without permission. For more information please contact brannerlibrary@stanford.edu.</human>\n <human type=\"creativeCommons\"/>\n <machine type=\"creativeCommons\"/>\n </use>\n <copyright>\n <human>Copyright ownership resides with the originator.</human>\n </copyright>\n</rightsMetadata>\n",
37
- "geoblacklight_version": "1.0"
38
- }
@@ -1,42 +0,0 @@
1
- {
2
- "geoblacklight_version": "1.0",
3
- "dc_description_s": "The Illinois Environmental Protection Agency's collection of geospatial resources on their Open Data Geoportal include vehicle emissions testing locations and waste disposal sites.",
4
- "layer_modified_dt": "2019-08-29T16:54:48Z",
5
- "solr_geom": "ENVELOPE(-91.51308, -87.49520, 42.50848, 36.97030)",
6
- "dct_references_s": "{\"http://schema.org/url\":\"https://illinoisepaopendata-illinois-epa.opendata.arcgis.com\"}",
7
- "dc_rights_s": "Public",
8
- "b1g_centroid_ss": "39.73939,-89.50414",
9
- "layer_geom_type_s": "Table",
10
- "b1g_status_s": "Active",
11
- "dct_provenance_s": "Illinois",
12
- "dc_subject_sm": [
13
- "State agencies geospatial data"
14
- ],
15
- "dct_temporal_sm": [
16
- "2015-2018"
17
- ],
18
- "b1g_code_s": "02a-02",
19
- "b1g_genre_sm": [
20
- "Geospatial data"
21
- ],
22
- "b1g_keyword_sm": [
23
- "Environment,Health,Transportation,Location"
24
- ],
25
- "dc_creator_sm": [
26
- "Illinois Environmental Protection Agency"
27
- ],
28
- "dc_identifier_s": "02a-02",
29
- "solr_year_i": 2015,
30
- "thumbnail_path_ss": "https://www2.illinois.gov/epa/Style%20Library/SOISierra/Images/SiteLogo.png",
31
- "dct_spatial_sm": [
32
- "Illinois"
33
- ],
34
- "dc_publisher_sm": [
35
- "State of Illinois"
36
- ],
37
- "dc_type_sm": [
38
- "Collection"
39
- ],
40
- "dc_title_s": "Illinois EPA Open Data",
41
- "layer_slug_s": "02a-02"
42
- }
@@ -1,46 +0,0 @@
1
- {
2
- "dc_identifier_s": "http://hdl.handle.net/2451/34635",
3
- "dc_title_s": "2016 NYC Geodatabase, Open Source Version (jan2016)",
4
- "dc_description_s": "The NYC Geodatabase (nyc_gdb) is a resource designed for basic geographic analysis and thematic mapping within the five boroughs of New York City. It contains geographic features and data compiled from several public sources. Subsets of large features like water, greenspace, and public facilities were created and Census geographies like tracts, ZCTAs, and PUMAs were geoprocessed to create land-based boundaries. Census data from the 2010 Census, American Community Survey (ACS), and ZIP Code Business Patterns are stored in tables that can be easily related to geographic features. Transit and public facility point data were gathered from several city agencies and transformed into spatial data that can be used for reference or analysis for measuring distance, drawing buffers, or counting features within areas. The data is provided in SQLite format.",
5
- "dc_rights_s": "Public",
6
- "dct_provenance_s": "Baruch CUNY",
7
- "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/34635\",\"http://schema.org/downloadUrl\":\"https://archive.nyu.edu/retrieve/74854/nyu_2451_34635.zip\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/74855/nyu_2451_34635_doc.zip\"}",
8
- "layer_id_s": "sdr:nyu_2451_34635",
9
- "layer_slug_s": "nyu_2451_34635",
10
- "layer_geom_type_s": "Mixed",
11
- "layer_modified_dt": "2016-5-2T18:21:7Z",
12
- "dc_format_s": "SQLite Database",
13
- "dc_language_s": "English",
14
- "dc_type_s": "Dataset",
15
- "dc_publisher_s": [
16
- "Newman Library (Bernard M. Baruch College)"
17
- ],
18
- "dc_creator_sm": "GIS Lab, Newman Library, Baruch CUNY",
19
- "dc_subject_sm": [
20
- "Boroughs",
21
- "Boundaries",
22
- "Counties"
23
- ],
24
- "dct_isPartOf_sm": "NYC Geodatabase (version jan2016)",
25
- "dct_issued_s": "1/15/2016",
26
- "dct_temporal_sm": [
27
- "2010",
28
- "2016"
29
- ],
30
- "dct_spatial_sm": [
31
- "New York, New York, United States",
32
- "Bronx County, New York, United States",
33
- "Kings County, New York, United States",
34
- "New York County, New York, United States",
35
- "Queens County, New York, United States",
36
- "Richmond County, New York, United States",
37
- "Borough of Bronx, New York, United States",
38
- "Borough of Brooklyn, New York, United States",
39
- "Borough of Manhattan, New York, United States",
40
- "Borough of Queens, New York, United States",
41
- "Borough of Staten Island, New York, United States"
42
- ],
43
- "solr_geom": "ENVELOPE(-74.255895, -73.700272, 40.9152819999998, 40.4959289999998)",
44
- "solr_year_i": 2016,
45
- "geoblacklight_version": "1.0"
46
- }