blacklight-spotlight 2.13.0 → 3.0.0.alpha.1
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/add_circle.svg +1 -0
- data/app/assets/images/blacklight/arrow_back_ios.svg +1 -0
- data/app/assets/images/blacklight/arrow_forward_ios.svg +1 -0
- data/app/assets/images/blacklight/check.svg +1 -0
- data/app/assets/images/blacklight/check_circle.svg +1 -0
- data/app/assets/images/blacklight/chevron_right.svg +1 -0
- data/app/assets/images/blacklight/custom_fullscreen.svg +1 -0
- data/app/assets/images/blacklight/edit.svg +1 -0
- data/app/assets/images/blacklight/error.svg +1 -0
- data/app/assets/images/blacklight/info.svg +1 -0
- data/app/assets/images/blacklight/remove_circle.svg +1 -0
- data/app/assets/images/blacklight/remove_circle_outline.svg +1 -0
- data/app/assets/images/blacklight/resize_small.svg +1 -0
- data/app/assets/images/blacklight/warning.svg +1 -0
- data/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +1 -1
- data/app/assets/javascripts/spotlight/admin/block_mixins/plustextable.js +2 -2
- data/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/resources_block.js +7 -7
- data/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +3 -3
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +7 -7
- data/app/assets/javascripts/spotlight/admin/catalog_edit.js +2 -2
- data/app/assets/javascripts/spotlight/admin/multi_image_selector.js +2 -2
- data/app/assets/javascripts/spotlight/admin/reindex_monitor.js +1 -1
- data/app/assets/javascripts/spotlight/admin/search_typeahead.js +2 -2
- data/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +1 -1
- data/app/assets/javascripts/spotlight/admin/users.js +1 -1
- data/app/assets/javascripts/spotlight/user/index.js +1 -0
- data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +6 -6
- data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +44 -4
- data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +4 -8
- data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +31 -14
- data/app/assets/stylesheets/spotlight/_browse.scss +16 -13
- data/app/assets/stylesheets/spotlight/_catalog.scss +13 -7
- data/app/assets/stylesheets/spotlight/_collapse_toggle.scss +10 -14
- data/app/assets/stylesheets/spotlight/_curation.scss +34 -32
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +4 -29
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +16 -14
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +22 -20
- data/app/assets/stylesheets/spotlight/_footer.scss +2 -2
- data/app/assets/stylesheets/spotlight/_header.scss +18 -39
- data/app/assets/stylesheets/spotlight/_item_text_block.scss +1 -24
- data/app/assets/stylesheets/spotlight/_mixins.scss +3 -8
- data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +1 -1
- data/app/assets/stylesheets/spotlight/_nestable.scss +1 -2
- data/app/assets/stylesheets/spotlight/_pages.scss +33 -54
- data/app/assets/stylesheets/spotlight/_report_a_problem.scss +7 -1
- data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +9 -9
- data/app/assets/stylesheets/spotlight/_slideshow_block.scss +13 -11
- data/app/assets/stylesheets/spotlight/_spotlight.scss +0 -1
- data/app/assets/stylesheets/spotlight/_translations.scss +12 -12
- data/app/assets/stylesheets/spotlight/_variables.scss +14 -15
- data/app/assets/stylesheets/spotlight/_variables_bootstrap.scss +7 -7
- data/app/assets/stylesheets/spotlight/typeahead.css +1 -1
- data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +3 -2
- data/app/controllers/concerns/spotlight/catalog.rb +1 -1
- data/app/controllers/concerns/spotlight/controller.rb +3 -3
- data/app/controllers/concerns/spotlight/search_helper.rb +23 -0
- data/app/controllers/spotlight/browse_controller.rb +18 -4
- data/app/controllers/spotlight/catalog_controller.rb +13 -17
- data/app/controllers/spotlight/dashboards_controller.rb +5 -1
- data/app/controllers/spotlight/exhibits_controller.rb +1 -1
- data/app/controllers/spotlight/home_pages_controller.rb +32 -3
- data/app/controllers/spotlight/pages_controller.rb +19 -1
- data/app/controllers/spotlight/search_configurations_controller.rb +3 -3
- data/app/controllers/spotlight/searches_controller.rb +4 -1
- data/app/controllers/spotlight/solr_controller.rb +1 -2
- data/app/helpers/spotlight/application_helper.rb +1 -1
- data/app/helpers/spotlight/browse_helper.rb +1 -1
- data/app/helpers/spotlight/crud_link_helpers.rb +19 -0
- data/app/helpers/spotlight/pages_helper.rb +1 -1
- data/app/mailers/spotlight/contact_mailer.rb +1 -1
- data/app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb +2 -2
- data/app/models/concerns/spotlight/exhibit_analytics.rb +1 -3
- data/app/models/concerns/spotlight/exhibit_documents.rb +1 -1
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +11 -3
- data/app/models/spotlight/ability.rb +1 -1
- data/app/models/spotlight/analytics/ga.rb +25 -35
- data/app/models/spotlight/analytics/ga_model.rb +29 -0
- data/app/models/spotlight/blacklight_configuration.rb +5 -3
- data/app/models/spotlight/contact_form.rb +11 -4
- data/app/models/spotlight/exhibit.rb +0 -4
- data/app/models/spotlight/field_metadata.rb +3 -9
- data/app/models/spotlight/page.rb +0 -3
- data/app/models/spotlight/page_configurations.rb +1 -1
- data/app/models/spotlight/role.rb +0 -4
- data/app/models/spotlight/search.rb +3 -17
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +5 -1
- data/app/serializers/spotlight/exhibit_export_serializer.rb +69 -28
- data/app/serializers/spotlight/page_representer.rb +1 -1
- data/app/views/catalog/_save_search.html.erb +6 -4
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/layouts/spotlight/base.html.erb +48 -0
- data/app/views/layouts/spotlight/spotlight.html.erb +16 -54
- data/app/views/shared/_about_navbar.html.erb +2 -2
- data/app/views/shared/_browse_navbar.html.erb +2 -2
- data/app/views/shared/_curated_features_navbar.html.erb +4 -4
- data/app/views/shared/_exhibit_navbar.html.erb +5 -5
- data/app/views/shared/_header_navbar.html.erb +8 -13
- data/app/views/shared/_masthead.html.erb +1 -1
- data/app/views/shared/_site_sidebar.html.erb +6 -6
- data/app/views/shared/_user_util_links.html.erb +47 -0
- data/app/views/spotlight/about_pages/_contact.html.erb +3 -4
- data/app/views/spotlight/about_pages/_contacts.html.erb +1 -1
- data/app/views/spotlight/about_pages/_sidebar.html.erb +3 -5
- data/app/views/spotlight/about_pages/index.html.erb +7 -6
- data/app/views/spotlight/admin_users/index.html.erb +78 -79
- data/app/views/spotlight/appearances/edit.html.erb +26 -23
- data/app/views/spotlight/browse/_search.html.erb +2 -2
- data/app/views/spotlight/browse/_search_box.html.erb +9 -6
- data/app/views/spotlight/browse/_search_title.html.erb +1 -1
- data/app/views/spotlight/browse/_sort_and_per_page.html.erb +3 -5
- data/app/views/spotlight/browse/index.html.erb +4 -6
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_header.html.erb +2 -2
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +4 -4
- data/app/views/spotlight/catalog/_edit_sidecar.html.erb +1 -1
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +1 -2
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +3 -5
- data/app/views/spotlight/catalog/admin.html.erb +12 -12
- data/app/views/spotlight/contact_forms/new.html.erb +1 -3
- data/app/views/spotlight/contacts/edit.html.erb +6 -5
- data/app/views/spotlight/contacts/new.html.erb +6 -5
- data/app/views/spotlight/custom_fields/edit.html.erb +6 -5
- data/app/views/spotlight/custom_fields/new.html.erb +6 -5
- data/app/views/spotlight/dashboards/_analytics.html.erb +3 -3
- data/app/views/spotlight/dashboards/_page.html.erb +6 -6
- data/app/views/spotlight/dashboards/_page_activity.html.erb +5 -5
- data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +12 -12
- data/app/views/spotlight/dashboards/analytics.html.erb +11 -11
- data/app/views/spotlight/dashboards/show.html.erb +13 -13
- data/app/views/spotlight/exhibits/_confirmation_status.html.erb +3 -4
- data/app/views/spotlight/exhibits/_contact.html.erb +3 -3
- data/app/views/spotlight/exhibits/_delete.html.erb +7 -5
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +2 -2
- data/app/views/spotlight/exhibits/_exhibit_card_front.html.erb +2 -2
- data/app/views/spotlight/exhibits/_form.html.erb +5 -5
- data/app/views/spotlight/exhibits/_languages.html.erb +2 -2
- data/app/views/spotlight/exhibits/_new_exhibit_form.html.erb +0 -2
- data/app/views/spotlight/exhibits/edit.html.erb +43 -42
- data/app/views/spotlight/exhibits/index.html.erb +40 -41
- data/app/views/spotlight/exhibits/new.html.erb +4 -5
- data/app/views/spotlight/feature_pages/_header.html.erb +12 -14
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +2 -4
- data/app/views/spotlight/featured_images/_form.html.erb +4 -4
- data/app/views/spotlight/filters/_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/home_pages/_sidebar.html.erb +1 -3
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +4 -4
- data/app/views/spotlight/metadata_configurations/edit.html.erb +5 -4
- data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/pages/_form.html.erb +7 -7
- data/app/views/spotlight/pages/_order_pages.html.erb +2 -2
- data/app/views/spotlight/pages/_page.html.erb +11 -11
- data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
- data/app/views/spotlight/pages/edit.html.erb +2 -4
- data/app/views/spotlight/pages/index.html.erb +5 -4
- data/app/views/spotlight/pages/show.html.erb +5 -4
- data/app/views/spotlight/resources/_external_resources_form.html.erb +2 -2
- data/app/views/spotlight/resources/_form.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
- data/app/views/spotlight/resources/json_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/new.html.erb +25 -23
- data/app/views/spotlight/resources/upload/_form.html.erb +2 -2
- data/app/views/spotlight/roles/index.html.erb +60 -57
- data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +3 -1
- data/app/views/spotlight/search_configurations/_facets.html.erb +19 -18
- data/app/views/spotlight/search_configurations/_search_fields.html.erb +6 -6
- data/app/views/spotlight/search_configurations/_sort.html.erb +6 -6
- data/app/views/spotlight/search_configurations/edit.html.erb +42 -40
- data/app/views/spotlight/searches/_form.html.erb +15 -10
- data/app/views/spotlight/searches/_search.html.erb +29 -22
- data/app/views/spotlight/searches/edit.html.erb +6 -5
- data/app/views/spotlight/searches/index.html.erb +32 -31
- data/app/views/spotlight/shared/_configuration_sidebar.html.erb +6 -6
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +8 -9
- data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +6 -8
- data/app/views/spotlight/shared/_locale_picker.html.erb +3 -3
- data/app/views/spotlight/shared/_report_a_problem.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +3 -4
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +32 -31
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +5 -5
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +8 -10
- data/app/views/spotlight/sites/edit.html.erb +31 -34
- data/app/views/spotlight/sites/edit_exhibits.html.erb +28 -29
- data/app/views/spotlight/tags/index.html.erb +25 -24
- data/app/views/spotlight/translations/_browse_categories.html.erb +20 -15
- data/app/views/spotlight/translations/_general.html.erb +69 -91
- data/app/views/spotlight/translations/_metadata.html.erb +18 -14
- data/app/views/spotlight/translations/_page.html.erb +2 -2
- data/app/views/spotlight/translations/_search_fields.html.erb +26 -20
- data/app/views/spotlight/translations/edit.html.erb +16 -14
- data/config/locales/spotlight.en.yml +3 -0
- data/config/routes.rb +1 -1
- data/lib/generators/spotlight/install_generator.rb +2 -2
- data/lib/generators/spotlight/scaffold_resource_generator.rb +1 -1
- data/lib/generators/spotlight/templates/spotlight.scss +0 -1
- data/lib/spotlight/engine.rb +12 -0
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/application_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/browse_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/catalog_controller_spec.rb +13 -13
- data/spec/controllers/spotlight/dashboards_controller_spec.rb +2 -1
- data/spec/controllers/spotlight/search_configurations_controller_spec.rb +1 -1
- data/spec/examples.txt +50 -1489
- data/spec/features/add_items_spec.rb +2 -2
- data/spec/features/browse_category_admin_spec.rb +3 -3
- data/spec/features/browse_category_spec.rb +3 -3
- data/spec/features/catalog_spec.rb +1 -1
- data/spec/features/exhibits/translation_editing_spec.rb +21 -21
- data/spec/features/feature_page_spec.rb +1 -1
- data/spec/features/home_page_spec.rb +3 -3
- data/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb +1 -1
- data/spec/features/javascript/blocks/link_to_search_block_spec.rb +1 -1
- data/spec/features/javascript/blocks/search_result_block_spec.rb +9 -4
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +23 -15
- data/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb +29 -0
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +2 -2
- data/spec/features/javascript/edit_in_place_spec.rb +1 -0
- data/spec/features/javascript/feature_page_admin_spec.rb +11 -11
- data/spec/features/javascript/locale_selector_spec.rb +0 -1
- data/spec/features/javascript/multi_image_select_spec.rb +3 -3
- data/spec/features/javascript/reindex_monitor_spec.rb +2 -2
- data/spec/features/javascript/roles_admin_spec.rb +2 -2
- data/spec/features/javascript/search_context_spec.rb +4 -6
- data/spec/features/site_users_management_spec.rb +1 -1
- data/spec/helpers/spotlight/application_helper_spec.rb +2 -1
- data/spec/helpers/spotlight/crud_link_helpers_spec.rb +19 -0
- data/spec/helpers/spotlight/languages_helper_spec.rb +1 -0
- data/spec/lib/spotlight/controller_spec.rb +2 -2
- data/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb +38 -0
- data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +7 -6
- data/spec/models/spotlight/analytics/ga_spec.rb +16 -1
- data/spec/models/spotlight/contact_form_spec.rb +37 -5
- data/spec/models/spotlight/exhibit_spec.rb +8 -4
- data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +4 -0
- data/spec/routing/spotlight/exhibit_catalog_spec.rb +15 -11
- data/spec/serializers/spotlight/exhibit_export_serializer_spec.rb +60 -0
- data/spec/test_app_templates/Gemfile.extra +3 -0
- data/spec/test_app_templates/catalog_controller.rb +4 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -2
- data/spec/views/shared/_header_navbar.html.erb_spec.rb +1 -1
- data/spec/views/shared/_masthead.html.erb_spec.rb +1 -1
- data/spec/views/{_user_util_links.html.erb_spec.rb → shared/_user_util_links.html.erb_spec.rb} +1 -1
- data/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/about_pages/index.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/browse/_search.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +2 -13
- data/spec/views/spotlight/browse/show.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/catalog/admin.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +5 -5
- data/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/exhibits/_exhibit_card_front.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/exhibits/edit.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +7 -7
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -2
- data/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb +2 -1
- data/spec/views/spotlight/pages/index.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/pages/show.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/searches/_search.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/searches/edit.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/translations/_page.html.erb_spec.rb +2 -2
- data/vendor/assets/javascripts/bootstrap-tagsinput.js +1 -1
- data/vendor/assets/stylesheets/sir-trevor/_variables.scss +15 -8
- metadata +31 -28
- data/app/assets/stylesheets/spotlight/_navbar.scss +0 -48
- data/app/views/_user_util_links.html.erb +0 -50
- data/app/views/shared/_modal.html.erb +0 -6
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= configuration_page_title %>
|
4
6
|
|
5
|
-
<%= bootstrap_form_for @exhibit, url: spotlight.exhibit_appearance_path(@exhibit), layout: :horizontal, label_col: 'col-md-3
|
7
|
+
<%= bootstrap_form_for @exhibit, url: spotlight.exhibit_appearance_path(@exhibit), layout: :horizontal, label_col: 'col-md-3', control_col: 'col-md-5 row', html: {data: { autocomplete_exhibit_catalog_path: spotlight.autocomplete_exhibit_catalog_path(current_exhibit, q: "%QUERY", format: "json") } } do |f| %>
|
6
8
|
<% if @exhibit.errors.any? %>
|
7
9
|
<div id="error_explanation">
|
8
10
|
<h2><%= pluralize(@exhibit.errors.count, "error") %> prohibited this page from being saved:</h2>
|
@@ -17,21 +19,21 @@
|
|
17
19
|
<div role="tabpanel">
|
18
20
|
<ul class="nav nav-tabs" role="tablist">
|
19
21
|
<% if Spotlight::Engine.config.exhibit_themes.many? %>
|
20
|
-
<li role="presentation" class="
|
21
|
-
<a href="#site-theme" aria-controls="site-theme" role="tab" data-toggle="tab"><%= t(:'.site_theme.heading') %></a>
|
22
|
+
<li role="presentation" class="nav-item">
|
23
|
+
<a href="#site-theme" aria-controls="site-theme" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.site_theme.heading') %></a>
|
22
24
|
</li>
|
23
25
|
<% end %>
|
24
26
|
|
25
|
-
<li role="presentation"
|
26
|
-
<a href="#site-masthead" aria-controls="site-masthead" role="tab" data-toggle="tab"><%= t(:'.site_masthead.heading') %></a>
|
27
|
+
<li role="presentation" class="nav-item">
|
28
|
+
<a href="#site-masthead" aria-controls="site-masthead" role="tab" data-toggle="tab" class="nav-link <%= 'active' unless Spotlight::Engine.config.exhibit_themes.many? %>"><%= t(:'.site_masthead.heading') %></a>
|
27
29
|
</li>
|
28
30
|
|
29
|
-
<li role="presentation">
|
30
|
-
<a href="#site-thumbnail" aria-controls="site-thumbnail" role="tab" data-toggle="tab"><%= t(:'.site_thumbnail.heading') %></a>
|
31
|
+
<li role="presentation" class="nav-item">
|
32
|
+
<a href="#site-thumbnail" aria-controls="site-thumbnail" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.site_thumbnail.heading') %></a>
|
31
33
|
</li>
|
32
34
|
|
33
|
-
<li role="presentation">
|
34
|
-
<a href="#main-menu" aria-controls="main-menu" role="tab" data-toggle="tab"><%= t(:'.main_navigation.menu') %></a>
|
35
|
+
<li role="presentation" class="nav-item">
|
36
|
+
<a href="#main-menu" aria-controls="main-menu" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.main_navigation.menu') %></a>
|
35
37
|
</li>
|
36
38
|
</ul>
|
37
39
|
<div class="tab-content">
|
@@ -66,28 +68,30 @@
|
|
66
68
|
<div role="tabpanel" class="tab-pane" id="main-menu">
|
67
69
|
<%= field_set_tag do %>
|
68
70
|
<p class="instructions"><%= t(:'.main_navigation.help') %></p>
|
69
|
-
<div class="
|
71
|
+
<div class="card-group dd main_navigation_admin col-sm-7" id="nested-navigation" data-behavior="nestable" data-max-depth="1">
|
70
72
|
<ol class="dd-list">
|
71
73
|
<%= f.fields_for :main_navigations do |label| %>
|
72
74
|
<li class="dd-item dd3-item" data-id="<%= label.object.id %>">
|
73
|
-
<div class="dd3-content
|
75
|
+
<div class="dd3-content card">
|
74
76
|
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
75
|
-
<div class="
|
77
|
+
<div class="card-body container" data-behavior="restore-default">
|
76
78
|
<%= label.hidden_field :id %>
|
77
79
|
<div class="row">
|
78
80
|
<div class="col-sm-8">
|
79
|
-
<div class='publish-control'>
|
80
|
-
<%= label.check_box_without_bootstrap :display %>
|
81
|
-
</div>
|
82
81
|
<div class="main">
|
83
|
-
<h3 class="
|
84
|
-
<
|
85
|
-
|
82
|
+
<h3 class="card-title h6 mb-0">
|
83
|
+
<span class='publish-control h6'>
|
84
|
+
<%= label.check_box_without_bootstrap :display %>
|
85
|
+
</span>
|
86
|
+
<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']">
|
87
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= label.object.label_or_default %></a>
|
88
|
+
<%= label.hidden_field :label, data: {:"default-value" => label.object.default_label, :"edit-field-target" => 'true'} %>
|
89
|
+
</span>
|
86
90
|
</h3>
|
87
91
|
</div>
|
88
92
|
</div>
|
89
93
|
<div class="col-sm-4">
|
90
|
-
<%= button_tag t(:'.restore_default'), data: {:"restore-default" => true}, class: "btn restore-default btn-
|
94
|
+
<%= button_tag t(:'.restore_default'), data: {:"restore-default" => true}, class: "btn restore-default btn-secondary btn-sm float-right #{'hidden' if label.object.label.blank? || label.object.label == label.object.default_label}" %>
|
91
95
|
</div>
|
92
96
|
</div>
|
93
97
|
<%= label.hidden_field :weight, data: {property: "weight"} %>
|
@@ -108,4 +112,3 @@
|
|
108
112
|
</div>
|
109
113
|
</div>
|
110
114
|
<% end %>
|
111
|
-
</div>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%= cache [@exhibit, search, I18n.locale] do %>
|
2
|
-
<div class="col-
|
2
|
+
<div class="col-md-4 col-12 category">
|
3
3
|
<%= link_to spotlight.exhibit_browse_path(@exhibit, search) do %>
|
4
4
|
<div class="image-overlay">
|
5
5
|
<%= image_tag(search.thumbnail_image_url || 'spotlight/default_browse_thumbnail.jpg', class: 'img-responsive') %>
|
6
6
|
<div class="text-overlay">
|
7
7
|
<h2 class="browse-category-title">
|
8
8
|
<%= search.title%>
|
9
|
-
<small><%= t :'spotlight.browse.search.item_count', count: search.
|
9
|
+
<small><%= t :'spotlight.browse.search.item_count', count: search.count %></small>
|
10
10
|
</h2>
|
11
11
|
</div>
|
12
12
|
</div>
|
@@ -1,16 +1,19 @@
|
|
1
1
|
<div class="search-box-container">
|
2
2
|
<%= form_tag exhibit_browse_path(current_exhibit, search), method: :get, class: 'browse-search-form form-horizontal', role: 'browse-search' do %>
|
3
3
|
<%= render_hash_as_hidden_fields(search_state.params_for_search.except(:q, :search_field, :exhibit_id, :browse_q, :qt, :page, :utf8)) %>
|
4
|
-
<div class="form-group">
|
5
|
-
|
4
|
+
<div class="form-group row">
|
5
|
+
<label class="col-sm-4 col-form-label h6" for="browse_q"><%= t(:'.label') %></label>
|
6
6
|
<div class="col-sm-6">
|
7
7
|
<div class="input-group">
|
8
8
|
<%= text_field_tag :browse_q, params[:browse_q], placeholder: t(:'.placeholder'), class: "form-control", id: "browse_q" %>
|
9
|
-
<span class="input-group-btn">
|
10
|
-
<button class="btn btn-reset" type="reset"
|
9
|
+
<span class="input-group-btn input-group-append">
|
10
|
+
<button class="btn btn-reset" type="reset">
|
11
|
+
<span class="sr-only"><%= t(:'.reset') %></span>
|
12
|
+
<%= blacklight_icon('remove_circle_outline') %>
|
13
|
+
</button>
|
11
14
|
<button type="submit" class="btn btn-primary search-btn" id="browse-search">
|
12
|
-
|
13
|
-
|
15
|
+
<span class="submit-search-text"><%= t(:'.submit') %></span>
|
16
|
+
<%= blacklight_icon('search', aria_hidden: true) %>
|
14
17
|
</button>
|
15
18
|
</span>
|
16
19
|
</div>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= search.title %>
|
2
|
-
<small class="item-count"><%= t :'spotlight.browse.search.item_count', count: params[:browse_q] ? parent_search_count: search.
|
2
|
+
<small class="item-count"><%= t :'spotlight.browse.search.item_count', count: params[:browse_q] ? parent_search_count: search.count %></small>
|
@@ -1,7 +1,5 @@
|
|
1
|
-
<div id="sortAndPerPage" class="clearfix">
|
2
|
-
<div class="search-widgets
|
3
|
-
<%=
|
4
|
-
<%= render :partial => 'per_page_widget' %>
|
5
|
-
<%= render :partial => 'view_type_group' %>
|
1
|
+
<div id="sortAndPerPage" class="sort-pagination clearfix">
|
2
|
+
<div class="search-widgets float-md-right">
|
3
|
+
<%= render_results_collection_tools wrapping_class: "search-widgets float-md-right" %>
|
6
4
|
</div>
|
7
5
|
</div>
|
@@ -1,8 +1,6 @@
|
|
1
1
|
<% set_html_page_title %>
|
2
|
-
<
|
3
|
-
<h1 class="sr-only"><%= t :'.header' %></h1>
|
2
|
+
<h1 class="sr-only"><%= t :'.header' %></h1>
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</div>
|
4
|
+
<div class="browse-landing row">
|
5
|
+
<%= render collection: @searches, partial: 'spotlight/browse/search' %>
|
6
|
+
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% set_html_page_title @search.title %>
|
2
2
|
<% render partial: 'tophat' %>
|
3
3
|
<div class="col-md-12">
|
4
|
-
<%= exhibit_edit_link @search, class: 'edit-button
|
4
|
+
<%= exhibit_edit_link @search, class: 'edit-button float-right btn btn-primary' if can? :edit, @search %>
|
5
5
|
<% if resource_masthead? %>
|
6
6
|
<% content_for :masthead do %>
|
7
7
|
<%= render 'search_title', search: @search %>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<%= render 'reindex_progress_panel' %>
|
4
4
|
</div>
|
5
5
|
<div class="add-items-nav clearfix">
|
6
|
-
<div class="
|
7
|
-
<%= link_to t('.reindex'), reindex_all_exhibit_resources_path(current_exhibit), method: :post, class: 'btn btn-
|
6
|
+
<div class="float-right">
|
7
|
+
<%= link_to t('.reindex'), reindex_all_exhibit_resources_path(current_exhibit), method: :post, class: 'btn btn-secondary' %>
|
8
8
|
<% if Spotlight::Engine.config.resource_partials.any? %>
|
9
9
|
<%= link_to t('.new_resource'), new_exhibit_resource_path(current_exhibit), class: 'btn btn-primary' %>
|
10
10
|
<% end %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= exhibit_edit_link document, [:edit, current_exhibit, document], class: '
|
1
|
+
<%= exhibit_edit_link document, [:edit, current_exhibit, document], class: 'float-right btn btn-primary' if can?(:curate, current_exhibit) and !current_page? [:edit, current_exhibit, document] %>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
<table id="documents" class="table">
|
3
3
|
<thead>
|
4
4
|
<tr>
|
5
|
-
<th
|
6
|
-
<th
|
7
|
-
<th class="
|
8
|
-
<th
|
5
|
+
<th></th>
|
6
|
+
<th scope="col"><%= t(:'spotlight.catalog.fields.title') %></th>
|
7
|
+
<th scope="col" class="text-nowrap"><%= t(:'spotlight.catalog.fields.date_added') %></th>
|
8
|
+
<th scope="col" class="checkbox-toggle"><%= t(:'spotlight.catalog.fields.visibility') %></th>
|
9
9
|
</tr>
|
10
10
|
</thead>
|
11
11
|
<%= render partial: 'document_row', collection: documents, as: :document %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<%= render partial: "spotlight/custom_fields/form_group/#{field.field_type}", locals: { f: d, field: field, value: data[field.slug.to_s] || data[field.field.to_s] } %>
|
15
15
|
|
16
16
|
<% unless field.configured_to_display? %>
|
17
|
-
<p class="bg-warning
|
17
|
+
<p class="bg-warning form-text">
|
18
18
|
<%= t(:'.blank_field_warning_html',
|
19
19
|
link: link_to(t(:'spotlight.configuration.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit))) %>
|
20
20
|
</p>
|
@@ -11,11 +11,10 @@
|
|
11
11
|
</div>
|
12
12
|
</td>
|
13
13
|
|
14
|
-
<td>
|
14
|
+
<td class="text-nowrap">
|
15
15
|
<%= l Date.parse(document[blacklight_config.index.timestamp_field]) if document[blacklight_config.index.timestamp_field] %>
|
16
16
|
</td>
|
17
17
|
|
18
18
|
<td class="checkbox-toggle">
|
19
19
|
<%= render partial: 'document_visibility_control', locals: { document: document} %>
|
20
20
|
</td>
|
21
|
-
|
@@ -1,8 +1,6 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
</div>
|
5
|
-
<div class="panel-body">
|
1
|
+
<div class="card index-status border-info mb-3" style='display:none;'>
|
2
|
+
<h3 class="card-header bg-info text-white h4"><%= t('.heading') %></h3>
|
3
|
+
<div class="card-body">
|
6
4
|
<p data-behavior='monitor-start'>
|
7
5
|
<span class="text-muted" data-behavior='date'></span> <%= t('.begin_html') %>
|
8
6
|
</p>
|
@@ -1,16 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
3
4
|
|
4
|
-
|
5
|
+
<%= curation_page_title %>
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
<%= render 'admin_header' %>
|
8
|
+
<%= render 'search_header' %>
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
<%- if @response.empty? %>
|
11
|
+
<%= render "zero_results" %>
|
12
|
+
<%- else %>
|
13
|
+
<%= render_document_index %>
|
14
|
+
<%- end %>
|
14
15
|
|
15
|
-
|
16
|
-
</div>
|
16
|
+
<%= render 'results_pagination' %>
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= curation_page_title %>
|
6
|
+
<%= render 'form' %>
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= curation_page_title %>
|
6
|
+
<%= render 'form' %>
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= configuration_page_title %>
|
6
|
+
<%= render 'form' %>
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= configuration_page_title %>
|
6
|
+
<%= render 'form' %>
|
@@ -2,13 +2,13 @@
|
|
2
2
|
<h3><%= t :'.monthly_header' %></h3>
|
3
3
|
<table class="table analytics">
|
4
4
|
<tr>
|
5
|
-
<%
|
6
|
-
<td class="value
|
5
|
+
<% current_exhibit.analytics_provider.metrics.elements.each do |e| %>
|
6
|
+
<td class="value <%= e %>"><%= current_exhibit.analytics(1.month, exhibit_root_path(current_exhibit)).send(e) %></td>
|
7
7
|
<% end %>
|
8
8
|
</tr>
|
9
9
|
<tfoot>
|
10
10
|
<tr>
|
11
|
-
<%
|
11
|
+
<% current_exhibit.analytics_provider.metrics.elements.each do |e| %>
|
12
12
|
<th><%= t(:".#{e}") %></th>
|
13
13
|
<% end %>
|
14
14
|
</tr>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<tr>
|
2
|
-
<td>
|
3
|
-
<h4 class="
|
4
|
-
<div class="page-links">
|
1
|
+
<tr class="d-flex">
|
2
|
+
<td class="col-6">
|
3
|
+
<h4 class="h5 mb-0"><%= page.title %></h4>
|
4
|
+
<div class="page-links pt-0">
|
5
5
|
<% if page.is_a?(Spotlight::HomePage) %>
|
6
6
|
<%= link_to action_default_value(page, :view), current_exhibit, :class => 'btn btn-link' %> ·
|
7
7
|
<%= exhibit_edit_link page, edit_exhibit_home_page_path(page.exhibit), :class => 'btn btn-link', data: { turbolinks: false } %>
|
@@ -11,6 +11,6 @@
|
|
11
11
|
<% end %>
|
12
12
|
</div>
|
13
13
|
</td>
|
14
|
-
<td><%= page.last_edited_by.to_s if page.last_edited_by %></td>
|
15
|
-
<td><%= l page.updated_at, format: :short %></td>
|
14
|
+
<td class="col-4"><%= page.last_edited_by.to_s if page.last_edited_by %></td>
|
15
|
+
<td class="col-2"><%= l page.updated_at, format: :short %></td>
|
16
16
|
</tr>
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<% unless @pages.empty? %>
|
4
4
|
<table class="table table-striped">
|
5
5
|
<thead>
|
6
|
-
<tr>
|
7
|
-
<th class="col-
|
8
|
-
<th class="col-
|
9
|
-
<th class="col-
|
6
|
+
<tr class="d-flex">
|
7
|
+
<th class="col-6"><%= t :'.field.title' %></th>
|
8
|
+
<th class="col-4"><%= t :'.field.last_edited_by' %></th>
|
9
|
+
<th class="col-2"><%= t :'.field.updated_at' %></th>
|
10
10
|
</tr>
|
11
11
|
</thead>
|
12
12
|
<tbody>
|
13
13
|
<%= render partial: 'page', collection: @pages %>
|
14
14
|
</tbody>
|
15
15
|
</table>
|
16
|
-
<% end %>
|
16
|
+
<% end %>
|
@@ -3,22 +3,22 @@
|
|
3
3
|
<% unless @recent_reindexing.empty? %>
|
4
4
|
<table class="table table-striped">
|
5
5
|
<thead>
|
6
|
-
<tr>
|
7
|
-
<th class="col-
|
8
|
-
<th class="col-
|
9
|
-
<th class="col-
|
10
|
-
<th class="col-
|
11
|
-
<th class="col-
|
6
|
+
<tr class="d-flex">
|
7
|
+
<th class="col-3"><%= t :'.field.date' %></th>
|
8
|
+
<th class="col-3"><%= t :'.field.user' %></th>
|
9
|
+
<th class="col-1"><%= t :'.field.items_reindexed_count' %></th>
|
10
|
+
<th class="col-3"><%= t :'.field.duration' %></th>
|
11
|
+
<th class="col-2"><%= t :'.field.job_status' %></th>
|
12
12
|
</tr>
|
13
13
|
</thead>
|
14
14
|
<tbody>
|
15
15
|
<% @recent_reindexing.each do |log_entry| %>
|
16
|
-
<tr>
|
17
|
-
<td><%= l log_entry.start_time, format: :short if log_entry.start_time %></td>
|
18
|
-
<td><%= log_entry.user.email if log_entry.user %></td>
|
19
|
-
<td><%= log_entry.items_reindexed_count %></td>
|
20
|
-
<td><%= distance_of_time_in_words log_entry.duration, 0, include_seconds: true if log_entry.duration %></td>
|
21
|
-
<td><%= t "reindexing_log.status.#{log_entry.job_status}" %></td>
|
16
|
+
<tr class="d-flex">
|
17
|
+
<td class="col-3"><%= l log_entry.start_time, format: :short if log_entry.start_time %></td>
|
18
|
+
<td class="col-3"><%= log_entry.user.email if log_entry.user %></td>
|
19
|
+
<td class="col-1"><%= log_entry.items_reindexed_count %></td>
|
20
|
+
<td class="col-3"><%= distance_of_time_in_words log_entry.duration, 0, include_seconds: true if log_entry.duration %></td>
|
21
|
+
<td class="col-2"><%= t "reindexing_log.status.#{log_entry.job_status}" %></td>
|
22
22
|
</tr>
|
23
23
|
<% end %>
|
24
24
|
</tbody>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
2
4
|
|
3
|
-
|
4
|
-
<%= curation_page_title %>
|
5
|
+
<%= curation_page_title %>
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</div>
|
7
|
+
<% if current_exhibit.analytics_provider&.enabled? %>
|
8
|
+
<%= render 'analytics' %>
|
9
|
+
<% else %>
|
10
|
+
<div class="empty-page-block">
|
11
|
+
<p>In order to view exhibit analytics, the site administrator must <a href="https://github.com/projectblacklight/spotlight/wiki/Installation">configure an analytics provider.</a></p>
|
12
|
+
</div>
|
13
|
+
<% end %>
|