blacklight-spotlight 3.0.0.alpha.6 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +55 -1
  4. data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +7 -2
  5. data/app/assets/javascripts/spotlight/admin/crop.es6 +11 -0
  6. data/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +21 -12
  7. data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +3 -2
  8. data/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
  9. data/app/assets/stylesheets/spotlight/_browse.scss +16 -0
  10. data/app/assets/stylesheets/spotlight/_curation.scss +9 -16
  11. data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +7 -4
  12. data/app/assets/stylesheets/spotlight/_header.scss +1 -1
  13. data/app/assets/stylesheets/spotlight/_item_text_block.scss +6 -0
  14. data/app/assets/stylesheets/spotlight/_nestable.scss +4 -0
  15. data/app/assets/stylesheets/spotlight/_pages.scss +3 -1
  16. data/app/assets/stylesheets/spotlight/_report_a_problem.scss +5 -2
  17. data/app/assets/stylesheets/spotlight/_spotlight.scss +1 -0
  18. data/app/assets/stylesheets/spotlight/_translations.scss +1 -0
  19. data/app/controllers/concerns/spotlight/base.rb +8 -0
  20. data/app/controllers/spotlight/admin_users_controller.rb +4 -1
  21. data/app/controllers/spotlight/appearances_controller.rb +1 -0
  22. data/app/controllers/spotlight/browse_controller.rb +1 -1
  23. data/app/controllers/spotlight/catalog_controller.rb +2 -2
  24. data/app/controllers/spotlight/exhibits_controller.rb +4 -3
  25. data/app/controllers/spotlight/featured_images_controller.rb +1 -1
  26. data/app/controllers/spotlight/pages_controller.rb +1 -5
  27. data/app/controllers/spotlight/resources/csv_upload_controller.rb +1 -1
  28. data/app/controllers/spotlight/searches_controller.rb +3 -2
  29. data/app/controllers/spotlight/sites_controller.rb +8 -2
  30. data/app/controllers/spotlight/translations_controller.rb +46 -0
  31. data/app/helpers/spotlight/crop_helper.rb +4 -1
  32. data/app/helpers/spotlight/title_helper.rb +12 -2
  33. data/app/jobs/spotlight/add_uploads_from_csv.rb +30 -5
  34. data/app/mailers/spotlight/indexing_complete_mailer.rb +3 -2
  35. data/app/models/concerns/spotlight/translatables.rb +17 -1
  36. data/app/models/spotlight/about_page.rb +3 -1
  37. data/app/models/spotlight/contact.rb +1 -1
  38. data/app/models/spotlight/custom_field.rb +3 -3
  39. data/app/models/spotlight/exhibit.rb +4 -2
  40. data/app/models/spotlight/feature_page.rb +3 -1
  41. data/app/models/spotlight/featured_image.rb +29 -12
  42. data/app/models/spotlight/home_page.rb +3 -1
  43. data/app/models/spotlight/main_navigation.rb +2 -2
  44. data/app/models/spotlight/masthead.rb +1 -1
  45. data/app/models/spotlight/page.rb +7 -3
  46. data/app/models/spotlight/page_configurations.rb +1 -0
  47. data/app/models/spotlight/page_content.rb +2 -0
  48. data/app/models/spotlight/resources/csv_upload.rb +2 -1
  49. data/app/models/spotlight/resources/iiif_manifest.rb +2 -0
  50. data/app/models/spotlight/resources/upload.rb +1 -1
  51. data/app/models/spotlight/search.rb +5 -1
  52. data/app/models/spotlight/solr_document_sidecar.rb +7 -5
  53. data/app/models/spotlight/temporary_image.rb +8 -0
  54. data/app/services/spotlight/exhibit_import_export_service.rb +454 -0
  55. data/app/services/spotlight/solr_document_builder.rb +1 -0
  56. data/app/values/custom_field_name.rb +1 -0
  57. data/app/views/catalog/_save_search.html.erb +1 -1
  58. data/app/views/layouts/spotlight/spotlight.html.erb +1 -1
  59. data/app/views/shared/_site_sidebar.html.erb +1 -1
  60. data/app/views/spotlight/about_pages/_contact.html.erb +15 -17
  61. data/app/views/spotlight/admin_users/index.html.erb +1 -1
  62. data/app/views/spotlight/appearances/edit.html.erb +1 -23
  63. data/app/views/spotlight/browse/_search.html.erb +3 -2
  64. data/app/views/spotlight/browse/_search_title.html.erb +2 -1
  65. data/app/views/spotlight/exhibits/new.html.erb +1 -1
  66. data/app/views/spotlight/feature_pages/_sidebar.html.erb +9 -5
  67. data/app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb +9 -0
  68. data/app/views/spotlight/pages/_form.html.erb +2 -2
  69. data/app/views/spotlight/pages/_page.html.erb +19 -35
  70. data/app/views/spotlight/search_configurations/_facets.html.erb +15 -34
  71. data/app/views/spotlight/search_configurations/_search_fields.html.erb +4 -19
  72. data/app/views/spotlight/search_configurations/_sort.html.erb +8 -22
  73. data/app/views/spotlight/searches/_form.html.erb +1 -0
  74. data/app/views/spotlight/searches/_search.html.erb +31 -29
  75. data/app/views/spotlight/shared/_dd3_item.html.erb +56 -0
  76. data/app/views/spotlight/shared/_honeypot_field.html.erb +4 -0
  77. data/app/views/spotlight/shared/_report_a_problem.html.erb +7 -10
  78. data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -0
  79. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +7 -1
  80. data/app/views/spotlight/sites/edit.html.erb +1 -1
  81. data/app/views/spotlight/sites/edit_exhibits.html.erb +1 -1
  82. data/app/views/spotlight/translations/_browse_categories.html.erb +29 -3
  83. data/app/views/spotlight/translations/_general.html.erb +7 -7
  84. data/app/views/spotlight/translations/_import.html.erb +24 -0
  85. data/app/views/spotlight/translations/_metadata.html.erb +1 -1
  86. data/app/views/spotlight/translations/_page.html.erb +5 -5
  87. data/app/views/spotlight/translations/_pages.html.erb +4 -4
  88. data/app/views/spotlight/translations/_pages_table.html.erb +5 -5
  89. data/app/views/spotlight/translations/_search_fields.html.erb +3 -3
  90. data/app/views/spotlight/translations/edit.html.erb +8 -6
  91. data/app/views/spotlight/translations/show.yaml.yamlbuilder +81 -0
  92. data/config/i18n-tasks.yml +2 -0
  93. data/config/locales/spotlight.ar.yml +47 -24
  94. data/config/locales/spotlight.en.yml +82 -67
  95. data/config/routes.rb +6 -1
  96. data/db/migrate/20200403161512_add_subtitle_to_searches.rb +7 -0
  97. data/lib/generators/spotlight/install_generator.rb +22 -1
  98. data/lib/generators/spotlight/templates/config/initializers/sir_trevor_rails.rb +10 -0
  99. data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +2 -0
  100. data/lib/spotlight/engine.rb +26 -0
  101. data/lib/spotlight/upload_field_config.rb +1 -0
  102. data/lib/spotlight/version.rb +1 -1
  103. data/spec/controllers/spotlight/browse_controller_spec.rb +1 -1
  104. data/spec/controllers/spotlight/home_pages_controller_spec.rb +1 -1
  105. data/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +4 -4
  106. data/spec/controllers/spotlight/resources/upload_controller_spec.rb +2 -2
  107. data/spec/controllers/spotlight/translations_controller_spec.rb +53 -2
  108. data/spec/examples.txt +1410 -1389
  109. data/spec/factories/featured_images.rb +4 -0
  110. data/spec/features/add_contacts_spec.rb +1 -1
  111. data/spec/features/browse_category_admin_spec.rb +2 -2
  112. data/spec/features/create_exhibit_spec.rb +6 -6
  113. data/spec/features/dashboard_spec.rb +5 -5
  114. data/spec/features/exhibits/administration_spec.rb +3 -3
  115. data/spec/features/exhibits/language_create_edit_spec.rb +3 -3
  116. data/spec/features/exhibits/translation_editing_spec.rb +2 -2
  117. data/spec/features/home_page_spec.rb +9 -0
  118. data/spec/features/javascript/block_controls_spec.rb +2 -0
  119. data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +4 -1
  120. data/spec/features/report_a_problem_spec.rb +5 -4
  121. data/spec/helpers/spotlight/pages_helper_spec.rb +2 -2
  122. data/spec/helpers/spotlight/title_helper_spec.rb +13 -0
  123. data/spec/i18n_spec.rb +0 -2
  124. data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +13 -1
  125. data/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +11 -1
  126. data/spec/models/solr_document_spec.rb +2 -3
  127. data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +1 -0
  128. data/spec/models/spotlight/exhibit_spec.rb +9 -1
  129. data/spec/models/spotlight/feature_page_spec.rb +0 -5
  130. data/spec/models/spotlight/featured_image_spec.rb +27 -0
  131. data/spec/models/spotlight/page_spec.rb +6 -1
  132. data/spec/models/spotlight/resources/upload_spec.rb +43 -79
  133. data/spec/models/spotlight/role_spec.rb +2 -2
  134. data/spec/{serializers/spotlight/exhibit_export_serializer_spec.rb → services/spotlight/exhibit_import_export_service_spec.rb} +120 -22
  135. data/spec/services/spotlight/iiif_resource_resolver_spec.rb +1 -1
  136. data/spec/test_app_templates/Gemfile.extra +0 -3
  137. data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +1 -0
  138. data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -3
  139. data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +1 -1
  140. data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +9 -10
  141. data/spec/views/spotlight/translations/_import.html.erb_spec.rb +24 -0
  142. data/vendor/assets/javascripts/leaflet-iiif.js +46 -21
  143. metadata +69 -34
  144. data/app/serializers/spotlight/exhibit_export_serializer.rb +0 -205
  145. data/app/serializers/spotlight/featured_image_representer.rb +0 -29
  146. data/app/serializers/spotlight/main_navigation_representer.rb +0 -13
  147. data/app/serializers/spotlight/page_representer.rb +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8148cceceb619e368c4bffa31b5e42d16bf32e0949b617f0d7214a9deb4e7101
4
- data.tar.gz: daa2ff322a5344f0cdd20a3dc2df65f8e0322d2c52dea293ea7182e082a46de5
3
+ metadata.gz: 8a3577af6f5ec30554f2e91955c7613e6501ef8e95f2822f6a92022626c03230
4
+ data.tar.gz: e45881b0867cba47bb74a93a7a008a843154383939c8db3abbb0c244e0a6ff57
5
5
  SHA512:
6
- metadata.gz: 2f7c4277f47edbcfa9b4981e509ad96869c6b4724ed18ecf961c9ba4541b0abd6ecb341871db52cbd492bb12601360d89a7a1e067b589de25d510ccf946520f6
7
- data.tar.gz: 8d707819d16753591acd7f43bd863876e2df5d95a6434a2ca9ec67fe09da58767cb74a137cdc183ff80f77d615e88afc688d711b7f1235f1a6ffa47e61f28e3b
6
+ metadata.gz: 7164e6ebcca3edd4db9d2b95ed7fafb2ec55188de3e16bdf92963b893e6b717dae262a7a2ab5f3fbfbe2e2f8de7a602083e2586b338fdbf5f1f2f96c4f5cb402
7
+ data.tar.gz: aaf1d73d51efd42699f32e1c9315ee43c4ab5e9bdb85e737eddbd94b4d9cf565e93deb58751074fecc5aaf8461cd82eb68db52fa5189db88df38035125e7ee60
data/README.md CHANGED
@@ -9,7 +9,7 @@ Read more about what Spotlight is, our motivations for creating it, and how to i
9
9
 
10
10
  ## Requirements
11
11
 
12
- 1. Ruby (2.3.0 or greater)
12
+ 1. Ruby (2.5.0 or greater)
13
13
  2. Rails (5.1 or greater)
14
14
  3. Java (7 or greater) *for Solr*
15
15
  4. ImageMagick (http://www.imagemagick.org/script/index.php) due to [carrierwave](https://github.com/carrierwaveuploader/carrierwave#adding-versions)
@@ -93,7 +93,7 @@ Spotlight ships with [`i18n-tasks`](https://github.com/glebm/i18n-tasks) to help
93
93
  $ bundle exec i18n-tasks health
94
94
  ```
95
95
 
96
- See [developer-facing instructions for enabling translation](https://github.com/projectblacklight/spotlight/wiki/Translations) on the wiki.
96
+ See [developer-facing instructions for enabling translation](https://github.com/projectblacklight/spotlight/wiki/Translations) on the wiki.
97
97
 
98
98
  ## Community
99
99
 
@@ -10,7 +10,7 @@ SirTrevor.Blocks.Browse = (function(){
10
10
  autocomplete_url: function() {
11
11
  return $(this.inner).closest('form[data-autocomplete-exhibit-searches-path]').data('autocomplete-exhibit-searches-path').replace("%25QUERY", "%QUERY");
12
12
  },
13
- autocomplete_template: function() { return '<div class="autocomplete-item{{#unless published}} blacklight-private{{/unless}}">{{#if thumbnail_image_url}}<div class="document-thumbnail"><img class="img-thumbnail" src="{{thumbnail_image_url}}" /></div>{{/if}}<span class="autocomplete-title">{{title}}</span><br/><small>&nbsp;&nbsp;{{description}}</small></div>' },
13
+ autocomplete_template: function() { return '<div class="autocomplete-item{{#unless published}} blacklight-private{{/unless}}">{{#if thumbnail_image_url}}<div class="document-thumbnail"><img class="img-thumbnail" src="{{thumbnail_image_url}}" /></div>{{/if}}<span class="autocomplete-title">{{full_title}}</span><br/><small>&nbsp;&nbsp;{{description}}</small></div>' },
14
14
 
15
15
  bloodhoundOptions: function() {
16
16
  return {
@@ -21,6 +21,60 @@ SirTrevor.Blocks.Browse = (function(){
21
21
  };
22
22
  },
23
23
 
24
+ _itemPanel: function(data) {
25
+ var index = "item_" + this.globalIndex++;
26
+ var checked;
27
+ if (data.display == "true") {
28
+ checked = "checked='checked'"
29
+ } else {
30
+ checked = "";
31
+ }
32
+ var resource_id = data.slug || data.id;
33
+ var markup = [
34
+ '<li class="field form-inline dd-item dd3-item" data-resource-id="' + resource_id + '" data-id="' + index + '" id="' + this.formId("item_" + data.id) + '">',
35
+ '<input type="hidden" name="item[' + index + '][id]" value="' + resource_id + '" />',
36
+ '<input type="hidden" name="item[' + index + '][full_title]" value="' + (data.full_title || data.title) + '" />',
37
+ '<input data-property="weight" type="hidden" name="item[' + index + '][weight]" value="' + data.weight + '" />',
38
+ '<div class="card d-flex dd3-content">',
39
+ '<div class="dd-handle dd3-handle"><%= i18n.t("blocks:resources:panel:drag") %></div>',
40
+ '<div class="card-header item-grid">',
41
+ '<div class="d-flex">',
42
+ '<div class="checkbox">',
43
+ '<input name="item[' + index + '][display]" type="hidden" value="false" />',
44
+ '<input name="item[' + index + '][display]" id="'+ this.formId(this.display_checkbox + '_' + data.id) + '" type="checkbox" ' + checked + ' class="item-grid-checkbox" value="true" />',
45
+ '<label class="sr-only" for="'+ this.formId(this.display_checkbox + '_' + data.id) +'"><%= i18n.t("blocks:resources:panel:display") %></label>',
46
+ '</div>',
47
+ '<div class="pic">',
48
+ '<img class="img-thumbnail" src="' + (data.thumbnail_image_url || ((data.iiif_tilesource || "").replace("/info.json", "/full/!100,100/0/default.jpg"))) + '" />',
49
+ '</div>',
50
+ '<div class="main">',
51
+ '<div class="title card-title">' + (data.full_title || data.title) + '</div>',
52
+ '<div>' + (data.slug || data.id) + '</div>',
53
+ '</div>',
54
+ '<div class="remove float-right">',
55
+ '<a data-item-grid-panel-remove="true" href="#"><%= i18n.t("blocks:resources:panel:remove") %></a>',
56
+ '</div>',
57
+ '</div>',
58
+ '</div>',
59
+ '</div>',
60
+ '</li>'
61
+ ].join("\n");
62
+
63
+ var panel = $(_.template(markup)(this));
64
+ var context = this;
65
+
66
+ $('.remove a', panel).on('click', function(e) {
67
+ e.preventDefault();
68
+ $(this).closest('.field').remove();
69
+ context.afterPanelDelete();
70
+
71
+ });
72
+
73
+ this.afterPanelRender(data, panel);
74
+
75
+ return panel;
76
+ },
77
+
24
78
  item_options: function() { return [
25
79
  '<label>',
26
80
  '<input type="hidden" name="display-item-counts" value="false" />',
@@ -85,9 +85,13 @@ SirTrevor.Blocks.UploadedItems = (function(){
85
85
  '</div>',
86
86
  '<div class="main form-horizontal">',
87
87
  '<div class="title card-title">' + dataTitle + '</div>',
88
- '<div class="field">',
88
+ '<div class="field row mr-3">',
89
89
  '<label for="' + this.formId('caption_' + dataId) + '" class="col-form-label col-md-3"><%= i18n.t("blocks:uploaded_items:caption") %></label>',
90
- '<input type="text" class="form-control" id="' + this.formId('caption_' + dataId) + '" name="item[' + index + '][caption]" data-field="caption"/>',
90
+ '<input type="text" class="form-control col" id="' + this.formId('caption_' + dataId) + '" name="item[' + index + '][caption]" data-field="caption"/>',
91
+ '</div>',
92
+ '<div class="field row mr-3">',
93
+ '<label for="' + this.formId('link_' + dataId) + '" class="col-form-label col-md-3"><%= i18n.t("blocks:uploaded_items:link") %></label>',
94
+ '<input type="text" class="form-control col" id="' + this.formId('link_' + dataId) + '" name="item[' + index + '][link]" data-field="link"/>',
91
95
  '</div>',
92
96
  '</div>',
93
97
  '<div class="remove float-right">',
@@ -99,6 +103,7 @@ SirTrevor.Blocks.UploadedItems = (function(){
99
103
 
100
104
  var panel = $(_.template(markup)(this));
101
105
  panel.find('[data-field="caption"]').val(data.caption);
106
+ panel.find('[data-field="link"]').val(data.link);
102
107
  var context = this;
103
108
 
104
109
  $('.remove a', panel).on('click', function(e) {
@@ -40,6 +40,12 @@ export default class Crop {
40
40
  this.renderCropperMap();
41
41
 
42
42
  if (this.imageLayer) {
43
+ // Force a broken layer's container to be an element before removing.
44
+ // Code in leaflet-iiif land calls delete on the image layer's container when removing,
45
+ // which errors if there is an issue fetching the info.json and stops further necessary steps to execute.
46
+ if(!this.imageLayer._container) {
47
+ this.imageLayer._container = $('<div></div>');
48
+ }
43
49
  this.cropperMap.removeLayer(this.imageLayer);
44
50
  }
45
51
 
@@ -269,6 +275,11 @@ export default class Crop {
269
275
 
270
276
  successHandler(data, stat, xhr) {
271
277
  this.setIiifFields({ tilesource: data.tilesource });
278
+ this.setUploadId(data.id);
279
+ }
280
+
281
+ setUploadId(id) {
282
+ $('#' + this.formPrefix + "_upload_id").val(id);
272
283
  }
273
284
 
274
285
  aspectRatioPreservingRectangleEditor(aspect) {
@@ -40,19 +40,28 @@
40
40
  }
41
41
  }
42
42
 
43
- return Object.keys(groups).reduce(function(memo, groupKey) {
44
- var group = groups[groupKey];
45
- var groupEl = $("<div class='st-controls-group'><div class='st-group-col-form-label'>" + groupKey + "</div></div>");
43
+ function generateBlock(groups, key) {
44
+ var group = groups[key];
45
+ var groupEl = $("<div class='st-controls-group'><div class='st-group-col-form-label'>" + key + "</div></div>");
46
46
  var buttons = group.reduce(function(memo, btn) {
47
47
  return memo += btn;
48
48
  }, "");
49
49
  groupEl.append(buttons);
50
- if (memo.length === 0) {
51
- return memo += groupEl[0].outerHTML;
52
- } else {
53
- return memo += "<hr />" + groupEl[0].outerHTML;
50
+ return groupEl[0].outerHTML;
51
+ }
52
+
53
+ var standardWidgets = generateBlock(groups, i18n.t("blocks:group:undefined"));
54
+
55
+ var exhibitWidgets = Object.keys(groups).map(function(key) {
56
+ if (key !== i18n.t("blocks:group:undefined")) {
57
+ return generateBlock(groups, key);
54
58
  }
55
- }, "");
59
+ }).filter(function (element) {
60
+ return element != null;
61
+ });
62
+
63
+ var blocks = [standardWidgets].concat(exhibitWidgets).join("<hr />");
64
+ return blocks;
56
65
  }
57
66
 
58
67
  function render(Blocks, availableTypes) {
@@ -65,7 +74,7 @@
65
74
  elButtons.appendChild(el);
66
75
  return elButtons;
67
76
  }
68
-
77
+
69
78
  global.Spotlight.BlockControls = function() { };
70
79
  global.Spotlight.BlockControls.create = function(editor) {
71
80
  // REFACTOR - should probably not know about blockManager
@@ -83,10 +92,10 @@
83
92
  SirTrevor = null;
84
93
  el = null;
85
94
  }
86
-
95
+
87
96
  function insert(e) {
88
97
  e.stopPropagation();
89
-
98
+
90
99
  var parent = this.parentNode;
91
100
  if (!parent || hide() === parent) { return; }
92
101
  $('.st-block__inner', parent).after(el);
@@ -101,7 +110,7 @@
101
110
 
102
111
  $(editor.wrapper).delegate(".st-block-replacer", "click", insert);
103
112
  $(editor.wrapper).delegate(".st-block-controls__button", "click", insert);
104
-
113
+
105
114
  return {
106
115
  el: el,
107
116
  hide: hide,
@@ -29,8 +29,9 @@ SirTrevor.Locales.en.blocks = $.extend(SirTrevor.Locales.en.blocks, {
29
29
 
30
30
  uploaded_items: {
31
31
  title: "Uploaded Item Row",
32
- description: "This widget displays uploaded items in a horizontal row. Optionally, you can add a heading and/or text to be displayed adjacent to the items.",
33
- caption: 'Caption'
32
+ description: "This widget displays uploaded items in a horizontal row. Optionally, you can add a heading and/or text to be displayed adjacent to the items. The item caption and link URL fields are also optional.",
33
+ caption: 'Caption',
34
+ link: 'Link URL'
34
35
  },
35
36
 
36
37
  featured_pages: {
@@ -0,0 +1,8 @@
1
+ // Global accessibility overrides
2
+
3
+ // Increase visibility of Firefox focus indicator
4
+ @-moz-document url-prefix() {
5
+ :focus {
6
+ outline: $input-focus-border-color auto 5px;
7
+ }
8
+ }
@@ -26,6 +26,18 @@ $image-overlay-max-height: 300px;
26
26
  }
27
27
  }
28
28
 
29
+ .blacklight-browse-show {
30
+ .subtitle {
31
+ padding-right: $spacer;
32
+
33
+ &::before {
34
+ content: " \000B7 ";
35
+ color: $text-muted;
36
+ padding-right: $spacer / 2;
37
+ }
38
+ }
39
+ }
40
+
29
41
  .browse-landing {
30
42
  text-align: center;
31
43
  // Placeholder for vertically alignment - might already be available from use in another feature
@@ -70,6 +82,10 @@ $image-overlay-max-height: 300px;
70
82
  font-size: $h3-font-size;
71
83
  @extend %vertical-align;
72
84
 
85
+ .category-subtitle {
86
+ display: block;
87
+ }
88
+
73
89
  small {
74
90
  display: block;
75
91
  color: $white;
@@ -38,23 +38,10 @@
38
38
  display: inline-block;
39
39
  margin-bottom: 0;
40
40
  }
41
- .checkbox {
42
- width: 3%;
43
- vertical-align: top;
44
- display: inline-block;
45
- padding-top: 0;
46
- }
47
-
48
- .publish-control {
49
- display: inline;
50
-
51
- .checkbox {
52
- padding-top: 0;
53
- }
54
41
 
55
- .form-check-inline {
56
- vertical-align: middle;
57
- }
42
+ .form-check-inline {
43
+ margin-top: -3px;
44
+ vertical-align: middle;
58
45
  }
59
46
 
60
47
  .main {
@@ -229,3 +216,9 @@ table.tags {
229
216
  text-align: center;
230
217
  }
231
218
  }
219
+
220
+ .card-title .subtitle::before {
221
+ content: " \000B7 ";
222
+ color: $text-muted;
223
+ padding-right: 3px;
224
+ }
@@ -55,6 +55,9 @@ $aspect-ratio-factor-medium-image: 1; // 1:1 width: height
55
55
  margin: 0;
56
56
  padding: $spacer / 4;
57
57
  }
58
+ .category-subtitle {
59
+ display: block;
60
+ }
58
61
  .item-count {
59
62
  font-size: $font-size-base;
60
63
  text-transform: uppercase;
@@ -74,7 +77,7 @@ $aspect-ratio-factor-medium-image: 1; // 1:1 width: height
74
77
  width: $no-sidebar-desktop-large-image-width;
75
78
  height: $no-sidebar-desktop-large-image-width * $aspect-ratio-factor-large-image;
76
79
  }
77
- @media (min-width: breakpoint-min("xl")) {
80
+ @media (min-width: breakpoint-min("lg")) {
78
81
  width: $no-sidebar-large-desktop-large-image-width;
79
82
  height: $no-sidebar-large-desktop-large-image-width * $aspect-ratio-factor-large-image;
80
83
  }
@@ -108,11 +111,11 @@ $aspect-ratio-factor-medium-image: 1; // 1:1 width: height
108
111
  width: $with-sidebar-tablet-large-image-width;
109
112
  height: $with-sidebar-tablet-large-image-width * $aspect-ratio-factor-large-image;
110
113
  }
111
- @media (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("xl")) {
114
+ @media (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
112
115
  width: $with-sidebar-desktop-large-image-width;
113
116
  height: $with-sidebar-desktop-large-image-width * $aspect-ratio-factor-large-image;
114
117
  }
115
- @media (min-width: breakpoint-min("xl")) {
118
+ @media (min-width: breakpoint-min("lg")) {
116
119
  width: $with-sidebar-large-desktop-large-image-width;
117
120
  height: $with-sidebar-large-desktop-large-image-width * $aspect-ratio-factor-large-image;
118
121
  }
@@ -126,7 +129,7 @@ $aspect-ratio-factor-medium-image: 1; // 1:1 width: height
126
129
  width: $with-sidebar-xs-image-width;
127
130
  height: $with-sidebar-xs-image-width * $aspect-ratio-factor-medium-image;
128
131
  }
129
- @media (min-width: breakpoint-min("xl")) {
132
+ @media (min-width: breakpoint-min("lg")) {
130
133
  width: $with-sidebar-large-desktop-medium-image-width;
131
134
  height: $with-sidebar-large-desktop-medium-image-width * $aspect-ratio-factor-medium-image;
132
135
  }
@@ -79,7 +79,7 @@
79
79
  .image-masthead {
80
80
  background-color: $black;
81
81
 
82
- .navbar {
82
+ .exhibit-navbar {
83
83
  @extend .navbar-dark;
84
84
  background-color: $navbar-transparent-page-bg;
85
85
 
@@ -21,6 +21,12 @@
21
21
  }
22
22
  }
23
23
 
24
+ .item-text {
25
+ .item-col {
26
+ z-index: 1;
27
+ }
28
+ }
29
+
24
30
  .item-text-admin {
25
31
  .text-align {
26
32
  margin-top: 15px;
@@ -85,6 +85,10 @@ tr.dd-item {
85
85
  &.card, .card {
86
86
  padding: 0 0 0 30px;
87
87
  }
88
+
89
+ .card-header[data-behavior="restore-default"] {
90
+ min-height: 3rem;
91
+ }
88
92
  }
89
93
  .dd3-content.page-admin {
90
94
  position: relative;
@@ -80,6 +80,7 @@
80
80
  }
81
81
 
82
82
  ol.subsection {
83
+ margin-bottom: $spacer;
83
84
  padding-left: 0;
84
85
  li {
85
86
  list-style: square;
@@ -98,9 +99,10 @@
98
99
  .contact-photo {
99
100
  border: 1px solid #ccc;
100
101
  border-radius: $border-radius;
102
+ height: 70px;
101
103
  margin-right: 15px;
102
104
  margin-top: 3px;
103
- max-height: 70px;
105
+ min-width: 70px;
104
106
  }
105
107
 
106
108
  // Indent contact fields so they align evenly, only when there is a contact photo
@@ -1,7 +1,10 @@
1
1
  #report-problem-form {
2
2
  display: none;
3
- background-color: #e7e7e7;
4
- border-bottom: 1px dotted $gray-600;
3
+ border-bottom: 1px solid $gray-600;
4
+
5
+ h2 {
6
+ @extend .sr-only;
7
+ }
5
8
  }
6
9
 
7
10
  @include media-breakpoint-up(sm) {
@@ -31,6 +31,7 @@
31
31
  @import "spotlight/collapse_toggle";
32
32
  @import "spotlight/translations";
33
33
  @import "spotlight/utilities";
34
+ @import "spotlight/accessibility";
34
35
 
35
36
 
36
37
 
@@ -36,6 +36,7 @@
36
36
  }
37
37
  }
38
38
 
39
+ .translation-subtitle-toggle,
39
40
  .translation-description-toggle {
40
41
  margin: 0;
41
42
  padding: 0;
@@ -9,6 +9,14 @@ module Spotlight
9
9
  include Blacklight::Base
10
10
  include Spotlight::Config
11
11
 
12
+ included do
13
+ helper_method :controller_tracking_method
14
+ end
15
+
16
+ def controller_tracking_method
17
+ Spotlight::Engine.config.controller_tracking_method
18
+ end
19
+
12
20
  # This overwrites Blacklight::Configurable#blacklight_config
13
21
  def blacklight_config
14
22
  exhibit_specific_blacklight_config