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
@@ -12,10 +12,10 @@
|
|
12
12
|
<%= f.fields_for :search_fields, @blacklight_configuration.blacklight_config.search_fields.keys do |vt| %>
|
13
13
|
<ol class="dd-list col-md-7 disabled-search-option search_fields_admin">
|
14
14
|
<li>
|
15
|
-
<div class="
|
15
|
+
<div class="card">
|
16
16
|
<div class="panel-content">
|
17
|
-
<div class="
|
18
|
-
<h3 class="
|
17
|
+
<div class="card-header">
|
18
|
+
<h3 class="h6 card-title">
|
19
19
|
<%= vt.fields_for default_field.key, default_field do |field| %>
|
20
20
|
<%= field.check_box_without_bootstrap :enabled, data: { readonly: true }, class: 'disabled' %>
|
21
21
|
<%= field.hidden_field :label, readonly: true %>
|
@@ -32,14 +32,14 @@
|
|
32
32
|
<ol class="dd-list">
|
33
33
|
<% @blacklight_configuration.blacklight_config.search_fields.select { |_k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) && v.include_in_simple_select != false }.except(default_field.key).each_with_index do |(k, config), index| %>
|
34
34
|
<li class="dd-item dd3-item" data-id="<%= k.parameterize %>-id">
|
35
|
-
<div class="dd3-content
|
35
|
+
<div class="dd3-content card">
|
36
36
|
<div class="dd-handle dd3-handle"><%= t(:drag) %></div>
|
37
|
-
<div class="
|
37
|
+
<div class="card-header" data-behavior="restore-default">
|
38
38
|
<div class="row">
|
39
39
|
<div class="col-sm-12">
|
40
40
|
<%= vt.fields_for k, config do |field| %>
|
41
41
|
<%= field.check_box_without_bootstrap :enabled %>
|
42
|
-
<h3 class="
|
42
|
+
<h3 class="h6 card-title" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
|
43
43
|
<a href="#edit-in-place" class="field-label edit-in-place"><%= config.label %></a>
|
44
44
|
<%= field.hidden_field :label, {data: {:"edit-field-target" => "true"}} %>
|
45
45
|
</h3>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
<%= f.fields_for :sort_fields, @blacklight_configuration.blacklight_config.sort_fields.keys do |vt| %>
|
6
6
|
<ol class="dd-list col-md-7 disabled-sort-option sort_fields_admin">
|
7
7
|
<li>
|
8
|
-
<div class="panel
|
8
|
+
<div class="panel">
|
9
9
|
<div class="panel-content">
|
10
|
-
<div class="
|
11
|
-
<h3 class="
|
10
|
+
<div class="card-header">
|
11
|
+
<h3 class="h6 card-title">
|
12
12
|
<%= vt.fields_for default_field.key, default_field do |sort| %>
|
13
13
|
<%= sort.check_box_without_bootstrap :enable, checked: true, disabled: true, data: { readonly: true } %>
|
14
14
|
<%= sort.hidden_field :enabled, value: '1', readonly: true %>
|
@@ -27,14 +27,14 @@
|
|
27
27
|
<ol class="dd-list">
|
28
28
|
<% @blacklight_configuration.blacklight_config.sort_fields.select { |k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) }.except(default_field.key).each_with_index do |(k, config), index| %>
|
29
29
|
<li class="dd-item dd3-item" data-id="<%= k.parameterize %>-id">
|
30
|
-
<div class="dd3-content panel
|
30
|
+
<div class="dd3-content panel">
|
31
31
|
<div class="dd-handle dd3-handle"><%= t(:drag) %></div>
|
32
|
-
<div class="
|
32
|
+
<div class="card-header" data-behavior="restore-default">
|
33
33
|
<div class="row">
|
34
34
|
<div class="col-sm-12">
|
35
35
|
<%= vt.fields_for k, config do |sort| %>
|
36
36
|
<%= sort.check_box_without_bootstrap :enabled %>
|
37
|
-
<h3 class="
|
37
|
+
<h3 class="h6 card-title" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
|
38
38
|
<a href="#edit-in-place" class="field-label edit-in-place"><%= config.label %></a>
|
39
39
|
<%= sort.hidden_field :label, {data: {:"edit-field-target" => "true"}} %>
|
40
40
|
</h3>
|
@@ -1,45 +1,47 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_search_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3 col-sm-3', control_col: 'col-md-5 col-sm-5' do |f| %>
|
5
|
-
|
6
|
-
<div role="tabpanel">
|
7
|
-
<ul class="nav nav-tabs" role="tablist">
|
8
|
-
<li role="presentation" class="active">
|
9
|
-
<a href="#options" aria-controls="options" role="tab" data-toggle="tab"><%= t(:'.tab.options') %></a>
|
10
|
-
</li>
|
11
|
-
<li role="presentation">
|
12
|
-
<a href="#facets" aria-controls="facets" role="tab" data-toggle="tab"><%= t(:'.tab.facets') %></a>
|
13
|
-
</li>
|
14
|
-
<li role="presentation">
|
15
|
-
<a href="#results" aria-controls="results" role="tab" data-toggle="tab"><%= t(:'.tab.results') %></a>
|
16
|
-
</li>
|
17
|
-
</ul>
|
18
|
-
<div class="tab-content">
|
19
|
-
<div role="tabpanel" class="tab-pane active" id="options">
|
20
|
-
<%= render 'search_fields', f: f %>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div role="tabpanel" class="tab-pane" id="facets">
|
24
|
-
<%= render 'facets', f: f %>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div role="tabpanel" class="tab-pane" id="results">
|
28
|
-
<%= field_set_tag do %>
|
29
|
-
<%= render 'document_index_view_types', f: f %>
|
30
|
-
<%= render 'default_per_page', f: f %>
|
31
|
-
<% end %>
|
32
|
-
|
33
|
-
<%= render 'sort', f: f %>
|
34
|
-
</div>
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
35
4
|
|
5
|
+
<%= configuration_page_title %>
|
6
|
+
<%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_search_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3 col-sm-3', control_col: 'col-md-5 col-sm-5' do |f| %>
|
7
|
+
|
8
|
+
<div role="tabpanel">
|
9
|
+
<ul class="nav nav-tabs" role="tablist">
|
10
|
+
<li role="presentation" class="nav-item">
|
11
|
+
<a href="#options" aria-controls="options" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.tab.options') %></a>
|
12
|
+
</li>
|
13
|
+
<li role="presentation" class="nav-item">
|
14
|
+
<a href="#facets" aria-controls="facets" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.tab.facets') %></a>
|
15
|
+
</li>
|
16
|
+
<li role="presentation" class="nav-item">
|
17
|
+
<a href="#results" aria-controls="results" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.tab.results') %></a>
|
18
|
+
</li>
|
19
|
+
</ul>
|
20
|
+
<div class="tab-content">
|
21
|
+
<div role="tabpanel" class="tab-pane active" id="options">
|
22
|
+
<%= render 'search_fields', f: f %>
|
36
23
|
</div>
|
37
|
-
</div>
|
38
24
|
|
39
|
-
|
40
|
-
|
41
|
-
|
25
|
+
<div role="tabpanel" class="tab-pane" id="facets">
|
26
|
+
<%= render 'facets', f: f %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div role="tabpanel" class="tab-pane" id="results">
|
30
|
+
<%= field_set_tag do %>
|
31
|
+
<%= render 'document_index_view_types', f: f %>
|
32
|
+
<%= render 'default_per_page', f: f %>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
<%= render 'sort', f: f %>
|
42
36
|
</div>
|
37
|
+
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="form-actions">
|
42
|
+
<div class="primary-actions">
|
43
|
+
<%= f.submit nil, class: 'btn btn-primary' %>
|
43
44
|
</div>
|
44
|
-
|
45
|
-
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<% end %>
|
@@ -12,16 +12,16 @@
|
|
12
12
|
<% end %>
|
13
13
|
<div role="tabpanel">
|
14
14
|
<ul class="nav nav-tabs" role="tablist">
|
15
|
-
<li role="presentation" class="
|
16
|
-
<a href="#search-description" aria-controls="search-description" role="tab" data-toggle="tab"><%= t(:'.search_description') %></a>
|
15
|
+
<li role="presentation" class="nav-item">
|
16
|
+
<a href="#search-description" aria-controls="search-description" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.search_description') %></a>
|
17
17
|
</li>
|
18
18
|
|
19
|
-
<li role="presentation">
|
20
|
-
<a href="#search-masthead" aria-controls="search-masthead" role="tab" data-toggle="tab"><%= t(:'.search_masthead') %></a>
|
19
|
+
<li role="presentation" class="nav-item">
|
20
|
+
<a href="#search-masthead" aria-controls="search-masthead" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_masthead') %></a>
|
21
21
|
</li>
|
22
22
|
|
23
|
-
<li role="presentation">
|
24
|
-
<a href="#search-thumbnail" aria-controls="search-thumbnail" role="tab" data-toggle="tab"><%= t(:'.search_thumbnail') %></a>
|
23
|
+
<li role="presentation" class="nav-item">
|
24
|
+
<a href="#search-thumbnail" aria-controls="search-thumbnail" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_thumbnail') %></a>
|
25
25
|
</li>
|
26
26
|
</ul>
|
27
27
|
|
@@ -38,11 +38,16 @@
|
|
38
38
|
<%= f.radio_button :default_index_view_type, view, label: view_label(view) %>
|
39
39
|
<% end %>
|
40
40
|
<% end %>
|
41
|
-
|
42
|
-
<div class="
|
43
|
-
|
41
|
+
<% unless @search.query_params.blank? %>
|
42
|
+
<div class="form-group row">
|
43
|
+
<label class="col-md-2 col-sm-2 form-control-label"><%= t(:".query_params") %></label>
|
44
|
+
<div class="col-md-7 col-sm-7">
|
45
|
+
<div class="appliedParams card card-body bg-light d-block">
|
46
|
+
<%= render_constraints(@search.query_params) %>
|
47
|
+
</div>
|
48
|
+
</div>
|
44
49
|
</div>
|
45
|
-
<% end
|
50
|
+
<% end %>
|
46
51
|
</div>
|
47
52
|
<div role="tabpanel" class="tab-pane" id="search-masthead">
|
48
53
|
<%= f.fields_for :masthead, (@search.masthead || @search.build_masthead) do |m| %>
|
@@ -1,29 +1,36 @@
|
|
1
1
|
<% search = f.object %>
|
2
2
|
<li class="dd-item dd3-item" data-id="<%= search.id %>">
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<div class="pic thumbnail">
|
9
|
-
<%= image_tag(search.thumbnail_image_url || 'spotlight/default_browse_thumbnail.jpg', class: 'img-responsive') %>
|
10
|
-
</div>
|
11
|
-
<div class="main">
|
12
|
-
<div class="title panel-title"><%= search.title %></div>
|
13
|
-
<div class="count"><%= t :'.item_count', count: search.documents.size %></div>
|
14
|
-
<div class="actions"><%= exhibit_view_link(search) %> • <%= exhibit_edit_link(search) %> • <%= exhibit_delete_link(search) %></div>
|
15
|
-
<%= f.hidden_field :id %>
|
16
|
-
<%= f.hidden_field :weight, data: {property: "weight"} %>
|
3
|
+
<div class="dd3-content card">
|
4
|
+
<div class="row search no-gutters">
|
5
|
+
<div class="col-md-2">
|
6
|
+
<%= image_tag(search.thumbnail_image_url || 'spotlight/default_browse_thumbnail.jpg', class: 'card-img') %>
|
17
7
|
</div>
|
8
|
+
<div class="col-md-7">
|
9
|
+
<div class="card-body pb-0">
|
10
|
+
<h4 class="card-title h6">
|
11
|
+
<%= f.check_box :published, inline: true, hide_label: true %>
|
12
|
+
<%= search.title %>
|
13
|
+
</h4>
|
18
14
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
15
|
+
<div class="card-text main">
|
16
|
+
<div class="count"><%= t :'.item_count', count: search.count %></div>
|
17
|
+
<div class="actions"><%= exhibit_view_link(search) %> • <%= exhibit_edit_link(search) %> • <%= exhibit_delete_link(search) %></div>
|
18
|
+
<%= f.hidden_field :id %>
|
19
|
+
<%= f.hidden_field :weight, data: {property: "weight"} %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="col-md-3">
|
24
|
+
<div class="card-body">
|
25
|
+
<div class="card-text description">
|
26
|
+
<% if search.long_description.present? %>
|
27
|
+
<%= truncate(search.long_description, length: 89) %>
|
28
|
+
<% else %>
|
29
|
+
<span class="missing-description"><%= t(:'.missing_description_html', link: (link_to action_label(search, :edit_long), [spotlight, :edit, search.exhibit, search])) %></span>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
</div>
|
25
33
|
</div>
|
26
|
-
|
27
34
|
</div>
|
28
|
-
|
35
|
+
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
29
36
|
</li>
|
@@ -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,35 +1,36 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<h3><%= t(:'.categories_header') %></h3>
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
<% unless @exhibit.searchable? %>
|
9
|
-
<p class="instructions alert-warning">
|
10
|
-
<%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
|
11
|
-
</p>
|
12
|
-
<% end %>
|
13
|
-
<% else %>
|
14
|
-
<p class="instructions"><%= t(:'.instructions') %></p>
|
15
|
-
<% unless @exhibit.searchable? %>
|
16
|
-
<p class="instructions alert-warning">
|
17
|
-
<%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
|
18
|
-
</p>
|
19
|
-
<% end %>
|
20
|
-
<%= bootstrap_form_for @exhibit, url: update_all_exhibit_searches_path(@exhibit), layout: :horizontal, control_col: 'col-sm-10' do |f| %>
|
5
|
+
<%= curation_page_title %>
|
6
|
+
<h3><%= t(:'.categories_header') %></h3>
|
21
7
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
8
|
+
<% if @searches.empty? %>
|
9
|
+
<%= t :'.no_saved_searches' %>
|
10
|
+
<% unless @exhibit.searchable? %>
|
11
|
+
<p class="instructions alert-warning">
|
12
|
+
<%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
|
13
|
+
</p>
|
14
|
+
<% end %>
|
15
|
+
<% else %>
|
16
|
+
<p class="instructions"><%= t(:'.instructions') %></p>
|
17
|
+
<% unless @exhibit.searchable? %>
|
18
|
+
<p class="instructions alert-warning">
|
19
|
+
<%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
|
20
|
+
</p>
|
21
|
+
<% end %>
|
22
|
+
<%= bootstrap_form_for @exhibit, url: update_all_exhibit_searches_path(@exhibit), layout: :horizontal, control_col: 'col-sm-10' do |f| %>
|
23
|
+
|
24
|
+
<div class="panel-group dd search_admin" id="nested-pages" data-behavior="nestable" data-max-depth="1">
|
25
|
+
<ol class="dd-list">
|
26
|
+
<%= f.fields_for :searches do |p| %>
|
27
|
+
<%= render partial: 'search', locals: { f: p} %>
|
28
|
+
<% end %>
|
29
|
+
</ol>
|
30
|
+
</div>
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<% end %>
|
32
|
+
<div class="float-right">
|
33
|
+
<%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
|
34
|
+
</div>
|
34
35
|
<% end %>
|
35
|
-
|
36
|
+
<% end %>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<h4 class="nav-heading"><%=t(:'spotlight.configuration.sidebar.header') %></h4>
|
2
|
-
<ul class="nav sidenav">
|
2
|
+
<ul class="nav sidenav flex-column">
|
3
3
|
<% if can? :update, current_exhibit %>
|
4
|
-
|
5
|
-
|
4
|
+
<%= nav_link t(:'spotlight.configuration.sidebar.settings'), spotlight.edit_exhibit_path(current_exhibit) %>
|
5
|
+
<%= nav_link t(:'spotlight.configuration.sidebar.appearance'), spotlight.edit_exhibit_appearance_path(current_exhibit) %>
|
6
6
|
<% end %>
|
7
7
|
<% if can? :manage, Spotlight::Role.new(resource: current_exhibit) %>
|
8
|
-
|
8
|
+
<%= nav_link t(:'spotlight.configuration.sidebar.users'), spotlight.exhibit_roles_path(current_exhibit) %>
|
9
9
|
<% end %>
|
10
10
|
<% if can? :update, current_exhibit.blacklight_configuration %>
|
11
|
-
|
12
|
-
|
11
|
+
<%= nav_link t(:'spotlight.configuration.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit) %>
|
12
|
+
<%= nav_link t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(current_exhibit) %>
|
13
13
|
<% end %>
|
14
14
|
</ul>
|
@@ -1,21 +1,20 @@
|
|
1
1
|
<h4 class="nav-heading"><%=t(:'spotlight.curation.sidebar.header') %></h4>
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
<ul class="nav sidenav flex-column">
|
4
|
+
<%= nav_link t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_path(current_exhibit) %>
|
4
5
|
<% if can? :tag, current_exhibit %>
|
5
|
-
|
6
|
+
<%= nav_link t(:'spotlight.curation.sidebar.tags'), spotlight.exhibit_tags_path(current_exhibit) %>
|
6
7
|
<% end %>
|
7
8
|
<% if can? :manage, Spotlight::Search.new(exhibit: current_exhibit) %>
|
8
|
-
|
9
|
+
<%= nav_link t(:'spotlight.curation.sidebar.browse'), spotlight.exhibit_searches_path(current_exhibit) %>
|
9
10
|
<% end %>
|
10
11
|
<% if can? :manage, Spotlight::FeaturePage.new(exhibit: current_exhibit) or can? :manage, current_exhibit.home_page %>
|
11
|
-
|
12
|
+
<%= nav_link t(:'spotlight.curation.sidebar.feature_pages'), spotlight.exhibit_feature_pages_path(current_exhibit), 'data-no-turbolink' => true %>
|
12
13
|
<% end %>
|
13
14
|
<% if can? :manage, Spotlight::AboutPage.new(exhibit: current_exhibit) %>
|
14
|
-
|
15
|
+
<%= nav_link t(:'spotlight.curation.sidebar.about_pages'), spotlight.exhibit_about_pages_path(current_exhibit), 'data-no-turbolink' => true %>
|
15
16
|
<% end %>
|
16
17
|
<% if (can? :manage, current_exhibit.translations.first_or_initialize) && current_exhibit.languages.any? %>
|
17
|
-
|
18
|
-
<%= link_to t(:'spotlight.curation.sidebar.translations'), spotlight.edit_exhibit_translations_path(current_exhibit), 'data-no-turbolink' => true %>
|
19
|
-
</li>
|
18
|
+
<%= nav_link t(:'spotlight.curation.sidebar.translations'), spotlight.edit_exhibit_translations_path(current_exhibit), 'data-no-turbolink' => true %>
|
20
19
|
<% end %>
|
21
20
|
</ul>
|
@@ -1,8 +1,6 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<%= render 'spotlight/shared/curation_sidebar' %>
|
8
|
-
</div>
|
1
|
+
<ul class="nav sidenav top-level flex-column">
|
2
|
+
<%= nav_link t(:'spotlight.curation.sidebar.dashboard'), spotlight.exhibit_dashboard_path(current_exhibit) %>
|
3
|
+
<%= nav_link t(:'spotlight.curation.sidebar.analytics'), spotlight.analytics_exhibit_dashboard_path(current_exhibit) %>
|
4
|
+
</ul>
|
5
|
+
<%= render 'spotlight/shared/configuration_sidebar' if can? :update, current_exhibit %>
|
6
|
+
<%= render 'spotlight/shared/curation_sidebar' %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% if current_exhibit && current_exhibit.languages.accessible_by(current_ability).any? %>
|
2
|
-
<li class="dropdown">
|
3
|
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
2
|
+
<li class="nav-item dropdown">
|
3
|
+
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
4
4
|
<%= Spotlight::Language.new(locale: I18n.locale).to_native %> <b class="caret"></b>
|
5
5
|
</a>
|
6
6
|
<ul class="dropdown-menu">
|
7
7
|
<% locale_selecter_dropown_options.each do |language| %>
|
8
8
|
<li>
|
9
|
-
<%= link_to language.to_native, (spotlight.url_for(locale: lanaguage.locale) rescue url_for(locale: language.locale)), class: 'dropdown-item' %>
|
9
|
+
<%= link_to language.to_native, (spotlight.url_for(locale: lanaguage.locale) rescue url_for(locale: language.locale)), class: 'dropdown-item', data: { turbolinks: false } %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
</ul>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="container">
|
2
|
-
<div class="row">
|
2
|
+
<div class="row justify-content-center">
|
3
3
|
<% contact_form ||= Spotlight::ContactForm.new current_url: request.original_url %>
|
4
|
-
<%= bootstrap_form_for contact_form, url: spotlight.exhibit_contact_form_path(current_exhibit, contact_form), layout: :horizontal, label_col: 'col-sm-3', control_col: 'col-sm-9', html: { class: 'col-md-offset-2 col-md-8 '} do |f| %>
|
4
|
+
<%= bootstrap_form_for contact_form, url: spotlight.exhibit_contact_form_path(current_exhibit, contact_form), layout: :horizontal, label_col: 'col-sm-3', control_col: 'col-sm-9', html: { class: 'col-md-offset-2 col-md-8 my-3 '} do |f| %>
|
5
5
|
|
6
6
|
<h2><%= t(:'.title') %></h2>
|
7
7
|
<%= f.text_field :name %>
|