blacklight-spotlight 3.0.0.alpha.3 → 3.0.0.alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/blacklight/highlight_off.svg +1 -0
- data/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
- data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +3 -3
- data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +19 -23
- data/app/assets/stylesheets/spotlight/_browse.scss +22 -13
- data/app/assets/stylesheets/spotlight/_catalog.scss +2 -2
- data/app/assets/stylesheets/spotlight/_curation.scss +8 -19
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +119 -80
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +5 -5
- data/app/assets/stylesheets/spotlight/_header.scss +14 -6
- data/app/assets/stylesheets/spotlight/_multi_image_selector.scss +1 -1
- data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +3 -3
- data/app/assets/stylesheets/spotlight/_nestable.scss +4 -0
- data/app/assets/stylesheets/spotlight/_pages.scss +26 -17
- data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +3 -4
- data/app/assets/stylesheets/spotlight/_slideshow_block.scss +1 -0
- data/app/assets/stylesheets/spotlight/_spotlight.scss +1 -1
- data/app/assets/stylesheets/spotlight/_translations.scss +6 -6
- data/app/assets/stylesheets/spotlight/_utilities.scss +4 -0
- data/app/controllers/concerns/spotlight/base.rb +8 -0
- data/app/controllers/spotlight/admin_users_controller.rb +4 -1
- data/app/controllers/spotlight/catalog_controller.rb +2 -2
- data/app/controllers/spotlight/exhibits_controller.rb +2 -0
- data/app/controllers/spotlight/pages_controller.rb +0 -4
- data/app/controllers/spotlight/sites_controller.rb +8 -2
- data/app/controllers/spotlight/translations_controller.rb +9 -1
- data/app/helpers/spotlight/pages_helper.rb +2 -1
- data/app/helpers/spotlight/title_helper.rb +12 -2
- data/app/models/spotlight/field_metadata.rb +1 -2
- data/app/models/spotlight/page.rb +2 -2
- data/app/views/layouts/spotlight/spotlight.html.erb +1 -1
- data/app/views/shared/_masthead.html.erb +25 -13
- data/app/views/shared/_site_navbar.html.erb +0 -0
- 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/about_pages/_contact_properties.html.erb +1 -1
- data/app/views/spotlight/admin_users/index.html.erb +78 -72
- data/app/views/spotlight/appearances/edit.html.erb +1 -23
- data/app/views/spotlight/browse/_search_box.html.erb +3 -3
- data/app/views/spotlight/browse/show.html.erb +23 -26
- data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +2 -2
- data/app/views/spotlight/contacts/_form.html.erb +1 -1
- data/app/views/spotlight/custom_fields/_form.html.erb +2 -2
- data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
- data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
- data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
- data/app/views/spotlight/dashboards/_page.html.erb +4 -4
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +35 -7
- data/app/views/spotlight/exhibits/_exhibits.html.erb +1 -1
- data/app/views/spotlight/exhibits/index.html.erb +4 -4
- data/app/views/spotlight/exhibits/new.html.erb +1 -1
- data/app/views/spotlight/feature_pages/_header.html.erb +2 -2
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +9 -5
- data/app/views/spotlight/metadata_configurations/edit.html.erb +2 -2
- data/app/views/spotlight/pages/_form.html.erb +1 -1
- data/app/views/spotlight/pages/_page.html.erb +19 -35
- data/app/views/spotlight/roles/index.html.erb +2 -2
- data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +0 -5
- data/app/views/spotlight/search_configurations/_facets.html.erb +15 -34
- data/app/views/spotlight/search_configurations/_search_fields.html.erb +6 -17
- data/app/views/spotlight/search_configurations/_sort.html.erb +8 -18
- data/app/views/spotlight/searches/_form.html.erb +2 -2
- data/app/views/spotlight/searches/_search.html.erb +30 -29
- data/app/views/spotlight/shared/_dd3_item.html.erb +56 -0
- data/app/views/spotlight/shared/_report_a_problem.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_quote_block.html.erb +4 -4
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -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/_search_fields.html.erb +1 -1
- data/app/views/spotlight/translations/edit.html.erb +1 -1
- data/config/locales/spotlight.en.yml +5 -11
- data/config/locales/spotlight.es.yml +26 -25
- data/lib/generators/spotlight/install_generator.rb +6 -2
- data/lib/generators/spotlight/templates/config/initializers/oembed.rb +4 -0
- data/lib/spotlight/engine.rb +3 -5
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/translations_controller_spec.rb +8 -0
- data/spec/examples.txt +1386 -1379
- data/spec/features/create_exhibit_spec.rb +1 -2
- data/spec/features/exhibits_index_spec.rb +1 -3
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +2 -2
- data/spec/features/javascript/search_config_admin_spec.rb +1 -1
- data/spec/helpers/spotlight/pages_helper_spec.rb +6 -0
- data/spec/helpers/spotlight/title_helper_spec.rb +13 -0
- data/spec/models/spotlight/feature_page_spec.rb +0 -5
- data/spec/models/spotlight/field_metadata_spec.rb +0 -7
- data/spec/test_app_templates/Gemfile.extra +0 -1
- data/spec/views/shared/_masthead.html.erb_spec.rb +12 -0
- data/spec/views/spotlight/exhibits/{_exhibit_card_front.html.erb_spec.rb → _exhibit_card.html.erb_spec.rb} +7 -3
- data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +1 -0
- data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +0 -1
- 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 +2 -2
- data/vendor/assets/stylesheets/sir-trevor/_variables.scss +0 -8
- data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
- metadata +9 -10
- data/app/assets/images/blacklight/remove_circle_outline.svg +0 -1
- data/app/views/spotlight/browse/_sort_and_per_page.html.erb +0 -5
- data/app/views/spotlight/exhibits/_exhibit_card_back.html.erb +0 -25
- data/app/views/spotlight/exhibits/_exhibit_card_front.html.erb +0 -13
- data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +0 -12
@@ -40,7 +40,7 @@
|
|
40
40
|
<% end %>
|
41
41
|
<% unless @search.query_params.blank? %>
|
42
42
|
<div class="form-group row">
|
43
|
-
<label class="col-md-2 col-sm-2 form-
|
43
|
+
<label class="col-md-2 col-sm-2 col-form-label"><%= t(:".query_params") %></label>
|
44
44
|
<div class="col-md-7 col-sm-7">
|
45
45
|
<div class="appliedParams card card-body bg-light d-block">
|
46
46
|
<%= render_constraints(@search.query_params) %>
|
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
<div class="form-actions">
|
70
70
|
<div class="primary-actions">
|
71
|
-
<%= cancel_link @search,exhibit_searches_path(@exhibit), class: 'btn
|
71
|
+
<%= cancel_link @search,exhibit_searches_path(@exhibit), class: 'btn-sizing' %>
|
72
72
|
<%= f.submit nil, class: 'btn btn-primary' %>
|
73
73
|
</div>
|
74
74
|
</div>
|
@@ -1,36 +1,37 @@
|
|
1
1
|
<% search = f.object %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<%= render layout: 'spotlight/shared/dd3_item', locals: { id: search.id.to_s, field: f, dd3_content_classes: "search" , enabled_method: :published, label_method: :title, label: search.title } do |_, section| %>
|
3
|
+
<% case section when nil %>
|
4
|
+
<div class="d-flex flex-grow-1">
|
5
|
+
<div>
|
6
|
+
<%= f.check_box :published, inline: true, hide_label: true %>
|
7
|
+
</div>
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
<div class="pic">
|
10
|
+
<%= image_tag(search.thumbnail_image_url || 'spotlight/default_browse_thumbnail.jpg', class: 'img-thumbnail') %>
|
11
|
+
</div>
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<div class="flex-grow-1 mx-2 main">
|
14
|
+
<h4 class="card-title h6 mb-0">
|
15
|
+
<%= search.title %>
|
16
|
+
</h4>
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
</div>
|
18
|
+
<div class="card-text">
|
19
|
+
<div class="count"><%= t :'spotlight.searches.search.item_count', count: search.count %></div>
|
20
|
+
<div class="actions"><%= exhibit_view_link(search) %> • <%= exhibit_edit_link(search) %> • <%= exhibit_delete_link(search) %></div>
|
21
|
+
<%= f.hidden_field :id %>
|
22
|
+
<%= f.hidden_field :weight, data: {property: "weight"} %>
|
24
23
|
</div>
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
24
|
+
</div>
|
25
|
+
<% when :additional_options %>
|
26
|
+
<div class="flex-grow-1 mx-2 description">
|
27
|
+
<div class="card-text">
|
28
|
+
<% if search.long_description.present? %>
|
29
|
+
<%= truncate(search.long_description, length: 89) %>
|
30
|
+
<% else %>
|
31
|
+
<span class="missing-description"><%= t(:'spotlight.searches.search.missing_description_html', link: (link_to action_label(search, :edit_long), [spotlight, :edit, search.exhibit, search])) %></span>
|
32
|
+
<% end %>
|
33
33
|
</div>
|
34
34
|
</div>
|
35
|
-
|
36
|
-
|
35
|
+
<% else %>
|
36
|
+
<% end %>
|
37
|
+
<% end %>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<% main_content = yield %>
|
2
|
+
<% additional_options = yield nil, :additional_options %>
|
3
|
+
<% additional_content = yield nil, :additional_content %>
|
4
|
+
<% card_body = yield nil, :card_body %>
|
5
|
+
<% dd3_content_classes = local_assigns[:dd3_content_classes].presence %>
|
6
|
+
<% card_data = local_assigns[:card_data].presence || {} %>
|
7
|
+
<% enabled_method = local_assigns[:enabled_method].presence || :enabled %>
|
8
|
+
<% label_method = local_assigns[:label_method].presence || :label %>
|
9
|
+
<% label = local_assigns[:label].presence || field.object.public_send(label_method) %>
|
10
|
+
<% default_value = local_assigns[:default_value].presence %>
|
11
|
+
<% index = local_assigns[:index].presence %>
|
12
|
+
<% card_data[:behavior] ||= 'restore-default' if default_value %>
|
13
|
+
|
14
|
+
<li class="dd-item" data-id="<%= id.parameterize %>">
|
15
|
+
<div class="dd3-content <%= dd3_content_classes %> card d-flex">
|
16
|
+
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
17
|
+
<%= content_tag :div, class: "d-flex card-header", data: card_data do %>
|
18
|
+
<%= field.hidden_field :id %>
|
19
|
+
<% if main_content.present? %>
|
20
|
+
<%= main_content %>
|
21
|
+
<% else %>
|
22
|
+
<div class="flex-grow-1 align-self-center">
|
23
|
+
<h3 class="h6 card-title mb-0">
|
24
|
+
<%= field.hidden_field :weight, value: index, 'data-property' => 'weight' %>
|
25
|
+
<%= field.check_box enabled_method, inline: true, checked: field.object.public_send(enabled_method), hide_label: true, title: label %>
|
26
|
+
<span class="d-inline-block w-75" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
|
27
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= label %></a>
|
28
|
+
<%= field.hidden_field label_method, value: label, class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true', default_value: default_value } %>
|
29
|
+
</span>
|
30
|
+
</h3>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<% if default_value %>
|
35
|
+
<div class="">
|
36
|
+
<%= button_tag t(:'.restore_default'), data: {:"restore-default" => true}, class: "btn restore-default btn-secondary btn-sm #{'d-none' if label.blank? || label == default_value}" %>
|
37
|
+
</div>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
<%= content_tag :div, additional_options, class: 'd-flex' if additional_options.present? %>
|
41
|
+
|
42
|
+
|
43
|
+
<% if additional_content.present? %>
|
44
|
+
<div class="d-flex">
|
45
|
+
<button class="btn btn-link collapse-toggle collapsed" type="button" data-toggle="collapse" data-target="#<%= id.parameterize %>_options" aria-expanded="false" aria-controls="<%= id.parameterize %>_options">
|
46
|
+
Options
|
47
|
+
</button>
|
48
|
+
<span class="collapse-chevron">❯</span>
|
49
|
+
</div>
|
50
|
+
<% end %>
|
51
|
+
<% end %>
|
52
|
+
<%= content_tag :div, additional_content, id: "#{id.parameterize}_options", class: 'options collapse' if additional_content.present? %>
|
53
|
+
<%= content_tag :div, card_body, class: 'card-body bg-white' if card_body.present? %>
|
54
|
+
</div>
|
55
|
+
<%= yield nil, :nested_components %>
|
56
|
+
</li>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<%= f.hidden_field :current_url %>
|
15
15
|
<div class="form-actions">
|
16
16
|
<div class="primary-actions">
|
17
|
-
<%= link_to t(:'helpers.action.cancel'), '#', class: 'btn
|
17
|
+
<%= link_to t(:'helpers.action.cancel'), '#', class: 'btn-sizing', data: { 'behavior' => 'cancel-link' } %>
|
18
18
|
<%= f.submit nil, class: 'btn btn-primary' %>
|
19
19
|
</div>
|
20
20
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="content-block item-text row d-block">
|
1
|
+
<div class="content-block item-text row d-block clearfix">
|
2
2
|
<div class="<%= 'col-md-6' if oembed_block.text? %> col-12 <%= oembed_block.content_align == 'right' ? 'float-right' : 'float-left' %> oembed-block">
|
3
3
|
<%= render_oembed_tag oembed_block.url %>
|
4
4
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="st__content-block st__content-block--quote">
|
2
2
|
<div class="quote">
|
3
|
-
<blockquote>
|
3
|
+
<blockquote class="blockquote">
|
4
4
|
<div class="quote__content">
|
5
5
|
<% if quote_block.format == :html %>
|
6
6
|
<%= sir_trevor_format quote_block.text, format: quote_block.format %>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<% if quote_block.cite.present? %>
|
13
|
-
<
|
14
|
-
<cite class="quote__cite-text"
|
15
|
-
</
|
13
|
+
<footer class="quote__cite blockquote-footer">
|
14
|
+
<cite class="quote__cite-text"><%= quote_block.cite %></cite>
|
15
|
+
</footer>
|
16
16
|
<% end %>
|
17
17
|
</blockquote>
|
18
18
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% solr_documents_block.with_solr_helper(self) %>
|
2
2
|
|
3
|
-
<div class="content-block items-block row d-block">
|
3
|
+
<div class="content-block items-block row d-block clearfix">
|
4
4
|
<% if solr_documents_block.documents? %>
|
5
5
|
|
6
6
|
<div class="items-col spotlight-flexbox <%= solr_documents_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% solr_documents_embed_block.with_solr_helper(self) %>
|
2
2
|
|
3
|
-
<div class="content-block items-block row d-block">
|
3
|
+
<div class="content-block items-block row d-block clearfix">
|
4
4
|
|
5
5
|
<% if solr_documents_embed_block.documents? %>
|
6
6
|
<div class="items-col <%= solr_documents_embed_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_embed_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% solr_documents_grid_block.with_solr_helper(self) %>
|
2
|
-
<div class="content-block item-grid-block row d-block">
|
2
|
+
<div class="content-block item-grid-block row d-block clearfix">
|
3
3
|
<div class="items-col align-content-start justify-content-between flex-wrap <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> <%= solr_documents_grid_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
|
4
4
|
<% if solr_documents_grid_block.documents? %>
|
5
5
|
<% solr_documents_grid_block.each_document.each_with_index do |(block_options, document), index| %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="content-block item-text row d-block">
|
1
|
+
<div class="content-block item-text row d-block clearfix">
|
2
2
|
<div class="items-col spotlight-flexbox <%= 'col-md-6' if uploaded_items_block.text? %> col-12 <%= uploaded_items_block.content_align == 'right' ? 'float-right' : 'float-left' %> uploaded-items-block">
|
3
3
|
<% if uploaded_items_block.files.present? %>
|
4
4
|
<% uploaded_items_block.files.each do |file| %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= page_title(t('.
|
1
|
+
<%= page_title(t('.page_title')) %>
|
2
2
|
<div role="tabpanel">
|
3
3
|
<%= bootstrap_form_for @site, url: spotlight.site_path, layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
|
4
4
|
<ul class="nav nav-tabs" role="tablist">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= page_title(t('.
|
1
|
+
<%= page_title(t('.page_title')) %>
|
2
2
|
<%= bootstrap_form_for @site, url: spotlight.site_path, layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
|
3
3
|
<p class="instructions"><%= t :'.instructions' %></p>
|
4
4
|
<table class="table table-striped dd-table">
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<%= f.fields_for :translations, translation do |translation_fields| %>
|
75
75
|
<%= translation_fields.hidden_field :key %>
|
76
76
|
<%= translation_fields.hidden_field :locale %>
|
77
|
-
<div data-translation-progress-item='true' class='form-group translation-form'>
|
77
|
+
<div data-translation-progress-item='true' class='row form-group translation-form'>
|
78
78
|
<%= translation_fields.label :value, t("spotlight.search.fields.sort.#{key}", locale: I18n.default_locale), class: 'col-form-label col-12 col-sm-2' %>
|
79
79
|
<div class='col-11 col-sm-9 card card-body panel-translation'>
|
80
80
|
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= curation_page_title t('spotlight.exhibits.translations.title') %>
|
7
7
|
|
8
8
|
<div class='text-center'>
|
9
|
-
<ul class='nav nav-pills
|
9
|
+
<ul class='nav nav-pills'>
|
10
10
|
<% current_exhibit.available_locales.each do |language| %>
|
11
11
|
<li role="presentation" class="nav-item">
|
12
12
|
<%= link_to spotlight.edit_exhibit_translations_path(current_exhibit, language: language), class: "nav-link #{'active' if @language == language}" do %>
|
@@ -187,7 +187,6 @@ en:
|
|
187
187
|
page_title: Manage users
|
188
188
|
pending: pending
|
189
189
|
save: Add role
|
190
|
-
section: Manage exhibits
|
191
190
|
update: Make user an administrator
|
192
191
|
appearances:
|
193
192
|
edit:
|
@@ -195,7 +194,6 @@ en:
|
|
195
194
|
main_navigation:
|
196
195
|
help: Select the menu items you want to be displayed in the main navigation menu (menu items are only displayed when published pages exist for that item). Click a menu item to change its display label. Drag and drop a menu item to change their order in the menu.
|
197
196
|
menu: Main menu
|
198
|
-
restore_default: Restore default
|
199
197
|
site_masthead:
|
200
198
|
heading: Exhibit masthead
|
201
199
|
help: You can select and crop an image to use as a background in your exhibit site's masthead. To use an image as a masthead background, you should use an image that is at least 120 pixels tall and 1200 pixels wide. For best results use an image at least 1800 pixels wide. You can crop larger images using the cropping tool below.
|
@@ -384,9 +382,7 @@ en:
|
|
384
382
|
basic_settings:
|
385
383
|
heading: Basic settings
|
386
384
|
header: General
|
387
|
-
|
388
|
-
visit_exhibit: Visit exhibit
|
389
|
-
exhibit_card_front:
|
385
|
+
exhibit_card:
|
390
386
|
unpublished: Unpublished
|
391
387
|
export:
|
392
388
|
download: Export data
|
@@ -426,7 +422,7 @@ en:
|
|
426
422
|
language: Language
|
427
423
|
public: Public
|
428
424
|
new:
|
429
|
-
|
425
|
+
page_title: Create a new exhibit
|
430
426
|
new_exhibit_form:
|
431
427
|
fields:
|
432
428
|
slug:
|
@@ -768,6 +764,8 @@ en:
|
|
768
764
|
other: "%{count} items"
|
769
765
|
missing_description_html: "%{link} to add a description."
|
770
766
|
shared:
|
767
|
+
dd3_item:
|
768
|
+
restore_default: Restore default
|
771
769
|
exhibit_sidebar:
|
772
770
|
header: Administration menu
|
773
771
|
report_a_problem:
|
@@ -788,7 +786,6 @@ en:
|
|
788
786
|
basic_settings:
|
789
787
|
heading: Title
|
790
788
|
page_title: Customize appearance
|
791
|
-
section: Manage exhibits
|
792
789
|
site_masthead:
|
793
790
|
heading: Site masthead
|
794
791
|
help: |
|
@@ -797,13 +794,10 @@ en:
|
|
797
794
|
edit_exhibits:
|
798
795
|
instructions: Drag and drop the exhibits below to specify the order in which they are displayed on the exhibits homepage.
|
799
796
|
page_title: Order exhibits
|
800
|
-
section: Manage exhibits
|
801
797
|
exhibit:
|
802
798
|
published: Published
|
803
799
|
unpublished: Unpublished
|
804
|
-
|
805
|
-
page_title: Create a new exhibit
|
806
|
-
section: Manage exhibits
|
800
|
+
home: Exhibits
|
807
801
|
tags:
|
808
802
|
index:
|
809
803
|
actions: Actions
|
@@ -1,32 +1,11 @@
|
|
1
1
|
---
|
2
2
|
es:
|
3
|
-
about_pages:
|
4
|
-
contacts:
|
5
|
-
header: Contacto
|
6
3
|
activemodel:
|
7
4
|
attributes:
|
8
5
|
spotlight/contact_form:
|
9
6
|
email: Correo electrónico
|
10
7
|
message: Mensage
|
11
8
|
name: Nombre
|
12
|
-
browse:
|
13
|
-
search:
|
14
|
-
item_count:
|
15
|
-
one: "%{count} registros"
|
16
|
-
other: "%{count} registros"
|
17
|
-
search_box:
|
18
|
-
label: Buscar en esta categoría
|
19
|
-
placeholder: Buscar
|
20
|
-
reset: Limpiar
|
21
|
-
submit: Buscar en esta categoría
|
22
|
-
success:
|
23
|
-
expand_html: También puede buscar todos los elementos recuperados %{browse_query}.
|
24
|
-
result_number_html: Su búsqueda coincide con %{search_size} de elementos de las %{parent_search_count} en esta categoría.
|
25
|
-
zero_results:
|
26
|
-
expand_html: Puede %{clear_search_url} borrar su búsqueda o interntar otra que busque en todos los elementos %{browse_query}.
|
27
|
-
result_number: No se encuentran registos con esta búsqueda.
|
28
|
-
header_links:
|
29
|
-
contact: Comentarios
|
30
9
|
helpers:
|
31
10
|
action:
|
32
11
|
cancel: Cancelar
|
@@ -34,7 +13,29 @@ es:
|
|
34
13
|
contact_form:
|
35
14
|
create: Enviar
|
36
15
|
created: Gracias. Hemos recibido sus comentarios.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
16
|
+
spotlight:
|
17
|
+
about_pages:
|
18
|
+
contacts:
|
19
|
+
header: Contacto
|
20
|
+
browse:
|
21
|
+
search:
|
22
|
+
item_count:
|
23
|
+
one: "%{count} registros"
|
24
|
+
other: "%{count} registros"
|
25
|
+
search_box:
|
26
|
+
label: Buscar en esta categoría
|
27
|
+
placeholder: Buscar
|
28
|
+
reset: Limpiar
|
29
|
+
submit: Buscar en esta categoría
|
30
|
+
success:
|
31
|
+
expand_html: También puede buscar todos los elementos recuperados %{browse_query}.
|
32
|
+
result_number_html: Su búsqueda coincide con %{search_size} de elementos de las %{parent_search_count} en esta categoría.
|
33
|
+
zero_results:
|
34
|
+
expand_html: Puede %{clear_search_url} borrar su búsqueda o interntar otra que busque en todos los elementos %{browse_query}.
|
35
|
+
result_number: No se encuentran registos con esta búsqueda.
|
36
|
+
header_links:
|
37
|
+
contact: Comentarios
|
38
|
+
shared:
|
39
|
+
report_a_problem:
|
40
|
+
honeypot_field_explanation: No escribir en espacio. Es para detectar "spam." Si escribe algo el mensaje no se enviará.
|
41
|
+
title: Contacto
|
@@ -64,7 +64,9 @@ module Spotlight
|
|
64
64
|
|
65
65
|
def add_helper
|
66
66
|
copy_file 'spotlight_helper.rb', 'app/helpers/spotlight_helper.rb'
|
67
|
-
|
67
|
+
inject_into_file 'app/helpers/application_helper.rb', after: 'module ApplicationHelper' do
|
68
|
+
"\n include SpotlightHelper"
|
69
|
+
end
|
68
70
|
end
|
69
71
|
|
70
72
|
def add_model_mixin
|
@@ -107,8 +109,10 @@ module Spotlight
|
|
107
109
|
end
|
108
110
|
|
109
111
|
def add_oembed
|
110
|
-
gem 'blacklight-oembed', '
|
112
|
+
gem 'blacklight-oembed', '~> 1.0'
|
113
|
+
Bundler.with_clean_env { run 'bundle install' }
|
111
114
|
generate 'blacklight_oembed:install'
|
115
|
+
copy_file 'config/initializers/oembed.rb'
|
112
116
|
end
|
113
117
|
|
114
118
|
def add_mailer_defaults
|
data/lib/spotlight/engine.rb
CHANGED
@@ -53,15 +53,10 @@ module Spotlight
|
|
53
53
|
require 'cancan'
|
54
54
|
require 'bootstrap_form'
|
55
55
|
require 'acts-as-taggable-on'
|
56
|
-
require 'oembed'
|
57
56
|
|
58
57
|
Mime::Type.register 'application/solr+json', :solr_json
|
59
58
|
end
|
60
59
|
|
61
|
-
initializer 'oembed.initialize' do
|
62
|
-
OEmbed::Providers.register_all
|
63
|
-
end
|
64
|
-
|
65
60
|
initializer 'spotlight.factories', after: 'factory_bot.set_factory_paths' do
|
66
61
|
FactoryBot.definition_file_paths << File.expand_path('../../spec/factories', __dir__) if defined?(FactoryBot)
|
67
62
|
end
|
@@ -197,6 +192,7 @@ module Spotlight
|
|
197
192
|
config.ga_analytics_options = {}
|
198
193
|
config.ga_page_analytics_options = config.ga_analytics_options.merge(limit: 5)
|
199
194
|
config.ga_anonymize_ip = false # false for backwards compatibility
|
195
|
+
config.max_pages = 1000
|
200
196
|
|
201
197
|
Blacklight::Engine.config.inject_blacklight_helpers = false
|
202
198
|
|
@@ -256,6 +252,8 @@ module Spotlight
|
|
256
252
|
config.routes = OpenStruct.new
|
257
253
|
config.routes.solr_documents = {}
|
258
254
|
|
255
|
+
config.controller_tracking_method = 'track_catalog_path'
|
256
|
+
|
259
257
|
config.exports = {
|
260
258
|
attachments: true,
|
261
259
|
blacklight_configuration: true,
|
data/lib/spotlight/version.rb
CHANGED