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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +55 -1
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +7 -2
- data/app/assets/javascripts/spotlight/admin/crop.es6 +11 -0
- data/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +21 -12
- data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +3 -2
- data/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
- data/app/assets/stylesheets/spotlight/_browse.scss +16 -0
- data/app/assets/stylesheets/spotlight/_curation.scss +9 -16
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +7 -4
- data/app/assets/stylesheets/spotlight/_header.scss +1 -1
- data/app/assets/stylesheets/spotlight/_item_text_block.scss +6 -0
- data/app/assets/stylesheets/spotlight/_nestable.scss +4 -0
- data/app/assets/stylesheets/spotlight/_pages.scss +3 -1
- data/app/assets/stylesheets/spotlight/_report_a_problem.scss +5 -2
- data/app/assets/stylesheets/spotlight/_spotlight.scss +1 -0
- data/app/assets/stylesheets/spotlight/_translations.scss +1 -0
- data/app/controllers/concerns/spotlight/base.rb +8 -0
- data/app/controllers/spotlight/admin_users_controller.rb +4 -1
- data/app/controllers/spotlight/appearances_controller.rb +1 -0
- data/app/controllers/spotlight/browse_controller.rb +1 -1
- data/app/controllers/spotlight/catalog_controller.rb +2 -2
- data/app/controllers/spotlight/exhibits_controller.rb +4 -3
- data/app/controllers/spotlight/featured_images_controller.rb +1 -1
- data/app/controllers/spotlight/pages_controller.rb +1 -5
- data/app/controllers/spotlight/resources/csv_upload_controller.rb +1 -1
- data/app/controllers/spotlight/searches_controller.rb +3 -2
- data/app/controllers/spotlight/sites_controller.rb +8 -2
- data/app/controllers/spotlight/translations_controller.rb +46 -0
- data/app/helpers/spotlight/crop_helper.rb +4 -1
- data/app/helpers/spotlight/title_helper.rb +12 -2
- data/app/jobs/spotlight/add_uploads_from_csv.rb +30 -5
- data/app/mailers/spotlight/indexing_complete_mailer.rb +3 -2
- data/app/models/concerns/spotlight/translatables.rb +17 -1
- data/app/models/spotlight/about_page.rb +3 -1
- data/app/models/spotlight/contact.rb +1 -1
- data/app/models/spotlight/custom_field.rb +3 -3
- data/app/models/spotlight/exhibit.rb +4 -2
- data/app/models/spotlight/feature_page.rb +3 -1
- data/app/models/spotlight/featured_image.rb +29 -12
- data/app/models/spotlight/home_page.rb +3 -1
- data/app/models/spotlight/main_navigation.rb +2 -2
- data/app/models/spotlight/masthead.rb +1 -1
- data/app/models/spotlight/page.rb +7 -3
- data/app/models/spotlight/page_configurations.rb +1 -0
- data/app/models/spotlight/page_content.rb +2 -0
- data/app/models/spotlight/resources/csv_upload.rb +2 -1
- data/app/models/spotlight/resources/iiif_manifest.rb +2 -0
- data/app/models/spotlight/resources/upload.rb +1 -1
- data/app/models/spotlight/search.rb +5 -1
- data/app/models/spotlight/solr_document_sidecar.rb +7 -5
- data/app/models/spotlight/temporary_image.rb +8 -0
- data/app/services/spotlight/exhibit_import_export_service.rb +454 -0
- data/app/services/spotlight/solr_document_builder.rb +1 -0
- data/app/values/custom_field_name.rb +1 -0
- data/app/views/catalog/_save_search.html.erb +1 -1
- data/app/views/layouts/spotlight/spotlight.html.erb +1 -1
- data/app/views/shared/_site_sidebar.html.erb +1 -1
- data/app/views/spotlight/about_pages/_contact.html.erb +15 -17
- data/app/views/spotlight/admin_users/index.html.erb +1 -1
- data/app/views/spotlight/appearances/edit.html.erb +1 -23
- data/app/views/spotlight/browse/_search.html.erb +3 -2
- data/app/views/spotlight/browse/_search_title.html.erb +2 -1
- data/app/views/spotlight/exhibits/new.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +9 -5
- data/app/views/spotlight/indexing_complete_mailer/documents_indexed.html.erb +9 -0
- data/app/views/spotlight/pages/_form.html.erb +2 -2
- data/app/views/spotlight/pages/_page.html.erb +19 -35
- data/app/views/spotlight/search_configurations/_facets.html.erb +15 -34
- data/app/views/spotlight/search_configurations/_search_fields.html.erb +4 -19
- data/app/views/spotlight/search_configurations/_sort.html.erb +8 -22
- data/app/views/spotlight/searches/_form.html.erb +1 -0
- data/app/views/spotlight/searches/_search.html.erb +31 -29
- data/app/views/spotlight/shared/_dd3_item.html.erb +56 -0
- data/app/views/spotlight/shared/_honeypot_field.html.erb +4 -0
- data/app/views/spotlight/shared/_report_a_problem.html.erb +7 -10
- data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -0
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +7 -1
- data/app/views/spotlight/sites/edit.html.erb +1 -1
- data/app/views/spotlight/sites/edit_exhibits.html.erb +1 -1
- data/app/views/spotlight/translations/_browse_categories.html.erb +29 -3
- data/app/views/spotlight/translations/_general.html.erb +7 -7
- data/app/views/spotlight/translations/_import.html.erb +24 -0
- data/app/views/spotlight/translations/_metadata.html.erb +1 -1
- data/app/views/spotlight/translations/_page.html.erb +5 -5
- data/app/views/spotlight/translations/_pages.html.erb +4 -4
- data/app/views/spotlight/translations/_pages_table.html.erb +5 -5
- data/app/views/spotlight/translations/_search_fields.html.erb +3 -3
- data/app/views/spotlight/translations/edit.html.erb +8 -6
- data/app/views/spotlight/translations/show.yaml.yamlbuilder +81 -0
- data/config/i18n-tasks.yml +2 -0
- data/config/locales/spotlight.ar.yml +47 -24
- data/config/locales/spotlight.en.yml +82 -67
- data/config/routes.rb +6 -1
- data/db/migrate/20200403161512_add_subtitle_to_searches.rb +7 -0
- data/lib/generators/spotlight/install_generator.rb +22 -1
- data/lib/generators/spotlight/templates/config/initializers/sir_trevor_rails.rb +10 -0
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +2 -0
- data/lib/spotlight/engine.rb +26 -0
- data/lib/spotlight/upload_field_config.rb +1 -0
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/browse_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/home_pages_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +4 -4
- data/spec/controllers/spotlight/resources/upload_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/translations_controller_spec.rb +53 -2
- data/spec/examples.txt +1410 -1389
- data/spec/factories/featured_images.rb +4 -0
- data/spec/features/add_contacts_spec.rb +1 -1
- data/spec/features/browse_category_admin_spec.rb +2 -2
- data/spec/features/create_exhibit_spec.rb +6 -6
- data/spec/features/dashboard_spec.rb +5 -5
- data/spec/features/exhibits/administration_spec.rb +3 -3
- data/spec/features/exhibits/language_create_edit_spec.rb +3 -3
- data/spec/features/exhibits/translation_editing_spec.rb +2 -2
- data/spec/features/home_page_spec.rb +9 -0
- data/spec/features/javascript/block_controls_spec.rb +2 -0
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +4 -1
- data/spec/features/report_a_problem_spec.rb +5 -4
- data/spec/helpers/spotlight/pages_helper_spec.rb +2 -2
- data/spec/helpers/spotlight/title_helper_spec.rb +13 -0
- data/spec/i18n_spec.rb +0 -2
- data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +13 -1
- data/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +11 -1
- data/spec/models/solr_document_spec.rb +2 -3
- data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +1 -0
- data/spec/models/spotlight/exhibit_spec.rb +9 -1
- data/spec/models/spotlight/feature_page_spec.rb +0 -5
- data/spec/models/spotlight/featured_image_spec.rb +27 -0
- data/spec/models/spotlight/page_spec.rb +6 -1
- data/spec/models/spotlight/resources/upload_spec.rb +43 -79
- data/spec/models/spotlight/role_spec.rb +2 -2
- data/spec/{serializers/spotlight/exhibit_export_serializer_spec.rb → services/spotlight/exhibit_import_export_service_spec.rb} +120 -22
- data/spec/services/spotlight/iiif_resource_resolver_spec.rb +1 -1
- data/spec/test_app_templates/Gemfile.extra +0 -3
- data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +1 -0
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +9 -10
- data/spec/views/spotlight/translations/_import.html.erb_spec.rb +24 -0
- data/vendor/assets/javascripts/leaflet-iiif.js +46 -21
- metadata +69 -34
- data/app/serializers/spotlight/exhibit_export_serializer.rb +0 -205
- data/app/serializers/spotlight/featured_image_representer.rb +0 -29
- data/app/serializers/spotlight/main_navigation_representer.rb +0 -13
- data/app/serializers/spotlight/page_representer.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3577af6f5ec30554f2e91955c7613e6501ef8e95f2822f6a92022626c03230
|
4
|
+
data.tar.gz: e45881b0867cba47bb74a93a7a008a843154383939c8db3abbb0c244e0a6ff57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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">{{
|
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> {{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
|
-
|
44
|
-
var group = groups[
|
45
|
-
var groupEl = $("<div class='st-controls-group'><div class='st-group-col-form-label'>" +
|
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
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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: {
|
@@ -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
|
-
|
56
|
-
|
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("
|
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("
|
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("
|
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("
|
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
|
}
|
@@ -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
|
-
|
105
|
+
min-width: 70px;
|
104
106
|
}
|
105
107
|
|
106
108
|
// Indent contact fields so they align evenly, only when there is a contact photo
|
@@ -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
|