blacklight-spotlight 0.8.2 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +4 -2
  3. data/app/assets/stylesheets/spotlight/_footer.scss +1 -1
  4. data/app/assets/stylesheets/spotlight/_header.scss +0 -40
  5. data/app/controllers/spotlight/appearances_controller.rb +2 -2
  6. data/app/controllers/spotlight/custom_fields_controller.rb +1 -1
  7. data/app/controllers/spotlight/dashboards_controller.rb +11 -0
  8. data/app/controllers/spotlight/exhibits_controller.rb +2 -2
  9. data/app/controllers/spotlight/metadata_configurations_controller.rb +2 -2
  10. data/app/controllers/spotlight/roles_controller.rb +2 -2
  11. data/app/controllers/spotlight/search_configurations_controller.rb +2 -2
  12. data/app/helpers/spotlight/title_helper.rb +2 -2
  13. data/app/models/concerns/spotlight/solr_document.rb +10 -4
  14. data/app/models/concerns/spotlight/solr_document/finder.rb +14 -0
  15. data/app/models/spotlight/ability.rb +1 -3
  16. data/app/models/spotlight/blacklight_configuration.rb +2 -2
  17. data/app/models/spotlight/custom_field.rb +37 -15
  18. data/app/models/spotlight/solr_document_sidecar.rb +16 -1
  19. data/app/views/shared/_breadcrumbs.html.erb +5 -1
  20. data/app/views/shared/_exhibit_masthead.html.erb +0 -17
  21. data/app/views/shared/_footer.html.erb +1 -1
  22. data/app/views/spotlight/about_pages/index.html.erb +1 -1
  23. data/app/views/spotlight/appearances/edit.html.erb +2 -2
  24. data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
  25. data/app/views/spotlight/catalog/admin.html.erb +1 -1
  26. data/app/views/spotlight/catalog/new.html.erb +1 -1
  27. data/app/views/spotlight/contacts/edit.html.erb +1 -1
  28. data/app/views/spotlight/contacts/new.html.erb +1 -1
  29. data/app/views/spotlight/custom_fields/edit.html.erb +3 -3
  30. data/app/views/spotlight/custom_fields/new.html.erb +3 -4
  31. data/app/views/spotlight/dashboards/_analytics.html.erb +1 -3
  32. data/app/views/spotlight/dashboards/analytics.html.erb +15 -0
  33. data/app/views/spotlight/dashboards/show.html.erb +1 -3
  34. data/app/views/spotlight/exhibits/edit.html.erb +2 -2
  35. data/app/views/spotlight/exhibits/new.html.erb +1 -1
  36. data/app/views/spotlight/home_pages/_empty.html.erb +3 -3
  37. data/app/views/spotlight/metadata_configurations/edit.html.erb +2 -2
  38. data/app/views/spotlight/pages/index.html.erb +1 -1
  39. data/app/views/spotlight/resources/upload/new.html.erb +1 -1
  40. data/app/views/spotlight/roles/index.html.erb +2 -2
  41. data/app/views/spotlight/search_configurations/edit.html.erb +2 -2
  42. data/app/views/spotlight/searches/edit.html.erb +1 -1
  43. data/app/views/spotlight/searches/index.html.erb +4 -4
  44. data/app/views/spotlight/shared/_configuration_sidebar.html.erb +14 -0
  45. data/app/views/spotlight/shared/_curation_sidebar.html.erb +16 -26
  46. data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +8 -0
  47. data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -1
  48. data/app/views/spotlight/tags/index.html.erb +1 -1
  49. data/config/locales/spotlight.en.yml +12 -16
  50. data/config/routes.rb +3 -1
  51. data/db/migrate/20151124101123_remove_default_from_spotlight_exhibit.rb +13 -0
  52. data/db/migrate/20151124105543_update_custom_field_names.rb +31 -0
  53. data/lib/generators/spotlight/templates/catalog_controller.rb +1 -1
  54. data/lib/spotlight/engine.rb +4 -0
  55. data/lib/spotlight/version.rb +1 -1
  56. data/spec/controllers/spotlight/appearances_controller_spec.rb +1 -1
  57. data/spec/controllers/spotlight/custom_fields_controller_spec.rb +4 -4
  58. data/spec/controllers/spotlight/dashboards_controller_spec.rb +15 -0
  59. data/spec/controllers/spotlight/exhibits_controller_spec.rb +2 -2
  60. data/spec/controllers/spotlight/metadata_configurations_controller_spec.rb +1 -1
  61. data/spec/controllers/spotlight/roles_controller_spec.rb +1 -1
  62. data/spec/controllers/spotlight/search_configurations_controller_spec.rb +2 -2
  63. data/spec/features/create_exhibit_spec.rb +1 -1
  64. data/spec/features/edit_search_fields_spec.rb +4 -4
  65. data/spec/features/exhibits/administration_spec.rb +1 -1
  66. data/spec/features/exhibits/custom_metadata_fields_spec.rb +1 -1
  67. data/spec/features/exhibits/edit_metadata_fields_spec.rb +1 -1
  68. data/spec/features/import_exhibit_spec.rb +2 -2
  69. data/spec/features/javascript/search_config_admin_spec.rb +7 -7
  70. data/spec/features/metadata_admin_spec.rb +2 -2
  71. data/spec/helpers/spotlight/title_helper_spec.rb +4 -4
  72. data/spec/lib/spotlight/catalog/access_controls_enforcement_spec.rb +1 -1
  73. data/spec/models/solr_document_spec.rb +29 -4
  74. data/spec/models/spotlight/blacklight_configuration_spec.rb +4 -4
  75. data/spec/models/spotlight/custom_field_spec.rb +48 -25
  76. data/spec/models/spotlight/resources/upload_spec.rb +1 -1
  77. data/spec/models/spotlight/solr_document_sidecar_spec.rb +1 -1
  78. data/spec/test_app_templates/catalog_controller.rb +1 -1
  79. data/spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb +0 -1
  80. data/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +33 -0
  81. data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +1 -1
  82. data/spec/views/spotlight/searches/index.html.erb_spec.rb +3 -3
  83. data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +20 -0
  84. metadata +11 -5
  85. data/app/views/spotlight/shared/_admin_sidebar.html.erb +0 -10
  86. data/spec/features/multiple_exhibits_spec.rb +0 -27
@@ -1,6 +1,6 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= administration_page_title %>
3
+ <%= configuration_page_title %>
4
4
 
5
5
  <%= bootstrap_form_for @exhibit, url: spotlight.exhibit_appearance_path(@exhibit), layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-5', html: {data: { autocomplete_exhibit_catalog_index_path: spotlight.autocomplete_exhibit_catalog_index_path(current_exhibit, q: "%QUERY", format: "json") } } do |f| %>
6
6
  <% if @exhibit.errors.any? %>
@@ -26,7 +26,7 @@
26
26
  <% unless field.configured_to_display? %>
27
27
  <p class="bg-warning help-block">
28
28
  <%= t(:'.blank_field_warning_html',
29
- link: link_to(t(:'spotlight.curation.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit))) %>
29
+ link: link_to(t(:'spotlight.configuration.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit))) %>
30
30
  </p>
31
31
  <% end %>
32
32
  </div>
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
 
4
4
  <%= curation_page_title %>
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <% Spotlight::Engine.config.new_resource_partials.each do |p| %>
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <%= render 'form' %>
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <%= render 'form' %>
@@ -1,5 +1,5 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= curation_page_title %>
4
- <%= render 'form' %>
3
+ <%= configuration_page_title %>
4
+ <%= render 'form' %>
5
5
  </div>
@@ -1,6 +1,5 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= curation_page_title %>
4
-
5
- <%= render 'form' %>
3
+ <%= configuration_page_title %>
4
+ <%= render 'form' %>
6
5
  </div>
@@ -1,6 +1,5 @@
1
1
  <%= cache current_exhibit, expires_in: 1.hour do %>
2
- <% if Spotlight::Engine.config.analytics_provider and Spotlight::Engine.config.analytics_provider.enabled? %>
3
- <h3><%= t :'.header' %></h3>
2
+ <h3><%= t :'.monthly_header' %></h3>
4
3
  <table class="table analytics">
5
4
  <tr>
6
5
  <% Spotlight::Engine.config.analytics_provider.metrics.elements.each do |e| %>
@@ -33,5 +32,4 @@
33
32
  <% end %>
34
33
  </table>
35
34
  <% end %>
36
- <% end %>
37
35
  <% end %>
@@ -0,0 +1,15 @@
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
+
3
+ <div id="content" class="col-md-9">
4
+ <%= curation_page_title %>
5
+
6
+ <% if Spotlight::Engine.config.analytics_provider and Spotlight::Engine.config.analytics_provider.enabled? %>
7
+ <%= render 'analytics' %>
8
+ <% else %>
9
+ <div class="empty-page-block">
10
+ <% unless current_user %>
11
+ <p>In order to view exhibit analytics, the site administrator must <a href="https://github.com/sul-dlss/spotlight/wiki/Installation">configure an analytics provider.</a></p>
12
+ <% end %>
13
+ </div>
14
+ <% end %>
15
+ </div>
@@ -1,10 +1,8 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
 
3
3
  <div id="content" class="col-md-9">
4
4
  <%= curation_page_title %>
5
5
 
6
- <%= render 'analytics' %>
7
-
8
6
  <div class="pageHistory clearfix">
9
7
  <%= render 'page_activity' %>
10
8
  </div>
@@ -1,6 +1,6 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9 exhibit-admin">
3
- <%= administration_page_title %>
3
+ <%= configuration_page_title %>
4
4
  <div role="tabpanel">
5
5
  <ul class="nav nav-tabs" role="tablist">
6
6
  <li role="presentation" class="active">
@@ -1,4 +1,4 @@
1
1
  <div id="content" class="col-md-9 exhibit-admin">
2
- <%= administration_page_title %>
2
+ <%= configuration_page_title %>
3
3
  <%= render 'new_exhibit_form' %>
4
4
  </div>
@@ -10,13 +10,13 @@
10
10
 
11
11
  <ol>
12
12
  <% if can? :update, current_exhibit %>
13
- <li>Visit the <%= link_to "Administrative Dashboard Settings", edit_exhibit_path(current_exhibit) %> page to configure the exhibit title and subtitle.</li>
13
+ <li>Visit the <%= link_to "Configuration > General", edit_exhibit_path(current_exhibit) %> page to configure the exhibit title and subtitle.</li>
14
14
 
15
- <li>Next, go to the <%= link_to "Administration > Appearance", edit_exhibit_appearance_path(current_exhibit) %> page to add a site masthead image and configure other appearance options.</li>
15
+ <li>Next, go to the <%= link_to "Configuration > Appearance", edit_exhibit_appearance_path(current_exhibit) %> page to add a site masthead image and configure other appearance options.</li>
16
16
  <% end %>
17
17
 
18
18
  <% if can? :manage, Spotlight::Role.new(exhibit: current_exhibit) %>
19
- <li>If you want help building the exhibit, use the <%= link_to "Administration > Users", exhibit_roles_path(current_exhibit) %> page to add other user accounts.</li>
19
+ <li>If you want help building the exhibit, use the <%= link_to "Configuration > Users", exhibit_roles_path(current_exhibit) %> page to add other user accounts.</li>
20
20
  <% end %>
21
21
 
22
22
  <% unless Spotlight::Engine.config.resource_providers.any? %>
@@ -1,6 +1,6 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= curation_page_title %>
3
+ <%= configuration_page_title %>
4
4
  <%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_metadata_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-5' do |f| %>
5
5
  <h3><%= t(:'.order_header') %></h3>
6
6
 
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= render 'order_pages' %>
4
4
  </div>
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <div role="tabpanel" class="item-upload-tabs">
@@ -1,6 +1,6 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= administration_page_title %>
3
+ <%= configuration_page_title %>
4
4
  <%= bootstrap_form_for @exhibit, url: spotlight.update_all_exhibit_roles_path(@exhibit) do |f| %>
5
5
 
6
6
  <table class="table table-striped users">
@@ -1,6 +1,6 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
- <%= curation_page_title %>
3
+ <%= configuration_page_title %>
4
4
  <%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_search_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-5' do |f| %>
5
5
 
6
6
  <div role="tabpanel">
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <%= render 'form' %>
@@ -1,20 +1,20 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title %>
4
4
  <h3><%= header_with_count(t(:'.categories_header'), @searches.count) %></h3>
5
-
5
+
6
6
  <% if @searches.empty? %>
7
7
  <%= t :'.no_saved_searches' %>
8
8
  <% unless @exhibit.searchable? %>
9
9
  <p class="instructions alert-warning">
10
- <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.administration.sidebar.appearance'), spotlight.edit_exhibit_appearance_path(@exhibit))) %>
10
+ <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
11
11
  </p>
12
12
  <% end %>
13
13
  <% else %>
14
14
  <p class="instructions"><%= t(:'.instructions') %></p>
15
15
  <% unless @exhibit.searchable? %>
16
16
  <p class="instructions alert-warning">
17
- <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.administration.sidebar.appearance'), spotlight.edit_exhibit_appearance_path(@exhibit))) %>
17
+ <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
18
18
  </p>
19
19
  <% end %>
20
20
  <%= bootstrap_form_for @exhibit, url: update_all_exhibit_searches_path(@exhibit), layout: :horizontal, control_col: 'col-sm-10' do |f| %>
@@ -0,0 +1,14 @@
1
+ <h4><%=t(:'spotlight.configuration.sidebar.header') %></h4>
2
+ <ul class="nav sidenav">
3
+ <% if can? :update, current_exhibit %>
4
+ <li><%= link_to t(:'spotlight.configuration.sidebar.settings'), spotlight.edit_exhibit_path(current_exhibit) %></li>
5
+ <li><%= link_to t(:'spotlight.configuration.sidebar.appearance'), spotlight.edit_exhibit_appearance_path(current_exhibit) %></li>
6
+ <% end %>
7
+ <% if can? :manage, Spotlight::Role.new(exhibit: current_exhibit) %>
8
+ <li><%= link_to t(:'spotlight.configuration.sidebar.users'), spotlight.exhibit_roles_path(current_exhibit) %></li>
9
+ <% end %>
10
+ <% if can? :update, current_exhibit.blacklight_configuration %>
11
+ <li><%= link_to t(:'spotlight.configuration.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit) %></li>
12
+ <li><%= link_to t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(current_exhibit) %></li>
13
+ <% end %>
14
+ </ul>
@@ -1,26 +1,16 @@
1
- <div id="sidebar" class="col-md-3" role="complementary">
2
- <ul class="nav sidenav">
3
- <li class="dashboard"><%= link_to t(:'spotlight.curation.sidebar.dashboard'), spotlight.exhibit_dashboard_path(current_exhibit) %></li>
4
- </ul>
5
- <%= render 'spotlight/shared/admin_sidebar' if can? :update, current_exhibit %>
6
- <h4><%=t(:'spotlight.curation.sidebar.header') %></h4>
7
- <ul class="nav sidenav">
8
- <li><%= link_to t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_index_path(current_exhibit) %></li>
9
- <% if can? :tag, current_exhibit %>
10
- <li><%= link_to t(:'spotlight.curation.sidebar.tags'), spotlight.exhibit_tags_path(current_exhibit) %></li>
11
- <% end %>
12
- <% if can? :update, current_exhibit.blacklight_configuration %>
13
- <li><%= link_to t(:'spotlight.curation.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit) %></li>
14
- <li><%= link_to t(:'spotlight.curation.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(current_exhibit) %></li>
15
- <% end %>
16
- <% if can? :manage, Spotlight::Search.new(exhibit: current_exhibit) %>
17
- <li><%= link_to t(:'spotlight.curation.sidebar.browse'), spotlight.exhibit_searches_path(current_exhibit) %></li>
18
- <% end %>
19
- <% if can? :manage, Spotlight::FeaturePage.new(exhibit: current_exhibit) or can? :manage, current_exhibit.home_page %>
20
- <li><%= link_to t(:'spotlight.curation.sidebar.feature_pages'), spotlight.exhibit_feature_pages_path(current_exhibit), 'data-no-turbolink' => true %></li>
21
- <% end %>
22
- <% if can? :manage, Spotlight::AboutPage.new(exhibit: current_exhibit) %>
23
- <li><%= link_to t(:'spotlight.curation.sidebar.about_pages'), spotlight.exhibit_about_pages_path(current_exhibit), 'data-no-turbolink' => true %></li>
24
- <% end %>
25
- </ul>
26
- </div>
1
+ <h4><%=t(:'spotlight.curation.sidebar.header') %></h4>
2
+ <ul class="nav sidenav">
3
+ <li><%= link_to t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_index_path(current_exhibit) %></li>
4
+ <% if can? :tag, current_exhibit %>
5
+ <li><%= link_to t(:'spotlight.curation.sidebar.tags'), spotlight.exhibit_tags_path(current_exhibit) %></li>
6
+ <% end %>
7
+ <% if can? :manage, Spotlight::Search.new(exhibit: current_exhibit) %>
8
+ <li><%= link_to t(:'spotlight.curation.sidebar.browse'), spotlight.exhibit_searches_path(current_exhibit) %></li>
9
+ <% end %>
10
+ <% if can? :manage, Spotlight::FeaturePage.new(exhibit: current_exhibit) or can? :manage, current_exhibit.home_page %>
11
+ <li><%= link_to t(:'spotlight.curation.sidebar.feature_pages'), spotlight.exhibit_feature_pages_path(current_exhibit), 'data-no-turbolink' => true %></li>
12
+ <% end %>
13
+ <% if can? :manage, Spotlight::AboutPage.new(exhibit: current_exhibit) %>
14
+ <li><%= link_to t(:'spotlight.curation.sidebar.about_pages'), spotlight.exhibit_about_pages_path(current_exhibit), 'data-no-turbolink' => true %></li>
15
+ <% end %>
16
+ </ul>
@@ -0,0 +1,8 @@
1
+ <div id="sidebar" class="col-md-3" role="complementary">
2
+ <ul class="nav sidenav top-level">
3
+ <li><%= link_to t(:'spotlight.curation.sidebar.dashboard'), spotlight.exhibit_dashboard_path(current_exhibit) %></li>
4
+ <li><%= link_to t(:'spotlight.curation.sidebar.analytics'), spotlight.analytics_exhibit_dashboard_path(current_exhibit) %></li>
5
+ </ul>
6
+ <%= render 'spotlight/shared/configuration_sidebar' if can? :update, current_exhibit %>
7
+ <%= render 'spotlight/shared/curation_sidebar' %>
8
+ </div>
@@ -4,7 +4,7 @@
4
4
  <div class="spotlight-flexbox browse-categories categories-<%= browse_block.searches.length %>" data-sidebar='<%= @page.display_sidebar? %>'>
5
5
  <% browse_block.searches.each_with_index do |search, index| %>
6
6
  <div class="box category-<%= (index + 1) %>">
7
- <%= link_to [search.exhibit, search] do %>
7
+ <%= link_to spotlight.exhibit_browse_path(search.exhibit, search) do %>
8
8
  <div class="browse-category" style='background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)), url("<%= search.thumbnail.image.cropped if search.thumbnail %>")'>
9
9
  <div class="category-caption">
10
10
  <p class="category-title">
@@ -1,4 +1,4 @@
1
- <%= render 'spotlight/shared/curation_sidebar' %>
1
+ <%= render 'spotlight/shared/exhibit_sidebar' %>
2
2
  <div id="content" class="col-md-9">
3
3
  <%= curation_page_title(header_with_count(@tags.length)) %>
4
4
 
@@ -97,15 +97,15 @@ en:
97
97
  application_name: "%{exhibit} - %{application_name}"
98
98
  html_title: "%{title} | %{application_name}"
99
99
  html_admin_title: "%{section} - %{title}"
100
- administration:
100
+ configuration:
101
101
  sidebar:
102
- header: Administration
103
- dashboard: Dashboard
104
- settings: Settings
102
+ header: Configuration
103
+ settings: General
105
104
  appearance: Appearance
106
105
  users: Users
107
- import: "Import/Export"
108
- header: "Administration"
106
+ metadata: Metadata
107
+ search_configuration: Search
108
+ header: "Configuration"
109
109
  page_title: "Page title"
110
110
  settings:
111
111
  header: "Settings"
@@ -143,15 +143,12 @@ en:
143
143
  sidebar:
144
144
  header: Curation
145
145
  dashboard: Dashboard
146
+ analytics: Analytics
146
147
  items: Items
147
- metadata: Metadata
148
- sort_fields: Sort fields
149
148
  tags: Tags
150
- search_facets: Search facets
151
149
  browse: Browse
152
150
  feature_pages: Feature pages
153
151
  about_pages: About pages
154
- search_configuration: Search
155
152
  nav:
156
153
  home: "Home"
157
154
  header: "Curation"
@@ -293,7 +290,8 @@ en:
293
290
  header: Recently Updated Items
294
291
  no_documents: There are no documents in this exhibit
295
292
  analytics:
296
- header: "User Activity Over the Past Month"
293
+ header: "Analytics"
294
+ monthly_header: "User Activity Over the Past Month"
297
295
  pageviews: "page views"
298
296
  users: "unique visits"
299
297
  sessions: "visitors"
@@ -465,7 +463,7 @@ en:
465
463
  reindexing_in_progress: "Reindexing all resources"
466
464
  roles:
467
465
  index:
468
- title: Site Administration - Users
466
+ title: Site Configuration - Users
469
467
  header: Users
470
468
  name: Username
471
469
  role: "Role"
@@ -485,8 +483,8 @@ en:
485
483
  which will be displayed here.
486
484
  not_searchable_html: >
487
485
  This exhibit is not currently searchable. To perform searches that can be saved as
488
- additional browse categories, an Administrator must temporarily turn on the Searchable
489
- option in the search configuration section of the Administration > %{href} page.
486
+ additional browse categories, temporarily turn on the Display search box
487
+ option in the Options section of the Configuration > %{href} page.
490
488
  edit:
491
489
  header: "Edit Browse Category"
492
490
  title: "Curation - Browse"
@@ -551,8 +549,6 @@ en:
551
549
  redo: Redo changes
552
550
  undo_error: Unable to undo changes
553
551
  shared:
554
- exhibit_masthead:
555
- more_exhibits: More Exhibits
556
552
  share_follow:
557
553
  share_follow: "Share & Follow"
558
554
  home_sidebar:
@@ -39,7 +39,9 @@ Spotlight::Engine.routes.draw do
39
39
 
40
40
  resources :custom_fields
41
41
 
42
- resource :dashboard, only: :show
42
+ resource :dashboard, only: [:show] do
43
+ get :analytics
44
+ end
43
45
 
44
46
  resources :resources do
45
47
  collection do
@@ -0,0 +1,13 @@
1
+ class RemoveDefaultFromSpotlightExhibit < ActiveRecord::Migration
2
+ def up
3
+ return unless Spotlight::Exhibit.column_names.include? :default
4
+
5
+ remove_column :spotlight_exhibits, :default
6
+ remove_index :spotlight_exhibits, :default
7
+ end
8
+
9
+ def down
10
+ add_column :spotlight_exhibits, :default, :boolean, default: true
11
+ add_index :spotlight_exhibits, :default, unique: true
12
+ end
13
+ end
@@ -0,0 +1,31 @@
1
+ class UpdateCustomFieldNames < ActiveRecord::Migration
2
+ def up
3
+ fields = {}
4
+
5
+ Spotlight::CustomField.find_each do |f|
6
+ f.update(field: f.send(:field_name))
7
+ fields[f.solr_field] = f
8
+ end
9
+
10
+ Spotlight::SolrDocumentSidecar.find_each do |f|
11
+ f.data.select { |k, v| fields.has_key? k }.each do |k, v|
12
+ f.data[fields[k].send(:field_name)] = f.data.delete(k)
13
+ end
14
+ end
15
+ end
16
+
17
+ def down
18
+ fields = {}
19
+
20
+ Spotlight::CustomField.find_each do |f|
21
+ fields[f.field] = f
22
+ f.update(field: f.send(:solr_field))
23
+ end
24
+
25
+ Spotlight::SolrDocumentSidecar.find_each do |f|
26
+ f.data.select { |k, v| fields.has_key? k }.each do |k, v|
27
+ f.data[fields[k].send(:solr_field)] = f.data.delete(k)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -17,7 +17,7 @@ class CatalogController < ApplicationController
17
17
  # solr field configuration for search results/index views
18
18
  config.index.title_field = 'full_title_tesim'
19
19
 
20
- config.add_search_field 'all_fields', label: 'All fields'
20
+ config.add_search_field 'all_fields', label: 'Everything'
21
21
 
22
22
  config.add_sort_field 'relevance', sort: 'score desc', label: 'Relevance'
23
23