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
@@ -4,13 +4,13 @@
|
|
4
4
|
<%= field.hidden_field :weight, 'data-property' => 'weight' %>
|
5
5
|
<div class="handle-wrap" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
|
6
6
|
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
7
|
-
<a href="#edit-in-place" class="field-label edit-in-place"><%= index_field_label(
|
8
|
-
<%= field.hidden_field :label, value: index_field_label(
|
7
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= index_field_label(blacklight_config.document_model.new, key) %></a>
|
8
|
+
<%= field.hidden_field :label, value: index_field_label(blacklight_config.document_model.new, key), class: 'form-control form-control-sm', data: {:"edit-field-target" => 'true'} %>
|
9
9
|
</div>
|
10
10
|
</td>
|
11
|
-
<td class="checkbox-cell text-center"><%= field.check_box :show, inline: true, checked: config.show, disabled: !config.immutable.show.nil?,
|
11
|
+
<td class="checkbox-cell text-center"><%= field.check_box :show, inline: true, checked: config.show, disabled: !config.immutable.show.nil?, hide_label: true %></td>
|
12
12
|
<% available_view_fields.keys.each do |type| %>
|
13
|
-
<td class="checkbox-cell text-center"><%= field.check_box type, inline: true, checked: config.send(type), disabled: !config.immutable.send(type).nil?,
|
13
|
+
<td class="checkbox-cell text-center"><%= field.check_box type, inline: true, checked: config.send(type), disabled: !config.immutable.send(type).nil?, hide_label: true %></td>
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
16
|
</tr>
|
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
3
5
|
<%= configuration_page_title %>
|
4
6
|
<%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_metadata_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3 col-sm-3', control_col: 'col-md-5 col-sm-5' do |f| %>
|
5
7
|
<h3><%= t(:'.order_header') %></h3>
|
@@ -43,7 +45,7 @@
|
|
43
45
|
<% end %>
|
44
46
|
|
45
47
|
|
46
|
-
<h3><%= t(:'.exhibit_specific.header') %></h3>
|
48
|
+
<h3 class="mt-4"><%= t(:'.exhibit_specific.header') %></h3>
|
47
49
|
<p class="instructions"><%= t(:'.exhibit_specific.instructions') %></p>
|
48
50
|
|
49
51
|
<table class="table table-striped" id="exhibit-specific-fields">
|
@@ -68,4 +70,3 @@
|
|
68
70
|
|
69
71
|
|
70
72
|
<%= exhibit_create_link Spotlight::CustomField.new, class: 'btn btn-primary' %>
|
71
|
-
</div>
|
@@ -1 +1 @@
|
|
1
|
-
<%= exhibit_edit_link @page, class: 'edit-button
|
1
|
+
<%= exhibit_edit_link @page, class: 'edit-button float-right btn btn-primary', data: { turbolinks: false } %>
|
@@ -18,16 +18,16 @@
|
|
18
18
|
|
19
19
|
<div role="tabpanel">
|
20
20
|
<ul class="nav nav-tabs" role="tablist">
|
21
|
-
<li role="presentation" class="
|
22
|
-
<a href="#page-content" aria-controls="page-content" role="tab" data-toggle="tab"><%= t(:'.page_content') %></a>
|
21
|
+
<li role="presentation" class="nav-item">
|
22
|
+
<a href="#page-content" class="nav-link active" aria-controls="page-content" role="tab" data-toggle="tab"><%= t(:'.page_content') %></a>
|
23
23
|
</li>
|
24
24
|
|
25
|
-
<li role="presentation">
|
26
|
-
<a href="#page-options" aria-controls="page-options" role="tab" data-toggle="tab"><%= t(:'.page_options') %></a>
|
25
|
+
<li role="presentation" class="nav-item">
|
26
|
+
<a href="#page-options" class="nav-link" aria-controls="page-options" role="tab" data-toggle="tab"><%= t(:'.page_options') %></a>
|
27
27
|
</li>
|
28
28
|
<% if @page.respond_to? :thumbnail %>
|
29
|
-
<li role="presentation">
|
30
|
-
<a href="#page-thumbnail" aria-controls="page-thumbnail" role="tab" data-toggle="tab"><%= t(:'.page_thumbnail') %></a>
|
29
|
+
<li role="presentation" class="nav-item">
|
30
|
+
<a href="#page-thumbnail" class="nav-link" aria-controls="page-thumbnail" role="tab" data-toggle="tab"><%= t(:'.page_thumbnail') %></a>
|
31
31
|
</li>
|
32
32
|
<% end %>
|
33
33
|
</ul>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<div role="tabpanel" class="tab-pane active" id="page-content">
|
37
37
|
<div class="form-group">
|
38
38
|
<%= f.label :title, class: 'sr-only' %>
|
39
|
-
<%= f.text_field_without_bootstrap :title, class: 'form-control
|
39
|
+
<%= f.text_field_without_bootstrap :title, class: 'form-control form-control-lg', placeholder: t(:'.title_placeholder') %>
|
40
40
|
</div>
|
41
41
|
<div class="form-group">
|
42
42
|
<%= f.label :content, class: 'sr-only' %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
</ol>
|
15
15
|
</div>
|
16
|
-
<div class="form-actions
|
16
|
+
<div class="form-actions float-right">
|
17
17
|
<div class="primary-actions">
|
18
18
|
<%= button_tag action_label(page_collection_name, :update_all), class: "btn btn-primary", disabled: disable_save_pages_button? %>
|
19
19
|
</div>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<div>
|
23
23
|
<%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name]), html: {class: "expanded-add-button"} do |f|%>
|
24
24
|
<a href='#add-new' class="btn btn-primary" data-turbolinks="false" data-expanded-add-button="true" data-field-target="[data-title-field]">
|
25
|
-
<%= t(:'.new_page') %>
|
25
|
+
<%= t(:'.new_page') %> <%= blacklight_icon('chevron_right') %>
|
26
26
|
<span data-title-field="true" class="input-field">
|
27
27
|
<%= f.text_field(:title) %>
|
28
28
|
<%= f.submit t(:'.save'), data: {behavior: "save"} %>
|
@@ -1,18 +1,19 @@
|
|
1
1
|
<% page = f.object %>
|
2
2
|
<li class="dd-item dd3-item" data-id="<%= page.id %>">
|
3
|
-
<div class="dd3-content
|
3
|
+
<div class="dd3-content card page-admin">
|
4
4
|
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
5
|
-
|
6
|
-
<div class="publish-control">
|
7
|
-
<%= f.check_box :published, label: '' %>
|
8
|
-
</div>
|
9
|
-
<div class="main row">
|
5
|
+
<div class="card-body main row page">
|
10
6
|
<div class="col-sm-8">
|
11
7
|
<%= f.hidden_field :id %>
|
12
8
|
<%= f.hidden_field :weight, data: {property: "weight"} %>
|
13
|
-
<h3 class="
|
14
|
-
<
|
15
|
-
|
9
|
+
<h3 class="h6 card-title">
|
10
|
+
<span class="publish-control">
|
11
|
+
<%= f.check_box :published, inline: true, hide_label: true %>
|
12
|
+
</span>
|
13
|
+
<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']">
|
14
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= page.title %></a>
|
15
|
+
<%= f.hidden_field :title, value: page.title , class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true'} %>
|
16
|
+
</span>
|
16
17
|
</h3>
|
17
18
|
</div>
|
18
19
|
|
@@ -24,10 +25,9 @@
|
|
24
25
|
<%- if page.feature_page? -%>
|
25
26
|
<%= f.hidden_field :parent_page_id, data: {property: "parent_page"} %>
|
26
27
|
<% end %>
|
27
|
-
|
28
|
-
</div>
|
29
28
|
</div>
|
30
29
|
</div>
|
30
|
+
|
31
31
|
<% if page.feature_page? and page.child_pages.present? %>
|
32
32
|
<ol class="dd-list">
|
33
33
|
<% page.child_pages.each do |child_page| %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<span class="sr-only"><%= t('blacklight.search.view_title') %></span>
|
5
5
|
<div class="view-type-group btn-group">
|
6
6
|
<% views.each do |view, config| %>
|
7
|
-
<%= link_to url_for(search_state.to_h.merge(view: view)), :title => t("blacklight.search.view_title.#{view}", default: t("blacklight.search.view.#{view}", default: blacklight_config.view[view].title)), :class => "btn btn-
|
7
|
+
<%= link_to url_for(search_state.to_h.merge(view: view)), :title => t("blacklight.search.view_title.#{view}", default: t("blacklight.search.view.#{view}", default: blacklight_config.view[view].title)), :class => "btn btn-secondary view-type-#{ view.to_s.parameterize } #{"active" if block_document_index_view_type(block) == view}" do %>
|
8
8
|
<%= render_view_type_group_icon view %>
|
9
9
|
<span class="caption"><%= t("blacklight.search.view.#{view}") %></span>
|
10
10
|
<% end %>
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= render 'order_pages' %>
|
@@ -1,9 +1,11 @@
|
|
1
1
|
<% set_html_page_title @page.title if @page.should_display_title? %>
|
2
2
|
<% render 'tophat' %>
|
3
|
-
<%= render 'sidebar' if @page.display_sidebar? %>
|
4
3
|
|
5
|
-
|
6
|
-
|
4
|
+
<% content_for(:sidebar) do %>
|
5
|
+
<%= render 'sidebar' %>
|
6
|
+
<% end if @page.display_sidebar?%>
|
7
|
+
|
8
|
+
<%= cache_unless current_user, [@page, request.query_string] do %>
|
7
9
|
<div class="clearfix">
|
8
10
|
<%= render 'edit_page_link' if can? :edit, @page %>
|
9
11
|
<% if @page.should_display_title? %>
|
@@ -19,5 +21,4 @@
|
|
19
21
|
<%= render 'empty' %>
|
20
22
|
<% end %>
|
21
23
|
</div>
|
22
|
-
</div>
|
23
24
|
<% end %>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<div role="tabpanel">
|
6
6
|
<ul class="nav nav-pills" role="tablist">
|
7
7
|
<% Spotlight::Engine.config.external_resources_partials.each_with_index do |p, i| %>
|
8
|
-
<li role="presentation" class="<%= "active" if i == 0 %>">
|
9
|
-
<%= link_to t("#{p.gsub('/', '.')}.title"), "#external_resource_tab_#{i}", role: 'tab', 'data-toggle' => 'tab', 'aria-controls' => "external_resource_tab_#{i}" %>
|
8
|
+
<li role="presentation" class="nav-item <%= "active" if i == 0 %>">
|
9
|
+
<%= link_to t("#{p.gsub('/', '.')}.title"), "#external_resource_tab_#{i}", class: 'nav-link', role: 'tab', 'data-toggle' => 'tab', 'aria-controls' => "external_resource_tab_#{i}" %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
</ul>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= f.text_field :url %>
|
3
3
|
<div class="form-actions">
|
4
4
|
<div class="primary-actions">
|
5
|
-
<%= cancel_link @resource, :back, class: 'btn btn-
|
5
|
+
<%= cancel_link @resource, :back, class: 'btn btn-secondary' %>
|
6
6
|
<%= f.submit t('.add_item'), class: 'btn btn-primary' %>
|
7
7
|
</div>
|
8
8
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= f.url_field :url, type: "file", help: t('.help_html', link: link_to(t('.template'), template_exhibit_resources_csv_uploads_path)), label: t('.file_label') %>
|
3
3
|
<div class="form-actions">
|
4
4
|
<div class="primary-actions">
|
5
|
-
<%= cancel_link @resource, :back, class: 'btn btn-
|
5
|
+
<%= cancel_link @resource, :back, class: 'btn btn-secondary' %>
|
6
6
|
<%= f.submit t('.add_item'), class: 'btn btn-primary' %>
|
7
7
|
</div>
|
8
8
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= f.text_field :url, help: t('.url-field.help'), label: t('.manifest') %>
|
3
3
|
<div class="form-actions">
|
4
4
|
<div class="primary-actions">
|
5
|
-
<%= cancel_link @resource, :back, class: 'btn btn-
|
5
|
+
<%= cancel_link @resource, :back, class: 'btn btn-secondary' %>
|
6
6
|
<%= f.submit t('.add_item'), class: 'btn btn-primary' %>
|
7
7
|
</div>
|
8
8
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<%= f.url_field :json, type: "file", label: t('.file_label') %>
|
4
4
|
<div class="form-actions">
|
5
5
|
<div class="primary-actions">
|
6
|
-
<%= cancel_link @resource, :back, class: 'btn btn-
|
6
|
+
<%= cancel_link @resource, :back, class: 'btn btn-secondary' %>
|
7
7
|
<%= f.submit t('.add_item'), class: 'btn btn-primary' %>
|
8
8
|
</div>
|
9
9
|
</div>
|
@@ -1,26 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= curation_page_title %>
|
6
|
+
<div role="tabpanel">
|
7
|
+
<ul class="nav nav-tabs" role="tablist">
|
8
|
+
<% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
|
9
|
+
<% tab_name = p.split('/')[2] %>
|
10
|
+
<li role="presentation" class="nav-item <%= "active" if @tab == tab_name %>">
|
11
|
+
<%= link_to t("#{p.gsub('/', '.')}.title"),
|
12
|
+
"##{tab_name}",
|
13
|
+
role: 'tab',
|
14
|
+
class: 'nav-link',
|
15
|
+
'data-toggle' => 'tab',
|
16
|
+
'aria-controls' => "#{tab_name}" %>
|
17
|
+
</li>
|
18
|
+
<% end %>
|
19
|
+
</ul>
|
20
|
+
<div class="tab-content">
|
21
|
+
<% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
|
22
|
+
<% tab_name = p.split('/')[2] %>
|
23
|
+
<%= content_tag :div, id: "#{tab_name}", role: 'tabpanel', class: "tab-pane #{"active" if @tab == tab_name}" do %>
|
24
|
+
<%= render p %>
|
15
25
|
<% end %>
|
16
|
-
|
17
|
-
<div class="tab-content">
|
18
|
-
<% Spotlight::Engine.config.resource_partials.each_with_index do |p, i| %>
|
19
|
-
<% tab_name = p.split('/')[2] %>
|
20
|
-
<%= content_tag :div, id: "#{tab_name}", role: 'tabpanel', class: "tab-pane #{"active" if @tab == tab_name}" do %>
|
21
|
-
<%= render p %>
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
</div>
|
26
|
+
<% end %>
|
25
27
|
</div>
|
26
28
|
</div>
|
@@ -12,8 +12,8 @@
|
|
12
12
|
<div class="form-actions">
|
13
13
|
<div class="primary-actions">
|
14
14
|
<%= hidden_field_tag :tab, 'upload' %>
|
15
|
-
<%= cancel_link @resource, :back, class: 'btn btn-
|
16
|
-
<%= f.submit t('.add_item_and_continue'), name: 'add-and-continue', class: 'btn btn-
|
15
|
+
<%= cancel_link @resource, :back, class: 'btn btn-secondary' %>
|
16
|
+
<%= f.submit t('.add_item_and_continue'), name: 'add-and-continue', class: 'btn btn-secondary' %>
|
17
17
|
<%= f.submit t('.add_item'), class: 'btn btn-primary' %>
|
18
18
|
</div>
|
19
19
|
</div>
|
@@ -1,62 +1,65 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= configuration_page_title %>
|
6
|
+
<%= bootstrap_form_for current_exhibit, url: spotlight.update_all_exhibit_roles_path(current_exhibit) do |f| %>
|
7
|
+
<table class="table table-striped users">
|
8
|
+
<thead>
|
9
|
+
<th><%= t '.email' %></th>
|
10
|
+
<th><%= t '.role' %></th>
|
11
|
+
<th><%= t '.actions' %></th>
|
12
|
+
</thead>
|
13
|
+
<tbody>
|
14
|
+
<%= f.fields_for :roles do |r| %>
|
15
|
+
<% if r.object.new_record? %>
|
16
|
+
<%= render partial: 'edit_fields', locals: {f: r} %>
|
17
|
+
<tr data-edit-for="new">
|
18
|
+
<td></td>
|
19
|
+
<td colspan=2>
|
20
|
+
<div class="form-actions">
|
21
|
+
<div class="primary-actions">
|
22
|
+
<%= cancel_link r.object, '#', class: 'btn btn-link', data: {behavior: 'cancel-edit' } %>
|
23
|
+
<%=f.submit nil, class: 'btn btn-primary'%>
|
23
24
|
</div>
|
24
|
-
</
|
25
|
-
</
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
25
|
+
</div>
|
26
|
+
</td>
|
27
|
+
</tr>
|
28
|
+
<% else %>
|
29
|
+
<tr data-show-for="<%= r.object.id %>" class="<%= 'invite-pending' if r.object.user.invite_pending? %>">
|
30
|
+
<td>
|
31
|
+
<%= r.object.user.to_s %>
|
32
|
+
<span class='badge badge-warning pending-label'><%= t('.invite_pending') %></span>
|
33
|
+
</td>
|
34
|
+
<td><%= r.object.role.humanize %></td>
|
35
|
+
<td>
|
36
|
+
<%= link_to "#", data: {behavior: 'edit-user', target: r.object.id } do %>
|
37
|
+
<%= blacklight_icon('edit') %>
|
38
|
+
<% end %>
|
39
|
+
</td>
|
40
|
+
</tr>
|
41
|
+
<%= render partial: 'edit_fields', locals: {f: r} %>
|
42
|
+
<tr data-edit-for="<%= r.object.id %>">
|
43
|
+
<td><%= f.submit action_label(r.object, :destroy), class: 'btn btn-danger', data: { behavior: 'destroy-user', target: r.object.id} %>
|
44
|
+
<%= r.hidden_field :_destroy, data: {'destroy-for' => r.object.id} %>
|
45
|
+
</td>
|
46
|
+
<td colspan=2>
|
47
|
+
<div class="form-actions">
|
48
|
+
<div class="primary-actions">
|
49
|
+
<%= cancel_link r.object, '#', class: 'btn btn-link', data: {behavior: 'cancel-edit' } %>
|
50
|
+
<%=f.submit nil, class: 'btn btn-primary'%>
|
48
51
|
</div>
|
49
|
-
</
|
50
|
-
</
|
51
|
-
|
52
|
+
</div>
|
53
|
+
</td>
|
54
|
+
</tr>
|
52
55
|
<% end %>
|
53
|
-
|
54
|
-
</
|
56
|
+
<% end %>
|
57
|
+
</tbody>
|
58
|
+
</table>
|
55
59
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
</div>
|
60
|
+
<div class="form-actions">
|
61
|
+
<div class="primary-actions">
|
62
|
+
<%= exhibit_create_link Spotlight::Role.new, '#', class: 'btn btn-secondary', data: {behavior: 'new-user'} %>
|
60
63
|
</div>
|
61
|
-
|
62
|
-
|
64
|
+
</div>
|
65
|
+
<% end %>
|
@@ -7,6 +7,8 @@
|
|
7
7
|
<%= content_tag :span, t(:'.value_count', count: metadata[:value_count]) %>
|
8
8
|
<% end %>
|
9
9
|
<% if metadata[:terms].any? %>
|
10
|
-
<%=
|
10
|
+
<%= content_tag("span", class: 'btn-with-tooltip', data: {container: 'body', toggle: 'tooltip', placement: 'top', title: metadata[:terms].join(" • ")}) do %>
|
11
|
+
<%= blacklight_icon('info') %>
|
12
|
+
<% end %>
|
11
13
|
<% end %>
|
12
14
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<p class="instructions"><%=t(:'.help') %></p>
|
2
|
-
<div class="
|
2
|
+
<div class="dd facet_fields" id="nested-fields" data-behavior="nestable" data-max-depth="1">
|
3
3
|
<ol class="dd-list">
|
4
4
|
<%= f.fields_for :facet_fields do |idxf| %>
|
5
5
|
<% @blacklight_configuration.blacklight_config.facet_fields.select { |k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) }.each do |key, config| %>
|
@@ -8,36 +8,37 @@
|
|
8
8
|
<li class="dd-item" data-id="<%= key.parameterize %>">
|
9
9
|
<div class="dd-handle dd3-handle"><%= t :drag %></div>
|
10
10
|
<%= idxf.fields_for key do |facet| %>
|
11
|
-
<div class="dd3-content
|
12
|
-
<div class="
|
13
|
-
<%= facet.hidden_field :weight, 'data-property' => 'weight' %>
|
14
|
-
<%= facet.check_box :show, checked: config.show, label: "", title: key %>
|
11
|
+
<div class="dd3-content facet-config-<%= key.parameterize %>">
|
12
|
+
<div class="page">
|
15
13
|
<div class="main row">
|
16
|
-
<div class="col-sm-
|
17
|
-
<h3 class="
|
18
|
-
|
19
|
-
<%= facet.
|
14
|
+
<div class="col-sm-4">
|
15
|
+
<h3 class="h6">
|
16
|
+
<%= facet.hidden_field :weight, 'data-property' => 'weight' %>
|
17
|
+
<%= facet.check_box :show, checked: config.show, hide_label: true, title: key %>
|
18
|
+
<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']">
|
19
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= facet_field_label(key) %></a>
|
20
|
+
<%= facet.hidden_field :label, value: facet_field_label(key), class: 'form-control form-control-sm', data: {:"edit-field-target" => 'true'} %>
|
21
|
+
</span>
|
20
22
|
</h3>
|
21
23
|
</div>
|
22
24
|
<div class="facet-metadata col-sm-5">
|
23
25
|
<%= render partial: 'facet_metadata', locals: { metadata: metadata } %>
|
24
26
|
</div>
|
25
|
-
<div class="col-sm-
|
27
|
+
<div class="col-sm-3 float-right">
|
26
28
|
<a class="btn btn-link collapse-toggle collapsed" role="button" data-toggle="collapse" href="#<%= key.parameterize %>_facet_options" aria-expanded="false" aria-controls="<%= key.parameterize %>_facet_options">
|
27
29
|
Options
|
28
30
|
</a>
|
31
|
+
<span class="collapse-chevron">❯</span>
|
29
32
|
</div>
|
30
33
|
</div>
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
</div>
|
34
|
+
</div>
|
35
|
+
<div id="<%= key.parameterize %>_facet_options" class="options collapse">
|
36
|
+
<%= facet.form_group :terms, label_col: 'col-md-2 offset-md-1', label: { text: t(:'.sort_by.label') } do %>
|
37
|
+
<%= facet.radio_button :sort, 'count', label: t(:'.sort_by.count'), inline: true, checked: (config.sort.to_s == 'count' || config.sort.nil?) %>
|
38
|
+
<%= facet.radio_button :sort, 'index', label: t(:'.sort_by.index'), inline: true, checked: (config.sort.to_s == 'index') %>
|
39
|
+
<% end %>
|
38
40
|
</div>
|
39
41
|
</div>
|
40
|
-
</div>
|
41
42
|
<% end %>
|
42
43
|
</li>
|
43
44
|
<% end %>
|