geoblacklight 3.3.1 → 4.0.0.pre.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +30 -24
  3. data/.rubocop.yml +5 -0
  4. data/.rubocop_todo.yml +11 -6
  5. data/README.md +1 -1
  6. data/Rakefile +7 -8
  7. data/app/assets/images/blacklight/michigan-state-university.svg +5 -0
  8. data/app/assets/images/blacklight/pennsylvania-state-university.svg +5 -0
  9. data/app/assets/images/blacklight/purdue-university.svg +5 -0
  10. data/app/assets/images/blacklight/the-ohio-state-university.svg +6 -0
  11. data/app/assets/images/blacklight/university-of-chicago.svg +5 -0
  12. data/app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg +5 -0
  13. data/app/assets/images/blacklight/university-of-iowa.svg +4 -0
  14. data/app/assets/images/blacklight/university-of-maryland.svg +4 -0
  15. data/app/assets/images/blacklight/university-of-michigan.svg +4 -0
  16. data/app/assets/images/blacklight/university-of-minnesota.svg +4 -0
  17. data/app/assets/images/blacklight/university-of-nebraska-lincoln.svg +7 -0
  18. data/app/assets/images/blacklight/university-of-wisconsin-madison.svg +4 -0
  19. data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +41 -0
  20. data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +6 -0
  21. data/app/components/geoblacklight/homepage_feature_facet_component.html.erb +11 -0
  22. data/app/components/geoblacklight/homepage_feature_facet_component.rb +13 -0
  23. data/{lib → app/helpers}/geoblacklight/geoblacklight_helper_behavior.rb +6 -4
  24. data/app/helpers/geoblacklight_helper.rb +0 -21
  25. data/app/models/concerns/geoblacklight/solr_document/citation.rb +2 -2
  26. data/app/models/concerns/geoblacklight/solr_document.rb +4 -4
  27. data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +3 -3
  28. data/app/views/catalog/_arcgis.html.erb +1 -1
  29. data/app/views/catalog/_data_dictionary.html.erb +1 -2
  30. data/app/views/catalog/_downloads_primary.html.erb +1 -1
  31. data/app/views/catalog/_header_icons.html.erb +1 -1
  32. data/app/views/catalog/_home_text.html.erb +7 -29
  33. data/app/views/catalog/_show_header_default.html.erb +1 -1
  34. data/app/views/relation/_relations.html.erb +15 -0
  35. data/app/views/relation/index.html.erb +5 -17
  36. data/app/views/relation/index.json.jbuilder +6 -2
  37. data/config/initializers/new_gbl_settings_defaults_3_4.yml +6 -0
  38. data/config/initializers/rails_config.rb +0 -4
  39. data/config/locales/geoblacklight.en.yml +8 -0
  40. data/geoblacklight.gemspec +1 -1
  41. data/lib/generators/geoblacklight/templates/catalog_controller.rb +82 -35
  42. data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +195 -0
  43. data/lib/generators/geoblacklight/templates/settings.yml +87 -22
  44. data/lib/geoblacklight/download/geojson_download.rb +1 -1
  45. data/lib/geoblacklight/download/geotiff_download.rb +1 -1
  46. data/lib/geoblacklight/download/hgl_download.rb +1 -1
  47. data/lib/geoblacklight/download/kmz_download.rb +1 -1
  48. data/lib/geoblacklight/download/shapefile_download.rb +1 -1
  49. data/lib/geoblacklight/engine.rb +0 -2
  50. data/lib/geoblacklight/references.rb +1 -1
  51. data/lib/geoblacklight/relation/ancestors.rb +4 -3
  52. data/lib/geoblacklight/relation/descendants.rb +4 -3
  53. data/lib/geoblacklight/relation/relation_response.rb +21 -6
  54. data/lib/geoblacklight/version.rb +1 -1
  55. data/lib/geoblacklight/view_helper_override.rb +1 -1
  56. data/lib/geoblacklight.rb +0 -1
  57. data/schema/{geoblacklight-schema.json → geoblacklight-schema-1.0.json} +1 -1
  58. data/schema/geoblacklight-schema-aardvark.json +211 -0
  59. data/solr/conf/schema.xml +38 -30
  60. data/solr/conf/solrconfig.xml +15 -15
  61. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +39 -0
  62. data/spec/config/initializers/rails_config_spec.rb +9 -8
  63. data/spec/controllers/catalog_controller_spec.rb +6 -6
  64. data/spec/features/download_layer_spec.rb +1 -1
  65. data/spec/features/esri_viewer_spec.rb +1 -1
  66. data/spec/features/home_page_spec.rb +4 -4
  67. data/spec/features/layer_opacity_spec.rb +1 -0
  68. data/spec/features/metadata_panel_spec.rb +1 -1
  69. data/spec/features/missing_metadata_spec.rb +2 -2
  70. data/spec/features/relations_spec.rb +2 -2
  71. data/spec/features/search_results_map_spec.rb +2 -1
  72. data/spec/features/search_results_overlap_ratio_spec.rb +2 -2
  73. data/spec/features/search_spec.rb +5 -0
  74. data/spec/features/split_view.html.erb_spec.rb +15 -11
  75. data/spec/fixtures/solr_documents/README.md +48 -36
  76. data/spec/fixtures/solr_documents/actual-papermap1.json +41 -18
  77. data/spec/fixtures/solr_documents/actual-point1.json +47 -27
  78. data/spec/fixtures/solr_documents/actual-polygon1.json +43 -18
  79. data/spec/fixtures/solr_documents/actual-raster1.json +52 -23
  80. data/spec/fixtures/solr_documents/all-relationships.json +48 -0
  81. data/spec/fixtures/solr_documents/baruch_ancestor1.json +62 -37
  82. data/spec/fixtures/solr_documents/baruch_ancestor2.json +62 -37
  83. data/spec/fixtures/solr_documents/baruch_documentation_download.json +60 -34
  84. data/spec/fixtures/solr_documents/bbox-spans-180.json +34 -16
  85. data/spec/fixtures/solr_documents/cornell_html_metadata.json +46 -26
  86. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +43 -25
  87. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +45 -28
  88. data/spec/fixtures/solr_documents/esri-feature-layer.json +44 -34
  89. data/spec/fixtures/solr_documents/esri-image-map-layer.json +45 -31
  90. data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +42 -17
  91. data/spec/fixtures/solr_documents/esri-wms-layer.json +46 -21
  92. data/spec/fixtures/solr_documents/harvard_raster.json +55 -36
  93. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +35 -22
  94. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +48 -27
  95. data/spec/fixtures/solr_documents/index-map-polygon.json +48 -27
  96. data/spec/fixtures/solr_documents/index-map-stanford.json +54 -25
  97. data/spec/fixtures/solr_documents/index_map_point.json +54 -26
  98. data/spec/fixtures/solr_documents/metadata_no_geom.json +27 -0
  99. data/spec/fixtures/solr_documents/metadata_no_provider.json +39 -0
  100. data/spec/fixtures/solr_documents/multiple-downloads.json +33 -20
  101. data/spec/fixtures/solr_documents/no_locn_geometry.json +25 -0
  102. data/spec/fixtures/solr_documents/no_spatial.json +37 -19
  103. data/spec/fixtures/solr_documents/oembed.json +34 -17
  104. data/spec/fixtures/solr_documents/princeton-child1.json +45 -28
  105. data/spec/fixtures/solr_documents/princeton-child2.json +45 -28
  106. data/spec/fixtures/solr_documents/princeton-child3.json +45 -28
  107. data/spec/fixtures/solr_documents/princeton-child4.json +45 -28
  108. data/spec/fixtures/solr_documents/princeton-parent.json +46 -23
  109. data/spec/fixtures/solr_documents/public_direct_download.json +48 -21
  110. data/spec/fixtures/solr_documents/public_iiif_princeton.json +49 -24
  111. data/spec/fixtures/solr_documents/public_polygon_mit.json +31 -15
  112. data/spec/fixtures/solr_documents/restricted-line.json +52 -21
  113. data/spec/fixtures/solr_documents/the-related-record.json +27 -0
  114. data/spec/fixtures/solr_documents/tms.json +33 -17
  115. data/spec/fixtures/solr_documents/umn_metro_result1.json +44 -28
  116. data/spec/fixtures/solr_documents/umn_state_result1.json +44 -26
  117. data/spec/fixtures/solr_documents/umn_state_result2.json +45 -24
  118. data/spec/fixtures/solr_documents/uva_slug_colon.json +43 -20
  119. data/spec/{lib → helpers}/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
  120. data/spec/helpers/geoblacklight_helper_spec.rb +0 -19
  121. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -1
  122. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -1
  123. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -1
  124. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -1
  125. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -1
  126. data/spec/lib/geoblacklight/download_spec.rb +1 -1
  127. data/spec/lib/geoblacklight/references_spec.rb +2 -2
  128. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +3 -3
  129. data/spec/lib/geoblacklight/relation/descendants_spec.rb +3 -3
  130. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +32 -17
  131. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +4 -4
  132. data/spec/spec_helper.rb +2 -0
  133. data/spec/support/view_component_capybara_test_helpers.rb +8 -0
  134. metadata +44 -32
  135. data/app/views/catalog/_document_action.html.erb +0 -6
  136. data/app/views/catalog/_facet_tag_item.html.erb +0 -3
  137. data/app/views/catalog/_facet_tag_layout.html.erb +0 -2
  138. data/app/views/relation/_ancestors.html.erb +0 -8
  139. data/app/views/relation/_descendants.html.erb +0 -15
  140. data/config/initializers/new_gbl_settings_defaults_3_3.yml +0 -10
  141. data/schema/format-values.md +0 -50
  142. data/schema/geoblacklight-schema-deprecated.md +0 -39
  143. data/schema/geoblacklight-schema.md +0 -323
  144. data/schema/geometry-type-values.md +0 -11
  145. data/schema/references.md +0 -23
  146. data/schema/schema-commentary.md +0 -198
  147. data/schema/subjects.md +0 -41
  148. data/schema/type-values.md +0 -10
  149. data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +0 -30
  150. data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +0 -17
  151. data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +0 -23
@@ -1,30 +0,0 @@
1
- {
2
- "geoblacklight_version": "1.0",
3
- "layer_modified_dt": "2019-12-16T15:57:35Z",
4
- "layer_slug_s": "99-0001-noProvenance",
5
- "dc_identifier_s": "99-0001-noProvenance",
6
- "dc_title_s": "Social Explorer",
7
- "dct_temporal_sm": [
8
- "1790-present"
9
- ],
10
- "dc_description_s": "Requires creating a free account or logging in through an organization with licensed access. This interactive website includes the entire US census history from 1790 to 2000, the American Community Survey (ACS), and the Religious Congregations and Membership Study (RCMS) from 1980 to 2000? the most complete census available on religion in the U.S. Overall, the site contains 39 billion data points, 200,000 variables, and 15,000 interactive maps",
11
- "dc_subject_sm": [
12
- "Society"
13
- ],
14
- "dc_type_sm": [
15
- "Interactive Resource"
16
- ],
17
- "dc_rights_s": "Restricted",
18
- "layer_geom_type_s": "Table",
19
- "solr_geom": "ENVELOPE(-179.9,-64.4,71.6,-14.8)",
20
- "dc_publisher_sm": [
21
- "Social Explorer"
22
- ],
23
- "dc_creator_sm": [
24
- "Queens College (New York, N.Y.). Department of Sociology"
25
- ],
26
- "dct_spatial_sm": [
27
- "United States"
28
- ],
29
- "dct_references_s": "{\"http://schema.org/url\":\"https://www.socialexplorer.com/\"}"
30
- }
@@ -1,17 +0,0 @@
1
- {
2
- "geoblacklight_version": "1.0",
3
- "layer_modified_dt": "2020-01-17T15:31:30Z",
4
- "layer_slug_s": "05d-03-noGeomType",
5
- "dc_identifier_s": "05d-03-noGeomType",
6
- "dc_title_s": "University of Minnesota Digital Conservancy DRUM",
7
- "dc_description_s": "DRUM is a publicly available collection of digital research data generated by University of Minnesota researchers, students, and staff. Anyone can search and download the data housed in the repository, instantly or by request.",
8
- "dc_publisher_sm": [
9
- "University of Minnesota Digital Conservancy"
10
- ],
11
- "dc_type_sm": [
12
- "Collection"
13
- ],
14
- "dct_provenance_s": "Minnesota",
15
- "dc_rights_s": "Public",
16
- "dct_references_s": "{\"http://schema.org/url\":\"https://conservancy.umn.edu/handle/11299/166578\"}"
17
- }
@@ -1,23 +0,0 @@
1
- {
2
- "geoblacklight_version": "1.0",
3
- "layer_modified_dt": "2020-01-23T14:01:19Z",
4
- "layer_slug_s": "05d-p16022coll246-noGeo",
5
- "dc_identifier_s": "05d-p16022coll246-noGeo",
6
- "dc_title_s": "Ames Library of South Asia Maps",
7
- "dc_description_s": "A collection of maps covering Asia held by the University of Minnesota's Ames Library of South Asia.",
8
- "dc_publisher_sm": [
9
- "University of Minnesota"
10
- ],
11
- "dc_type_sm": [
12
- "Collection"
13
- ],
14
- "layer_geom_type_s": "Table",
15
- "dct_provenance_s": "Minnesota",
16
- "dct_spatial_sm": [
17
- "Asia",
18
- "India",
19
- "Afghanistan"
20
- ],
21
- "dc_rights_s": "Public",
22
- "dct_references_s": "{\"http://schema.org/url\":\"https://umedia.lib.umn.edu/search?facets[collection_name_s][]=Ames+Library+of+South+Asia+Maps\"}"
23
- }