geoblacklight 3.3.1 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +30 -24
  3. data/.rubocop_todo.yml +11 -6
  4. data/README.md +1 -1
  5. data/Rakefile +7 -8
  6. data/app/assets/images/blacklight/michigan-state-university.svg +6 -0
  7. data/app/assets/images/blacklight/pennsylvania-state-university.svg +6 -0
  8. data/app/assets/images/blacklight/purdue-university.svg +6 -0
  9. data/app/assets/images/blacklight/the-ohio-state-university.svg +7 -0
  10. data/app/assets/images/blacklight/university-of-chicago.svg +6 -0
  11. data/app/assets/images/blacklight/university-of-illinois-urbana-champaign.svg +6 -0
  12. data/app/assets/images/blacklight/university-of-iowa.svg +5 -0
  13. data/app/assets/images/blacklight/university-of-maryland.svg +5 -0
  14. data/app/assets/images/blacklight/university-of-michigan.svg +5 -0
  15. data/app/assets/images/blacklight/university-of-minnesota.svg +5 -0
  16. data/app/assets/images/blacklight/university-of-nebraska-lincoln.svg +8 -0
  17. data/app/assets/images/blacklight/university-of-wisconsin-madison.svg +5 -0
  18. data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +41 -0
  19. data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +6 -0
  20. data/app/components/geoblacklight/homepage_feature_facet_component.html.erb +11 -0
  21. data/app/components/geoblacklight/homepage_feature_facet_component.rb +13 -0
  22. data/{lib → app/helpers}/geoblacklight/geoblacklight_helper_behavior.rb +6 -4
  23. data/app/helpers/geoblacklight_helper.rb +0 -6
  24. data/app/views/catalog/_arcgis.html.erb +1 -1
  25. data/app/views/catalog/_data_dictionary.html.erb +1 -2
  26. data/app/views/catalog/_home_text.html.erb +7 -29
  27. data/app/views/catalog/_show_header_default.html.erb +1 -1
  28. data/config/initializers/new_gbl_settings_defaults_3_4.yml +6 -0
  29. data/config/initializers/rails_config.rb +4 -0
  30. data/geoblacklight.gemspec +1 -1
  31. data/lib/generators/geoblacklight/templates/catalog_controller.rb +5 -4
  32. data/lib/generators/geoblacklight/templates/settings.yml +6 -0
  33. data/lib/geoblacklight/version.rb +1 -1
  34. data/lib/geoblacklight/view_helper_override.rb +1 -1
  35. data/lib/geoblacklight.rb +0 -1
  36. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +39 -0
  37. data/spec/config/initializers/rails_config_spec.rb +4 -0
  38. data/spec/features/esri_viewer_spec.rb +1 -0
  39. data/spec/features/layer_opacity_spec.rb +1 -0
  40. data/spec/features/metadata_panel_spec.rb +1 -1
  41. data/spec/features/search_results_overlap_ratio_spec.rb +1 -1
  42. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +1 -1
  43. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +1 -1
  44. data/spec/fixtures/solr_documents/esri-feature-layer.json +1 -1
  45. data/spec/fixtures/solr_documents/esri-image-map-layer.json +1 -1
  46. data/spec/fixtures/solr_documents/esri-wms-layer.json +1 -1
  47. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +1 -1
  48. data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +1 -1
  49. data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +1 -1
  50. data/spec/fixtures/solr_documents/umn_metro_result1.json +1 -1
  51. data/spec/fixtures/solr_documents/umn_state_result1.json +1 -1
  52. data/spec/fixtures/solr_documents/umn_state_result2.json +1 -1
  53. data/spec/{lib → helpers}/geoblacklight/geoblacklight_helper_behavior_spec.rb +1 -0
  54. data/spec/spec_helper.rb +2 -0
  55. data/spec/support/view_component_capybara_test_helpers.rb +8 -0
  56. metadata +30 -14
  57. data/app/views/catalog/_document_action.html.erb +0 -6
  58. data/app/views/catalog/_facet_tag_item.html.erb +0 -3
  59. data/app/views/catalog/_facet_tag_layout.html.erb +0 -2
@@ -1,6 +0,0 @@
1
- <%= link_to document_action_path(document_action_config, (local_assigns.has_key?(:url_opts) ? url_opts : {}).merge(({id: document} if document) || {})),
2
- id: document_action_config.fetch(:id, "#{document_action_config.key}Link"),
3
- data: {}.merge(({blacklight_modal: "trigger"} if document_action_config.modal != false) || {}) do %>
4
- <%= geoblacklight_icon(document_action_config.key, aria_hidden: true) %>
5
- <%= document_action_label(document_action_config.key, document_action_config) %>
6
- <% end %>
@@ -1,3 +0,0 @@
1
- <% display_facet.items.each do |item| %>
2
- <%= link_to item.value, search_catalog_path({f: {"#{facet_field.field}" => [item.value]}}), class: 'home-facet-link' %><%= "," %>
3
- <% end %>
@@ -1,2 +0,0 @@
1
- <%= yield %>
2
- <%= link_to t('blacklight.search.facets.more_html'), facet_catalog_path(display_facet.name), class: 'more_facets_link' %>