blacklight-spotlight 3.0.0.alpha.3 → 3.0.0.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/blacklight/highlight_off.svg +1 -0
  3. data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +3 -3
  4. data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +19 -23
  5. data/app/assets/stylesheets/spotlight/_browse.scss +22 -13
  6. data/app/assets/stylesheets/spotlight/_catalog.scss +2 -2
  7. data/app/assets/stylesheets/spotlight/_curation.scss +5 -3
  8. data/app/assets/stylesheets/spotlight/_exhibits_index.scss +14 -1
  9. data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +5 -5
  10. data/app/assets/stylesheets/spotlight/_header.scss +14 -6
  11. data/app/assets/stylesheets/spotlight/_multi_image_selector.scss +1 -1
  12. data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +3 -3
  13. data/app/assets/stylesheets/spotlight/_pages.scss +23 -16
  14. data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +3 -4
  15. data/app/assets/stylesheets/spotlight/_slideshow_block.scss +1 -0
  16. data/app/assets/stylesheets/spotlight/_spotlight.scss +0 -1
  17. data/app/assets/stylesheets/spotlight/_translations.scss +6 -6
  18. data/app/assets/stylesheets/spotlight/_utilities.scss +4 -0
  19. data/app/controllers/spotlight/translations_controller.rb +9 -1
  20. data/app/helpers/spotlight/pages_helper.rb +2 -1
  21. data/app/models/spotlight/field_metadata.rb +1 -2
  22. data/app/views/shared/_masthead.html.erb +13 -11
  23. data/app/views/spotlight/about_pages/_contact.html.erb +3 -3
  24. data/app/views/spotlight/about_pages/_contact_properties.html.erb +1 -1
  25. data/app/views/spotlight/admin_users/index.html.erb +77 -71
  26. data/app/views/spotlight/browse/_search_box.html.erb +1 -1
  27. data/app/views/spotlight/browse/show.html.erb +23 -26
  28. data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
  29. data/app/views/spotlight/catalog/_index_compact_default.html.erb +2 -2
  30. data/app/views/spotlight/contacts/_form.html.erb +1 -1
  31. data/app/views/spotlight/custom_fields/_form.html.erb +2 -2
  32. data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
  33. data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
  34. data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
  35. data/app/views/spotlight/dashboards/_page.html.erb +4 -4
  36. data/app/views/spotlight/exhibits/_exhibit_card_back.html.erb +2 -2
  37. data/app/views/spotlight/feature_pages/_header.html.erb +2 -2
  38. data/app/views/spotlight/metadata_configurations/edit.html.erb +2 -2
  39. data/app/views/spotlight/pages/_form.html.erb +1 -1
  40. data/app/views/spotlight/pages/_page.html.erb +3 -3
  41. data/app/views/spotlight/roles/index.html.erb +2 -2
  42. data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +0 -5
  43. data/app/views/spotlight/search_configurations/_facets.html.erb +3 -3
  44. data/app/views/spotlight/search_configurations/_search_fields.html.erb +2 -2
  45. data/app/views/spotlight/searches/_form.html.erb +2 -2
  46. data/app/views/spotlight/shared/_report_a_problem.html.erb +1 -1
  47. data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +1 -1
  48. data/app/views/spotlight/sir_trevor/blocks/_quote_block.html.erb +4 -4
  49. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  50. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
  51. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
  52. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  53. data/app/views/spotlight/translations/_search_fields.html.erb +1 -1
  54. data/app/views/spotlight/translations/edit.html.erb +1 -1
  55. data/lib/generators/spotlight/install_generator.rb +6 -2
  56. data/lib/generators/spotlight/templates/config/initializers/oembed.rb +4 -0
  57. data/lib/spotlight/engine.rb +0 -5
  58. data/lib/spotlight/version.rb +1 -1
  59. data/spec/controllers/spotlight/translations_controller_spec.rb +8 -0
  60. data/spec/examples.txt +6 -7
  61. data/spec/features/javascript/search_config_admin_spec.rb +1 -1
  62. data/spec/helpers/spotlight/pages_helper_spec.rb +6 -0
  63. data/spec/models/spotlight/field_metadata_spec.rb +0 -7
  64. data/spec/test_app_templates/Gemfile.extra +0 -1
  65. data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +0 -1
  66. data/vendor/assets/stylesheets/sir-trevor/_variables.scss +0 -8
  67. data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
  68. metadata +4 -6
  69. data/app/assets/images/blacklight/remove_circle_outline.svg +0 -1
  70. data/app/views/spotlight/browse/_sort_and_per_page.html.erb +0 -5
  71. data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +0 -12
@@ -19,7 +19,6 @@ describe 'spotlight/search_configurations/_facet_metadata', type: :view do
19
19
  it 'shows the number of unique values' do
20
20
  expect(rendered).to have_content '1 item'
21
21
  expect(rendered).to have_content '3 unique values'
22
- expect(rendered).to have_selector '.btn-with-tooltip'
23
22
  end
24
23
  end
25
24
 
@@ -20,11 +20,3 @@ $block-controls-color:#9B9B9B;
20
20
  $border-size: 2px;
21
21
  $border-style: solid;
22
22
  $default-border: $border-size $border-style $accent-color;
23
-
24
- $padding-base-horizontal: $spacer;
25
- $padding-large-horizontal: $spacer;
26
- $padding-large-vertical: $spacer;
27
- $padding-base-vertical: $spacer;
28
- $padding-small-vertical: $spacer * 0.5;
29
- $padding-small-horizontal: $spacer * 0.25;
30
- $padding-xs-horizontal: $spacer * 0.1;
@@ -32,7 +32,3 @@
32
32
  width: 42px;
33
33
  height: 42px;
34
34
  }
35
-
36
- .st-block-controls__button:hover {
37
- color: $accent-color;
38
- }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.3
4
+ version: 3.0.0.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-02-12 00:00:00.000000000 Z
14
+ date: 2020-02-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: acts-as-taggable-on
@@ -780,9 +780,9 @@ files:
780
780
  - app/assets/images/blacklight/custom_fullscreen.svg
781
781
  - app/assets/images/blacklight/edit.svg
782
782
  - app/assets/images/blacklight/error.svg
783
+ - app/assets/images/blacklight/highlight_off.svg
783
784
  - app/assets/images/blacklight/info.svg
784
785
  - app/assets/images/blacklight/remove_circle.svg
785
- - app/assets/images/blacklight/remove_circle_outline.svg
786
786
  - app/assets/images/blacklight/resize_small.svg
787
787
  - app/assets/images/blacklight/warning.svg
788
788
  - app/assets/images/spotlight/blocks/sir-trevor-icons.svg
@@ -1064,7 +1064,6 @@ files:
1064
1064
  - app/views/spotlight/browse/_search.html.erb
1065
1065
  - app/views/spotlight/browse/_search_box.html.erb
1066
1066
  - app/views/spotlight/browse/_search_title.html.erb
1067
- - app/views/spotlight/browse/_sort_and_per_page.html.erb
1068
1067
  - app/views/spotlight/browse/_tophat.html.erb
1069
1068
  - app/views/spotlight/browse/index.html.erb
1070
1069
  - app/views/spotlight/browse/show.html.erb
@@ -1293,6 +1292,7 @@ files:
1293
1292
  - lib/generators/spotlight/install_generator.rb
1294
1293
  - lib/generators/spotlight/scaffold_resource_generator.rb
1295
1294
  - lib/generators/spotlight/templates/catalog_controller.rb
1295
+ - lib/generators/spotlight/templates/config/initializers/oembed.rb
1296
1296
  - lib/generators/spotlight/templates/config/initializers/riiif.rb
1297
1297
  - lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb
1298
1298
  - lib/generators/spotlight/templates/config/initializers/translation.rb
@@ -1536,7 +1536,6 @@ files:
1536
1536
  - spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb
1537
1537
  - spec/views/spotlight/about_pages/index.html.erb_spec.rb
1538
1538
  - spec/views/spotlight/browse/_search.html.erb_spec.rb
1539
- - spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
1540
1539
  - spec/views/spotlight/browse/index.html.erb_spec.rb
1541
1540
  - spec/views/spotlight/browse/show.html.erb_spec.rb
1542
1541
  - spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb
@@ -1883,7 +1882,6 @@ test_files:
1883
1882
  - spec/views/spotlight/about_pages/_empty.html.erb_spec.rb
1884
1883
  - spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb
1885
1884
  - spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb
1886
- - spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb
1887
1885
  - spec/views/spotlight/browse/show.html.erb_spec.rb
1888
1886
  - spec/views/spotlight/browse/_search.html.erb_spec.rb
1889
1887
  - spec/views/spotlight/browse/index.html.erb_spec.rb
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
@@ -1,5 +0,0 @@
1
- <div id="sortAndPerPage" class="sort-pagination clearfix" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation')%>">
2
- <div class="search-widgets float-md-right">
3
- <%= render_results_collection_tools wrapping_class: "search-widgets float-md-right" %>
4
- </div>
5
- </div>
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- describe 'spotlight/browse/_sort_and_per_page', type: :view do
4
- before do
5
- allow(view).to receive_messages(render_results_collection_tools: 'collection tools')
6
- end
7
-
8
- it 'renders the pagination, sort, per page and view type controls' do
9
- render
10
- expect(rendered).to have_content 'collection tools'
11
- end
12
- end