blacklight-spotlight 3.0.0.rc3 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/blacklight/close.svg +1 -0
  3. data/app/assets/images/blacklight/zoom_in.svg +1 -0
  4. data/app/assets/images/blacklight/zoom_out.svg +1 -0
  5. data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +8 -1
  6. data/app/assets/javascripts/spotlight/admin/catalog_edit.js +13 -47
  7. data/app/assets/javascripts/spotlight/admin/exhibit_tag_autocomplete.js +37 -0
  8. data/app/assets/javascripts/spotlight/admin/{reindex_monitor.js → progress_monitor.js} +26 -4
  9. data/app/assets/javascripts/spotlight/admin/sir-trevor/locales.js +1 -1
  10. data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +29 -14
  11. data/app/assets/stylesheets/spotlight/_browse.scss +8 -0
  12. data/app/assets/stylesheets/spotlight/_catalog.scss +30 -4
  13. data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +9 -0
  14. data/app/assets/stylesheets/spotlight/_modals.scss +3 -0
  15. data/app/assets/stylesheets/spotlight/_nestable.scss +8 -0
  16. data/app/assets/stylesheets/spotlight/_spotlight.scss +2 -0
  17. data/app/assets/stylesheets/spotlight/_view_larger.scss +22 -0
  18. data/app/assets/stylesheets/spotlight/browse_group_categories_block.scss +23 -0
  19. data/app/assets/stylesheets/spotlight/typeahead.css +23 -23
  20. data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +4 -2
  21. data/app/controllers/concerns/spotlight/base.rb +1 -1
  22. data/app/controllers/concerns/spotlight/catalog.rb +7 -1
  23. data/app/controllers/spotlight/browse_controller.rb +9 -15
  24. data/app/controllers/spotlight/bulk_actions_controller.rb +62 -0
  25. data/app/controllers/spotlight/bulk_updates_controller.rb +67 -0
  26. data/app/controllers/spotlight/catalog_controller.rb +16 -13
  27. data/app/controllers/spotlight/dashboards_controller.rb +5 -4
  28. data/app/controllers/spotlight/exhibits_controller.rb +1 -1
  29. data/app/controllers/spotlight/featured_images_controller.rb +1 -1
  30. data/app/controllers/spotlight/job_trackers_controller.rb +17 -0
  31. data/app/controllers/spotlight/pages_controller.rb +6 -7
  32. data/app/controllers/spotlight/tags_controller.rb +39 -5
  33. data/app/helpers/spotlight/application_helper.rb +20 -1
  34. data/app/helpers/spotlight/job_trackers_helper.rb +31 -0
  35. data/app/helpers/spotlight/main_app_helpers.rb +3 -4
  36. data/app/helpers/spotlight/meta_helper.rb +2 -2
  37. data/app/helpers/spotlight/pages_helper.rb +1 -8
  38. data/app/helpers/spotlight/roles_helper.rb +1 -1
  39. data/app/helpers/spotlight/searches_helper.rb +1 -1
  40. data/app/jobs/concerns/spotlight/gather_documents.rb +35 -0
  41. data/app/jobs/concerns/spotlight/job_tracking.rb +64 -0
  42. data/app/jobs/concerns/spotlight/limit_concurrency.rb +33 -0
  43. data/app/jobs/spotlight/add_tags_job.rb +31 -0
  44. data/app/jobs/spotlight/add_uploads_from_csv.rb +4 -3
  45. data/app/jobs/spotlight/application_job.rb +8 -0
  46. data/app/jobs/spotlight/change_visibility_job.rb +33 -0
  47. data/app/jobs/spotlight/cleanup_job_trackers_job.rb +13 -0
  48. data/app/jobs/spotlight/default_thumbnail_job.rb +1 -3
  49. data/app/jobs/spotlight/process_bulk_updates_csv_job.rb +82 -0
  50. data/app/jobs/spotlight/reindex_exhibit_job.rb +39 -0
  51. data/app/jobs/spotlight/reindex_job.rb +64 -44
  52. data/app/jobs/spotlight/remove_tags_job.rb +31 -0
  53. data/app/jobs/spotlight/rename_sidecar_field_job.rb +3 -2
  54. data/app/jobs/spotlight/rename_tags_job.rb +33 -0
  55. data/app/jobs/spotlight/update_job_trackers_job.rb +20 -0
  56. data/app/models/concerns/spotlight/browse_category_search_builder.rb +59 -0
  57. data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -6
  58. data/app/models/concerns/spotlight/exhibit_documents.rb +2 -2
  59. data/app/models/concerns/spotlight/resources/web.rb +1 -1
  60. data/app/models/concerns/spotlight/search_builder.rb +11 -0
  61. data/app/models/concerns/spotlight/solr_document.rb +1 -1
  62. data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -2
  63. data/app/models/concerns/spotlight/user.rb +7 -2
  64. data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +9 -0
  65. data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +4 -0
  66. data/app/models/spotlight/ability.rb +6 -2
  67. data/app/models/spotlight/attachment.rb +1 -1
  68. data/app/models/spotlight/background_job_progress.rb +96 -0
  69. data/app/models/spotlight/blacklight_configuration.rb +26 -6
  70. data/app/models/spotlight/bulk_update.rb +8 -0
  71. data/app/models/spotlight/event.rb +13 -0
  72. data/app/models/spotlight/exhibit.rb +5 -14
  73. data/app/models/spotlight/feature_page.rb +0 -2
  74. data/app/models/spotlight/featured_image.rb +40 -1
  75. data/app/models/spotlight/field_metadata.rb +4 -8
  76. data/app/models/spotlight/job_tracker.rb +114 -0
  77. data/app/models/spotlight/page.rb +1 -3
  78. data/app/models/spotlight/page_configurations.rb +10 -9
  79. data/app/models/spotlight/resource.rb +28 -62
  80. data/app/models/spotlight/resources/iiif_harvester.rb +12 -3
  81. data/app/models/spotlight/resources/iiif_manifest.rb +3 -1
  82. data/app/models/spotlight/resources/iiif_service.rb +9 -2
  83. data/app/models/spotlight/resources/json_upload.rb +12 -0
  84. data/app/models/spotlight/resources/upload.rb +25 -2
  85. data/app/models/spotlight/role.rb +1 -2
  86. data/app/models/spotlight/solr_document_sidecar.rb +2 -1
  87. data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -2
  88. data/app/services/spotlight/bulk_updates_csv_template_service.rb +93 -0
  89. data/app/services/spotlight/etl.rb +7 -0
  90. data/app/services/spotlight/etl/context.rb +52 -0
  91. data/app/services/spotlight/etl/executor.rb +192 -0
  92. data/app/services/spotlight/etl/loaders.rb +12 -0
  93. data/app/services/spotlight/etl/pipeline.rb +81 -0
  94. data/app/services/spotlight/etl/solr_loader.rb +96 -0
  95. data/app/services/spotlight/etl/sources.rb +25 -0
  96. data/app/services/spotlight/etl/step.rb +82 -0
  97. data/app/services/spotlight/etl/transforms.rb +64 -0
  98. data/app/services/spotlight/iiif_resource_resolver.rb +1 -1
  99. data/app/services/spotlight/validity_checker.rb +5 -5
  100. data/app/uploaders/spotlight/bulk_updates_uploader.rb +7 -0
  101. data/app/uploaders/spotlight/featured_image_uploader.rb +1 -1
  102. data/app/views/catalog/_add_tags.html.erb +28 -0
  103. data/app/views/catalog/_bulk_actions.html.erb +12 -0
  104. data/app/views/catalog/_change_visibility.html.erb +35 -0
  105. data/app/views/catalog/_curator_actions.html.erb +3 -0
  106. data/app/views/catalog/_remove_tags.html.erb +37 -0
  107. data/app/views/catalog/_save_search.html.erb +1 -1
  108. data/app/views/spotlight/about_pages/_sidebar.html.erb +2 -2
  109. data/app/views/spotlight/browse/_search.html.erb +3 -3
  110. data/app/views/spotlight/browse/_search_box.html.erb +9 -9
  111. data/app/views/spotlight/browse/_search_title.html.erb +1 -1
  112. data/app/views/spotlight/bulk_updates/_download.html.erb +23 -0
  113. data/app/views/spotlight/bulk_updates/_overview.html.erb +1 -0
  114. data/app/views/spotlight/bulk_updates/_progress_panel.html.erb +19 -0
  115. data/app/views/spotlight/bulk_updates/_upload.html.erb +12 -0
  116. data/app/views/spotlight/bulk_updates/edit.html.erb +37 -0
  117. data/app/views/spotlight/catalog/_admin_header.html.erb +1 -1
  118. data/app/views/spotlight/catalog/_admin_index_header_default.html.erb +1 -1
  119. data/app/views/spotlight/catalog/_admin_thumbnail_default.html.erb +3 -2
  120. data/app/views/spotlight/catalog/_edit_default.html.erb +2 -2
  121. data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +1 -1
  122. data/app/views/spotlight/catalog/index.iiif_json.jbuilder +1 -1
  123. data/app/views/spotlight/custom_fields/_form.html.erb +1 -1
  124. data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
  125. data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +6 -6
  126. data/app/views/spotlight/exhibits/_exhibit_card.html.erb +1 -1
  127. data/app/views/spotlight/feature_pages/_sidebar.html.erb +1 -1
  128. data/app/views/spotlight/featured_images/_form.html.erb +1 -1
  129. data/app/views/spotlight/job_trackers/show.html.erb +79 -0
  130. data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +2 -2
  131. data/app/views/spotlight/pages/_form.html.erb +2 -2
  132. data/app/views/spotlight/pages/_order_pages.html.erb +2 -2
  133. data/app/views/spotlight/pages/_view_type_group.html.erb +3 -3
  134. data/app/views/spotlight/pages/show.html.erb +1 -1
  135. data/app/views/spotlight/resources/_form.html.erb +1 -1
  136. data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
  137. data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
  138. data/app/views/spotlight/resources/json_upload/_form.html.erb +2 -2
  139. data/app/views/spotlight/resources/upload/_form.html.erb +1 -1
  140. data/app/views/spotlight/search_configurations/_document_index_view_types.html.erb +2 -2
  141. data/app/views/spotlight/searches/_form.html.erb +2 -2
  142. data/app/views/spotlight/shared/_curation_sidebar.html.erb +3 -0
  143. data/app/views/spotlight/shared/_locale_picker.html.erb +1 -1
  144. data/app/views/spotlight/sir_trevor/blocks/_browse_group_categories_block.html.erb +7 -6
  145. data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +1 -1
  146. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +8 -8
  147. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +7 -7
  148. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +9 -7
  149. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +5 -5
  150. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +4 -0
  151. data/app/views/spotlight/tags/_tag.html.erb +24 -0
  152. data/app/views/spotlight/tags/index.html.erb +12 -16
  153. data/app/views/spotlight/translations/show.yaml.yamlbuilder +6 -0
  154. data/config/i18n-tasks.yml +1 -0
  155. data/config/locales/spotlight.ar.yml +11 -1
  156. data/config/locales/spotlight.en.yml +170 -10
  157. data/config/routes.rb +29 -1
  158. data/db/migrate/20210122082032_create_job_trackers.rb +22 -0
  159. data/db/migrate/20210126123041_create_events.rb +15 -0
  160. data/db/migrate/20210305070001_remove_class_from_sirtrevor_image_blocks.rb +20 -0
  161. data/db/migrate/20210305171150_create_bulk_updates.rb +9 -0
  162. data/db/migrate/20210308090000_migrate_caption_values_for_title_key.rb +29 -0
  163. data/db/migrate/20210506070809_add_indexes_for_featured_images.rb +9 -0
  164. data/lib/generators/spotlight/install_generator.rb +2 -2
  165. data/lib/generators/spotlight/scaffold_resource_generator.rb +5 -13
  166. data/lib/generators/spotlight/templates/config/initializers/riiif.rb +7 -5
  167. data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +1 -1
  168. data/lib/generators/spotlight/templates/solr/config/schema.xml +1 -1
  169. data/lib/migration/iiif.rb +3 -3
  170. data/lib/spotlight/engine.rb +22 -1
  171. data/lib/spotlight/version.rb +1 -1
  172. data/spec/controllers/spotlight/browse_controller_spec.rb +0 -6
  173. data/spec/controllers/spotlight/bulk_actions_controller_spec.rb +124 -0
  174. data/spec/controllers/spotlight/bulk_updates_controller_spec.rb +77 -0
  175. data/spec/controllers/spotlight/catalog_controller_spec.rb +15 -13
  176. data/spec/controllers/spotlight/featured_images_controller_spec.rb +3 -3
  177. data/spec/controllers/spotlight/job_trackers_controller_spec.rb +37 -0
  178. data/spec/controllers/spotlight/tags_controller_spec.rb +5 -1
  179. data/spec/examples.txt +1502 -1437
  180. data/spec/factories/bulk_updates.rb +15 -0
  181. data/spec/factories/exhibits.rb +4 -0
  182. data/spec/factories/job_trackers.rb +11 -0
  183. data/spec/factories/users.rb +27 -8
  184. data/spec/features/add_items_spec.rb +10 -5
  185. data/spec/features/bulk_actions_spec.rb +72 -0
  186. data/spec/features/catalog_spec.rb +1 -0
  187. data/spec/features/import_exhibit_spec.rb +5 -1
  188. data/spec/features/javascript/blocks/solr_documents_block_spec.rb +4 -4
  189. data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +27 -1
  190. data/spec/features/javascript/reindex_monitor_spec.rb +1 -1
  191. data/spec/features/site_users_management_spec.rb +5 -5
  192. data/spec/fixtures/bulk-update-template.csv +57 -0
  193. data/spec/fixtures/updated-bulk-update-template-w-tags.csv +4 -0
  194. data/spec/fixtures/updated-bulk-update-template.csv +4 -0
  195. data/spec/helpers/spotlight/application_helper_spec.rb +5 -6
  196. data/spec/helpers/spotlight/pages_helper_spec.rb +8 -15
  197. data/spec/helpers/spotlight/roles_helper_spec.rb +1 -1
  198. data/spec/i18n_spec.rb +1 -0
  199. data/spec/jobs/spotlight/add_tags_job_spec.rb +34 -0
  200. data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +4 -1
  201. data/spec/jobs/spotlight/change_visibility_job_spec.rb +30 -0
  202. data/spec/jobs/spotlight/process_bulk_updates_csv_job_spec.rb +78 -0
  203. data/spec/jobs/spotlight/reindex_exhibit_job_spec.rb +43 -0
  204. data/spec/jobs/spotlight/reindex_job_spec.rb +34 -60
  205. data/spec/jobs/spotlight/remove_tags_job_spec.rb +39 -0
  206. data/spec/lib/migration/iiif_spec.rb +1 -1
  207. data/spec/models/spotlight/ability_spec.rb +27 -0
  208. data/spec/models/spotlight/background_job_progress_spec.rb +137 -0
  209. data/spec/models/spotlight/blacklight_configuration_spec.rb +22 -17
  210. data/spec/models/spotlight/browse_category_search_builder_spec.rb +49 -0
  211. data/spec/models/spotlight/exhibit_spec.rb +4 -58
  212. data/spec/models/spotlight/featured_image_spec.rb +13 -1
  213. data/spec/models/spotlight/resource_spec.rb +89 -87
  214. data/spec/models/spotlight/resources/iiif_harvester_spec.rb +9 -10
  215. data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +10 -0
  216. data/spec/models/spotlight/solr_document_sidecar_spec.rb +1 -0
  217. data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +1 -1
  218. data/spec/services/spotlight/bulk_updates_csv_template_service_spec.rb +26 -0
  219. data/spec/services/spotlight/etl/context_spec.rb +66 -0
  220. data/spec/services/spotlight/etl/executor_spec.rb +149 -0
  221. data/spec/services/spotlight/etl/pipeline_spec.rb +22 -0
  222. data/spec/services/spotlight/etl/solr_loader_spec.rb +76 -0
  223. data/spec/services/spotlight/etl/step_spec.rb +70 -0
  224. data/spec/spec_helper.rb +2 -5
  225. data/spec/test_app_templates/Gemfile.extra +1 -0
  226. data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
  227. data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -2
  228. data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +1 -1
  229. data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +24 -19
  230. data/spec/views/spotlight/job_trackers/show.html.erb_spec.rb +65 -0
  231. data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -4
  232. data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +1 -1
  233. data/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +1 -1
  234. data/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +1 -1
  235. data/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +1 -1
  236. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +8 -4
  237. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +7 -2
  238. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +8 -5
  239. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +3 -2
  240. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +9 -4
  241. data/spec/views/spotlight/tags/index.html.erb_spec.rb +5 -2
  242. metadata +143 -34
  243. data/app/assets/images/blacklight/add_circle.svg +0 -1
  244. data/app/assets/images/blacklight/custom_fullscreen.svg +0 -1
  245. data/app/assets/images/blacklight/remove_circle.svg +0 -1
  246. data/app/assets/images/blacklight/resize_small.svg +0 -1
  247. data/app/models/concerns/spotlight/resources/open_graph.rb +0 -36
  248. data/app/models/spotlight/reindex_progress.rb +0 -78
  249. data/app/models/spotlight/reindexing_log_entry.rb +0 -42
  250. data/app/services/spotlight/resources/iiif_builder.rb +0 -19
  251. data/app/services/spotlight/solr_document_builder.rb +0 -77
  252. data/app/services/spotlight/upload_solr_document_builder.rb +0 -57
  253. data/spec/factories/reindexing_log_entries.rb +0 -54
  254. data/spec/models/spotlight/reindex_progress_spec.rb +0 -122
  255. data/spec/models/spotlight/reindexing_log_entry_spec.rb +0 -129
  256. data/spec/models/spotlight/resources/open_graph_spec.rb +0 -65
  257. data/spec/services/spotlight/solr_document_builder_spec.rb +0 -66
@@ -3,9 +3,9 @@
3
3
  <div class="view-type">
4
4
  <span class="sr-only"><%= t('blacklight.search.view_title') %></span>
5
5
  <div class="view-type-group btn-group">
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-outline-secondary view-type-#{ view.to_s.parameterize } #{"active" if block_document_index_view_type(block) == view}" do %>
8
- <%= render_view_type_group_icon view %>
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-outline-secondary view-type-#{ view.to_s.parameterize } #{"active" if block_document_index_view_type(block) == view}" do %>
8
+ <%= blacklight_icon config.icon || view %>
9
9
  <span class="caption"><%= t("blacklight.search.view.#{view}") %></span>
10
10
  <% end %>
11
11
  <% end %>
@@ -5,7 +5,7 @@
5
5
  <%= render 'sidebar' %>
6
6
  <% end if @page.display_sidebar?%>
7
7
 
8
- <%= cache_unless current_user, [@page, request.query_string] do %>
8
+ <%= cache_unless current_user, [current_exhibit, @page, I18n.locale, request.query_string] do %>
9
9
  <div class="clearfix">
10
10
  <%= render 'edit_page_link' if can? :edit, @page %>
11
11
  <% if @page.should_display_title? %>
@@ -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-secondary' %>
5
+ <%= cancel_link @resource, :back, class: 'btn-sizing' %>
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-secondary' %>
5
+ <%= cancel_link @resource, :back, class: 'btn-sizing' %>
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-secondary' %>
5
+ <%= cancel_link @resource, :back, class: 'btn-sizing' %>
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-secondary' %>
6
+ <%= cancel_link @resource, :back, class: 'btn-sizing' %>
7
7
  <%= f.submit t('.add_item'), class: 'btn btn-primary' %>
8
8
  </div>
9
9
  </div>
@@ -12,4 +12,4 @@
12
12
  <div class="alert alert-info">
13
13
  Uploading raw documents is restricted to site administrators.
14
14
  </div>
15
- <% end %>
15
+ <% end %>
@@ -12,7 +12,7 @@
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-secondary' %>
15
+ <%= cancel_link @resource, :back, class: 'btn-sizing' %>
16
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>
@@ -1,7 +1,7 @@
1
1
  <%= f.form_group :document_index_view_types, label: {text: t(:'.label'), class: 'pt-0'} do %>
2
2
  <%= f.fields_for :document_index_view_types, @blacklight_configuration.document_index_view_types_selected_hash do |vt| %>
3
- <% @blacklight_configuration.default_blacklight_config.view.select { |_k, v| v.if != false }.keys.each do |key| %>
4
- <%= vt.check_box key, label: view_label(key) %>
3
+ <% @blacklight_configuration.default_blacklight_config.view.select { |_k, v| v.if != false }.each do |key, view| %>
4
+ <%= vt.check_box key, label: view.display_label(key) %>
5
5
  <% end %>
6
6
  <% end %>
7
7
  <% end %>
@@ -39,8 +39,8 @@
39
39
  <%= f.check_box :search_box, label: t(:'.search_box.checkbox_label') %>
40
40
  <% end %>
41
41
  <%= f.form_group label: { text: t(:".default_index_view_type"), class: 'pt-0' } do %>
42
- <% available_document_index_views.each do |view| %>
43
- <%= f.radio_button :default_index_view_type, view, label: view_label(view) %>
42
+ <% available_document_index_views.each do |key, view| %>
43
+ <%= f.radio_button :default_index_view_type, key, label: view.display_label(key) %>
44
44
  <% end %>
45
45
  <% end %>
46
46
  <% unless @search.query_params.blank? %>
@@ -17,4 +17,7 @@
17
17
  <% if (can? :manage, current_exhibit.translations.first_or_initialize) && current_exhibit.languages.any? %>
18
18
  <%= nav_link t(:'spotlight.curation.sidebar.translations'), spotlight.edit_exhibit_translations_path(current_exhibit), 'data-no-turbolink' => true %>
19
19
  <% end %>
20
+ <% if can? :bulk_update, current_exhibit %>
21
+ <%= nav_link t(:'spotlight.curation.sidebar.bulk_updates'), spotlight.edit_exhibit_bulk_updates_path(current_exhibit), 'data-no-turbolink' => true %>
22
+ <% end %>
20
23
  </ul>
@@ -6,7 +6,7 @@
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', data: { turbolinks: false } %>
9
+ <%= link_to language.to_native, current_page_for_locale(language.locale), class: 'dropdown-item', data: { turbolinks: false } %>
10
10
  </li>
11
11
  <% end %>
12
12
  </ul>
@@ -2,18 +2,18 @@
2
2
  <% browse_group_categories_block.groups.each do |group| %>
3
3
  <div class="browse-group-categories-block" data-browse-group-categories-count="<%= group.searches.count %>">
4
4
  <div class="d-flex flex-column flex-md-row py-2">
5
- <div class="d-flex justify-content-between align-items-end">
5
+ <div class="d-flex justify-content-between align-items-baseline">
6
6
  <h2 class="m-0"><%= group.title %></h2>
7
- <div class="pl-5">
8
- <%= link_to 'View all', exhibit_browse_groups_path(current_exhibit, group) %>
7
+ <div class="pl-3">
8
+ <%= link_to t(:'.view_all'), exhibit_browse_groups_path(current_exhibit, group) %>
9
9
  </div>
10
10
  </div>
11
11
  <% if group.searches.count > 1 %>
12
12
  <ul class="browse-group-categories-controls p-0 pt-2 pt-md-0 ml-md-auto mb-0 d-flex justify-content-center align-items-end">
13
- <li class="prev px-1">
13
+ <li class="prev px-1 overflow-hidden">
14
14
  <%= blacklight_icon 'arrow-alt-circle-left' %>
15
15
  </li>
16
- <li class="next px-1">
16
+ <li class="next px-1 overflow-hidden">
17
17
  <%= blacklight_icon 'arrow-alt-circle-right' %>
18
18
  </li>
19
19
  </ul>
@@ -21,7 +21,7 @@
21
21
  </div>
22
22
  <div class="spotlight-flexbox browse-categories categories-<%= [group.searches.count, (@page.display_sidebar? ? 3 : 4)].min %>" data-browse-group-categories-carousel data-sidebar='<%= @page.display_sidebar? %>' data-browse-group-categories-count="<%= group.searches.count %>">
23
23
  <% group.searches.published.each_with_index do |search, index| %>
24
- <div class="box category-1 justify-content-center justify-content-md-start">
24
+ <div class="box category-1 justify-content-center justify-content-md-space-around">
25
25
  <%= link_to spotlight.exhibit_browse_group_path(current_exhibit, group, search), class: 'justify-content-center' do %>
26
26
  <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.iiif_url if search.thumbnail %>")'>
27
27
  <div class="category-caption">
@@ -34,6 +34,7 @@
34
34
  <span class="item-count"><%= t(:'.items', count: search.count) %></span>
35
35
  <% end %>
36
36
  </div>
37
+ <div class="hover-overlay"></div>
37
38
  </div>
38
39
  <% end %>
39
40
  </div>
@@ -10,7 +10,7 @@
10
10
 
11
11
  <% views = blacklight_view_config_for_search_block(search_results_block) %>
12
12
  <% if views.length > 1 -%>
13
- <div id="sortAndPerPage" class="clearfix" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation')%>">
13
+ <div id="sortAndPerPage" class="clearfix my-3" role="navigation" aria-label="<%= t('blacklight.search.per_page.aria_label', default: 'Results navigation')%>">
14
14
  <div class="search-widgets float-right">
15
15
  <%= render partial: 'view_type_group', locals: { block: search_results_block } %>
16
16
  </div>
@@ -5,28 +5,28 @@
5
5
 
6
6
  <div class="items-col spotlight-flexbox <%= solr_documents_block.text? ? "col-md-6" : "col-md-12" %> <%= solr_documents_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
7
7
  <% solr_documents_block.each_document do |block_options, document| %>
8
- <% doc_presenter = index_presenter(document) %>
8
+ <% doc_presenter = document_presenter(document) %>
9
9
  <div class="box" data-id="<%= document.id %>">
10
10
  <div class="contents">
11
11
  <% if block_options[:thumbnail_image_url].present? %>
12
- <%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: doc_presenter.heading), counter: -1) %>
12
+ <%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
13
13
  <% elsif block_options[:iiif_tilesource_base].present? %>
14
- <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: doc_presenter.heading), counter: -1) %>
15
- <% elsif has_thumbnail? document %>
16
- <%= render_thumbnail_tag(document, { class: 'img-thumbnail', alt: doc_presenter.heading }, document_counter: -1) %>
14
+ <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
15
+ <% elsif doc_presenter.thumbnail.exists? %>
16
+ <%= doc_presenter.thumbnail.thumbnail_tag({ class: 'img-thumbnail', alt: doc_presenter.heading }, document_counter: -1) %>
17
17
  <% end %>
18
18
  <% if solr_documents_block.primary_caption? %>
19
19
  <div class="caption primary-caption">
20
- <%= doc_presenter.field_value(blacklight_config.index_fields[solr_documents_block.primary_caption_field] || Blacklight::Configuration::NullField.new(solr_documents_block.primary_caption_field)) %>
20
+ <%= solr_documents_block.document_caption(doc_presenter, solr_documents_block.primary_caption_field) %>
21
21
  </div>
22
22
  <% end %>
23
23
  <% if solr_documents_block.secondary_caption? %>
24
24
  <div class="caption secondary-caption">
25
- <%= doc_presenter.field_value(blacklight_config.index_fields[solr_documents_block.secondary_caption_field] || Blacklight::Configuration::NullField.new(solr_documents_block.secondary_caption_field)) %>
25
+ <%= solr_documents_block.document_caption(doc_presenter, solr_documents_block.secondary_caption_field) %>
26
26
  </div>
27
27
  <% end %>
28
28
  <% if solr_documents_block.zpr_link? && block_options[:iiif_tilesource].present? %>
29
- <button class="btn btn-secondary zpr-link" data-iiif-tilesource="<%= block_options[:iiif_tilesource] %>">Show in ZPR viewer</button>
29
+ <button class="btn btn-secondary zpr-link" data-iiif-tilesource="<%= block_options[:iiif_tilesource] %>"><%= t('.zpr_link_html', title: doc_presenter.heading) %></button>
30
30
  <% end %>
31
31
  </div>
32
32
  </div>
@@ -6,24 +6,24 @@
6
6
  <div id="<%= html_id %>" class="carousel slide" data-ride="carousel" data-interval="<%= solr_documents_carousel_block.interval %>">
7
7
  <div class="carousel-inner text-center">
8
8
  <% solr_documents_carousel_block.each_document.each_with_index do |(block_options, document), index| %>
9
- <% doc_presenter = index_presenter(document) %>
9
+ <% doc_presenter = document_presenter(document) %>
10
10
  <div class="carousel-item <%= 'active' if index == 0 %>" data-id="<%= document.id %>">
11
11
  <% if block_options[:full_image_url].present? %>
12
- <%= link_to_document(document, image_tag(block_options[:full_image_url], alt: doc_presenter.heading), counter: -1) %>
12
+ <%= link_to_document(document, image_tag(block_options[:full_image_url], alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
13
13
  <% elsif block_options[:iiif_tilesource_base].present? %>
14
- <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: doc_presenter.heading), counter: -1) %>
15
- <% elsif has_thumbnail? document %>
16
- <%= render_thumbnail_tag(document, { alt: doc_presenter.heading }, document_counter: -1) %>
14
+ <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
15
+ <% elsif doc_presenter.thumbnail.exists? %>
16
+ <%= doc_presenter.thumbnail.thumbnail_tag({ alt: doc_presenter.heading }, document_counter: -1) %>
17
17
  <% end %>
18
18
  <div class="carousel-caption">
19
19
  <% if solr_documents_carousel_block.primary_caption? %>
20
20
  <h3 class="primary">
21
- <%= doc_presenter.field_value(blacklight_config.index_fields[solr_documents_carousel_block.primary_caption_field] || Blacklight::Configuration::NullField.new(solr_documents_carousel_block.primary_caption_field)) %>
21
+ <%= solr_documents_carousel_block.document_caption(doc_presenter, solr_documents_carousel_block.primary_caption_field) %>
22
22
  </h3>
23
23
  <% end %>
24
24
  <% if solr_documents_carousel_block.secondary_caption? %>
25
25
  <div class="secondary">
26
- <%= doc_presenter.field_value(blacklight_config.index_fields[solr_documents_carousel_block.secondary_caption_field] || Blacklight::Configuration::NullField.new(solr_documents_carousel_block.secondary_caption_field)) %>
26
+ <%= solr_documents_carousel_block.document_caption(doc_presenter, solr_documents_carousel_block.secondary_caption_field) %>
27
27
  </div>
28
28
  <% end %>
29
29
  </div>
@@ -9,24 +9,26 @@
9
9
  <div class="col-sm-6">
10
10
  <div class="carousel-inner">
11
11
  <% solr_documents_features_block.each_document.each_with_index do |(block_options, document), index| %>
12
- <% doc_presenter = index_presenter(document) %>
12
+ <% doc_presenter = document_presenter(document) %>
13
13
  <div class="carousel-item <%= 'active' if index == 0 %>" data-id="<%= document.id %>">
14
14
  <% if block_options[:full_image_url].present? %>
15
- <%= link_to_document(document, image_tag(block_options[:full_image_url], alt: doc_presenter.heading), counter: -1) %>
15
+ <%= link_to_document(document, image_tag(block_options[:full_image_url], alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
16
16
  <% elsif block_options[:iiif_tilesource_base].present? %>
17
- <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: doc_presenter.heading), counter: -1) %>
18
- <% elsif has_thumbnail? document %>
19
- <%= render_thumbnail_tag(document, { alt: doc_presenter.heading }, document_counter: -1) %>
17
+ <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!800,800/0/default.jpg', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
18
+ <% elsif doc_presenter.thumbnail.exists? %>
19
+ <%= doc_presenter.thumbnail.thumbnail_tag({ alt: doc_presenter.heading }, document_counter: -1) %>
20
20
  <% end %>
21
21
  </div>
22
22
 
23
23
  <% indicators << capture do %>
24
24
  <li data-target="#<%= html_id %>" data-slide-to="<%= index %>" class="list-group-item <%= 'active' if index == 0 %>">
25
- <a href="#" title="<%= (caption_text = doc_presenter.field_value(blacklight_config.index_fields[solr_documents_features_block.primary_caption? ? solr_documents_features_block.primary_caption_field : document_show_link_field(document)] || Blacklight::Configuration::NullField.new(solr_documents_features_block.primary_caption? ? solr_documents_features_block.primary_caption_field : document_show_link_field(document)))) %>">
25
+ <% caption_text = solr_documents_features_block.document_caption(doc_presenter, solr_documents_features_block.primary_caption_field, default: Spotlight::PageConfigurations::DOCUMENT_TITLE_KEY) %>
26
+
27
+ <a href="#" title="<%= caption_text %>">
26
28
  <%= truncate(caption_text, length: 95) %>
27
29
  </a>
28
30
  <% if solr_documents_features_block.secondary_caption? %>
29
- <p><%= doc_presenter.field_value(blacklight_config.index_fields[solr_documents_features_block.secondary_caption_field] || Blacklight::Configuration::NullField.new(solr_documents_features_block.secondary_caption_field)) %></p>
31
+ <p><%= solr_documents_features_block.document_caption(doc_presenter, solr_documents_features_block.secondary_caption_field) %></p>
30
32
  <% end %>
31
33
  </li>
32
34
  <% end %>
@@ -3,14 +3,14 @@
3
3
  <div class="items-col align-content-start justify-content-between flex-wrap <%= solr_documents_grid_block.text? ? 'col-md-9' : 'col-md-12' %> <%= solr_documents_grid_block.content_align == 'right' ? 'float-right' : 'float-left' %>">
4
4
  <% if solr_documents_grid_block.documents? %>
5
5
  <% solr_documents_grid_block.each_document.each_with_index do |(block_options, document), index| %>
6
- <% doc_presenter = index_presenter(document) %>
6
+ <% doc_presenter = document_presenter(document) %>
7
7
  <div class="box item-<%= index %>" data-id="<%= document.id %>">
8
8
  <% if block_options[:thumbnail_image_url].present? %>
9
- <%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: doc_presenter.heading), counter: -1) %>
9
+ <%= link_to_document(document, image_tag(block_options[:thumbnail_image_url], class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
10
10
  <% elsif block_options[:iiif_tilesource_base].present? %>
11
- <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: doc_presenter.heading), counter: -1) %>
12
- <% elsif has_thumbnail? document %>
13
- <%= render_thumbnail_tag(document, { class: 'img-thumbnail', alt: doc_presenter.heading }, document_counter: -1) %>
11
+ <%= link_to_document(document, image_tag(block_options[:iiif_tilesource_base] + '/full/!400,400/0/default.jpg', class: 'img-thumbnail', alt: doc_presenter.heading, skip_pipeline: true), counter: -1) %>
12
+ <% elsif doc_presenter.thumbnail.exists? %>
13
+ <%= doc_presenter.thumbnail.thumbnail_tag({ class: 'img-thumbnail', alt: doc_presenter.heading }, document_counter: -1) %>
14
14
  <% end %>
15
15
  </div>
16
16
  <% end %>
@@ -16,6 +16,10 @@
16
16
  <%= file[:caption] %>
17
17
  </div>
18
18
  <% end %>
19
+
20
+ <% if uploaded_items_block.zpr_link? %>
21
+ <%= button_tag t('.zpr_link_html', title: file[:caption]), class: 'btn btn-secondary zpr-link', data: { 'iiif-tilesource' => { type: 'image', url: file[:url] }.to_json } %>
22
+ <% end %>
19
23
  </div>
20
24
  </div>
21
25
  <% end %>
@@ -0,0 +1,24 @@
1
+ <% tag = f.object %>
2
+
3
+ <%= render layout: 'spotlight/shared/dd3_item', locals: { id: tag.id.to_s, field: f, dd3_content_classes: "tag" , enabled_method: :present?, label_method: :name, label: tag.name } do |_, section| %>
4
+ <% case section when nil %>
5
+ <div class="d-flex flex-grow-1">
6
+ <div class="flex-grow-1 mx-2 main">
7
+ <h4 class="card-title h6 mb-0" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
8
+ <a href="#edit-in-place" class="field-label edit-in-place"><%= tag.name %></a>
9
+ <%= f.hidden_field :name, value: tag.name , class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true'} %>
10
+ </h4>
11
+
12
+ <div class="card-text">
13
+ <div class=""><%= t 'spotlight.tags.index.taggings.count', count: tag.taggings.count %> &bull; <%= link_to t(:'helpers.action.view'), url_to_tag_facet(tag.name) %></div>
14
+ <%= f.hidden_field :current_name, value: tag.name %>
15
+
16
+ </div>
17
+ </div>
18
+ <div class="flex m-2">
19
+ <div class="card-text">
20
+ <%= delete_link(tag, exhibit_tag_path(current_exhibit, tag), class: 'btn btn-danger btn-sm') %>
21
+ </div>
22
+ </div>
23
+ <% end %>
24
+ <% end %>
@@ -7,21 +7,17 @@
7
7
  <% if @tags.empty? %>
8
8
  <p><%= t :'.no_tags' %></p>
9
9
  <% else %>
10
- <table class="table table-striped tags">
11
- <thead>
12
- <th><%= t '.name' %></th>
13
- <th><%= t '.taggings.count' %></th>
14
- <%# TODO last used? %>
15
- <th><%= t '.actions' %></th>
16
- </thead>
17
- <tbody>
18
- <% @tags.each do |tag| %>
19
- <tr>
20
- <td><%= link_to tag.name, url_to_tag_facet(tag.name) %></td>
21
- <td><%= tag.taggings.count %></td>
22
- <td><%= delete_link(tag, exhibit_tag_path(current_exhibit, tag), class: 'btn btn-danger btn-sm') %></td>
23
- </tr>
10
+ <%= bootstrap_form_for @exhibit, url: update_all_exhibit_tags_path(@exhibit), layout: :horizontal, control_col: 'col-sm-10' do |f| %>
11
+ <ul class="dd-list">
12
+ <% @tags.each_with_index do |tag, index| %>
13
+ <%= f.fields_for :owned_tags_attributes, tag, index: index do |p| %>
14
+ <%= render partial: 'tag', locals: { f: p } %>
15
+ <% end %>
16
+ </ul>
17
+ <% end %>
18
+
19
+ <div class="float-right">
20
+ <%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
21
+ </div>
24
22
  <% end %>
25
- </tbody>
26
- </table>
27
23
  <% end %>
@@ -71,6 +71,12 @@ json.set!(locale) do
71
71
  end
72
72
  end
73
73
 
74
+ current_exhibit.groups.each do |group|
75
+ json.set!(group.slug) do
76
+ json.title group.translated_title(default: '')
77
+ end
78
+ end
79
+
74
80
  current_exhibit.searches.each do |search|
75
81
  json.set!(search.slug) do
76
82
  json.title search.translated_title(default: '')
@@ -83,6 +83,7 @@ ignore_unused:
83
83
  - helpers.action.destroy # no idea here
84
84
  - helpers.action.spotlight/search.destroy # I think it might be used by #action_default_value
85
85
  - helpers.submit.contact_form.create # /shrug
86
+ - spotlight.bulk_actions.{add_tags,change_visibility,remove_tags}.changed.* # app/controllers/spotlight/bulk_actions_controller.rb
86
87
 
87
88
  <% I18n::Tasks.add_scanner 'I18n::Tasks::Scanners::PatternMapper',
88
89
  patterns: [
@@ -34,6 +34,9 @@ ar:
34
34
  zero_results:
35
35
  expand_html: "تستطيع أن <a href=\"%{clear_search_url}\"> تمسح استعلام البحث </a> أو محاولة <a href=\"%{expand_search_url}\"> البحث في كل المواد المعروضة لاستعلام البحث ل\"%{browse_query}\"</a>"
36
36
  result_number: لم يتطابق بحثك مع أي عنصر في هذه الفئة.
37
+ exhibits:
38
+ groups:
39
+ all: الكل
37
40
  header_links:
38
41
  contact: ملاحظات واقتراحات
39
42
  login: تسجيل الدخول
@@ -52,7 +55,14 @@ ar:
52
55
  few: "%{count} عناصر"
53
56
  many: "%{count} عنصراً"
54
57
  other: "%{count} عنصراً"
55
-
58
+ browse_group_categories_block:
59
+ items:
60
+ one: "%{count} عنصر"
61
+ two: "%{count} عنصرين"
62
+ few: "%{count} عناصر"
63
+ many: "%{count} عنصراً"
64
+ other: "%{count} عنصراً"
65
+ view_all: مشاهدة الكل
56
66
  link_to_search_block:
57
67
  items:
58
68
  zero: "%{count} عنصر"
@@ -152,6 +152,10 @@ en:
152
152
  spotlight_default:
153
153
  updated: The %{model} was successfully updated.
154
154
  submit: Save changes
155
+ tags:
156
+ batch_updated:
157
+ one: Renaming %{count} tag
158
+ other: Renaming %{count} tags
155
159
  update: Save changes
156
160
  locales:
157
161
  ar: Arabic
@@ -165,12 +169,6 @@ en:
165
169
  pt-BR: Portuguese - Brazil
166
170
  sq: Albanian
167
171
  zh: Chinese
168
- reindexing_log:
169
- status:
170
- failed: Failed
171
- in_progress: In progress
172
- succeeded: Successful
173
- unstarted: Not yet started
174
172
  shared:
175
173
  site_sidebar:
176
174
  documentation: Curator documentation
@@ -237,6 +235,130 @@ en:
237
235
  zero_results:
238
236
  expand_html: You can <a href="%{clear_search_url}"> clear this search</a> or try <a href="%{expand_search_url}">searching all exhibit items for "%{browse_query}"</a>.
239
237
  result_number: Your search did not match any items in this browse category.
238
+ bulk_actions:
239
+ add: Add
240
+ add_tags:
241
+ changed:
242
+ one: Tags are being added for %{count} item.
243
+ other: Tags are being added for %{count} items.
244
+ description:
245
+ one: There is %{count} item in the current search result set. Tags entered below will be added to this item. This action won’t affect any tags already assigned to this item.
246
+ other: There are %{count} items in the current search result set. Tags entered below will be added to all %{count} items in the result set. This action won’t affect any tags already assigned to these items.
247
+ heading: Add tags
248
+ label: Enter tags to add
249
+ change: Change
250
+ change_visibility:
251
+ changed:
252
+ one: Visibility of %{count} item is being updated.
253
+ other: Visibility of %{count} items is being updated.
254
+ description:
255
+ one: There is %{count} item in the current search result set. A visibility change will be applied to this item.
256
+ other: There are %{count} items in the current search result set. A visibility change will be applied to all items in the result set.
257
+ heading: Change item visibility
258
+ label: Item visibility
259
+ private: Private
260
+ public: Public
261
+ confirm: All items in the result set will be updated. Are you sure?
262
+ label: Bulk actions
263
+ remove: Remove
264
+ remove_tags:
265
+ assigned: Currently assigned tags
266
+ changed:
267
+ one: Tags are being removed for %{count} item.
268
+ other: Tags are being removed for %{count} items.
269
+ description_html:
270
+ one: "<p>There is %{count} item in the current search result set. Tags shown below are assigned to this item.</p><p>When you remove a tag below it will be unassigned from this item.</p>"
271
+ other: "<p>There are %{count} items in the current search result set. Tags shown below are assigned to one or more of those items.</p><p>When you remove a tag below it will be unassigned from any item in the result set to which that tag is currently assigned.</p>"
272
+ heading: Remove tags
273
+ label: Enter tags to remove
274
+ bulk_updates:
275
+ download:
276
+ guidelines_html: |
277
+ <h2>Guidelines for CSV updates</h2>
278
+ <p class="instructions">
279
+ The downloadable CSV file for this exhibit contains one line for each item in the exhibit. Each line contains one or more comma-separated values. Although you can update the CSV file directly, we strongly recommended importing it into a spreadsheet application and making your updates there. The rest of these guidelines assume you are making updates in a spreadsheet.
280
+ </p>
281
+ <p class="instructions">
282
+ Note that the more lines there are in the completed CSV file that you upload, the longer the updates will take to process. If your exhibit contains more than a few thousand items, after importing the CSV file into a spreadsheet application, you should consider removing the rows of items you do not intend to update. This will also make it easier to focus on the items you do intend to update.
283
+ </p>
284
+ <h3>Column headers</h3>
285
+ <p class="instructions">
286
+ Do not edit the column headers. These are used to match property values to existing exhibit item fields.
287
+ </p>
288
+
289
+ <h3>Reference fields</h3>
290
+ <p class="instructions">
291
+ Do not edit the reference fields. These are intended to help you identify items whose updatable fields you might want to change. Updates to the reference fields will not be processed.
292
+ </p>
293
+
294
+ <p class="instructions">
295
+ If you are making a lot of updates, we recommended you use the protect or lock feature of your spreadsheet application to lock the reference field columns and ensure you don’t inadvertently edit them.
296
+ </p>
297
+
298
+ <h3>Updatable fields</h3>
299
+ <dl>
300
+ <dt>Visibility</dt>
301
+ <dd>Valid values are <em>public</em> (expressed as <samp>TRUE</samp>) and <em>private</em> (blank value).</dd>
302
+
303
+ <dt>Tags</dt>
304
+ <dd>
305
+ <p class="instructions">
306
+ If you chose to include tags in the CSV file, there will be a column in the spreadsheet for each existing tag in the exhibit, prefixed with <samp>Tag:</samp>, such as <samp>Tag: apples</samp>. (If you want to add to items a tag that does not yet exist, you must first add that tag to at least one item (by editing an item or using the Bulk actions feature on a search result set of items) before downloading the CSV file.)
307
+ </p>
308
+
309
+ <p class="instructions">
310
+ To assign a tag to an exhibit item, the value of the <samp>Tag:</samp> column for that item must be <samp>TRUE</samp>. A blank value in the <samp>Tag:</samp> column for an item means that tag is not assigned to that item.
311
+ </p>
312
+
313
+ <p class="instructions">
314
+ To remove a tag currently assigned to an item, remove the <samp>TRUE</samp> value from the appropriate <samp>Tag:</samp> column for that item.
315
+ </p>
316
+ </dd>
317
+ </dl>
318
+ instructions_html: A CSV file listing each item in this exhibit will be generated with the reference and updatable fields you specify below. <i>Reference fields</i> are intended to help you identify items that you intend to update. <i>Updatable fields</i> are the fields for which you can update values (see guidelines below).
319
+ item_id: Item ID
320
+ item_title: Item title
321
+ reference_fields:
322
+ heading: Reference fields
323
+ submit: Download CSV file
324
+ tags: Tags
325
+ updatable_fields:
326
+ heading: Updatable fields
327
+ visibility: Visibility
328
+ edit:
329
+ download:
330
+ heading: Download CSV
331
+ header: Bulk updates
332
+ overview:
333
+ heading: Overview
334
+ upload:
335
+ heading: Upload CSV
336
+ overview:
337
+ instructions_html: |
338
+ <p>You can update in bulk several properties of items in this exhibit:</p> <ul>
339
+ <li>Visibility</li>
340
+ <li>Tags</li>
341
+ </ul> <p>The steps to making bulk updates are:</p> <ol>
342
+ <li>Download a CSV (comma-separated values) file from the Download CSV tab above. The downloaded CSV file will contain a row for every item in this exhibit. Each row contains the unique ID of an exhibit item along with the values of the reference and updatable fields you specify.</li>
343
+ <li>Import the CSV file into a new spreadsheet, using an application such as a Google Sheets or Excel.</li>
344
+ <li>In the new spreadsheet, update the values for the updatable fields of exhibit items you want to change. When you’ve finished making updates, save the spreadsheet.</li>
345
+ <li>(Optional) Remove the rows for items that contain no updated values. This is not required but for exhibits with many items this can speed up the import process. If necessary, save the spreadsheet.</li>
346
+ <li>Download/export the updated spreadsheet to your computer as a .csv file.</li>
347
+ <li>Use the Upload CSV tab above to submit the updated file for processing.</li>
348
+ </ol>
349
+ progress_panel:
350
+ begin_html: Began CSV processing
351
+ completed_html: Completed CSV processing
352
+ error: An error occured while processing the CSV. Contact your exhibits administrator for more information.
353
+ heading: CSV processing status
354
+ update:
355
+ error: There was a problem uploading your CSV.
356
+ submitted: The CSV file was uploaded successfully.
357
+ upload:
358
+ file_label: Upload CSV file
359
+ form_help: The uploaded file must have a ".csv" extension
360
+ instructions: After you've saved updates to a CSV file, use the Upload CSV file action below to submit it for processing.
361
+ submit: Upload
240
362
  catalog:
241
363
  admin:
242
364
  header: Items
@@ -264,13 +386,14 @@ en:
264
386
  exhibit_visibility:
265
387
  label: Item visibility
266
388
  private: Private
389
+ public: Public
267
390
  fields:
268
391
  date_added: Date added
269
392
  title: Title
270
393
  visibility: Public
271
394
  reindex_progress_panel:
272
395
  begin_html: Began reindexing a total of <span data-behavior='total'></span> items.
273
- completed_html: Reindexed <span data-behavior='completed'></span> of <span data-behavior='total'></span> items.
396
+ current_html: Reindexed <span data-behavior='completed'></span> of <span data-behavior='total'></span> items.
274
397
  error: An error occured while reindexing. Contact your exhibits administrator for more information.
275
398
  heading: Reindexing status
276
399
  configuration:
@@ -278,6 +401,7 @@ en:
278
401
  sidebar:
279
402
  appearance: Appearance
280
403
  header: Configuration
404
+ job_trackers: Job status
281
405
  metadata: Metadata
282
406
  search_configuration: Search
283
407
  settings: General
@@ -319,6 +443,7 @@ en:
319
443
  about_pages: About pages
320
444
  analytics: Analytics
321
445
  browse: Browse
446
+ bulk_updates: Bulk updates
322
447
  dashboard: Dashboard
323
448
  feature_pages: Feature pages
324
449
  header: Curation
@@ -512,6 +637,37 @@ en:
512
637
  someone_invited_you: The Exhibits Administrator has invited you to help work on the "%{exhibit_name}" exhibit.
513
638
  subject: Invitation to manage \"%{exhibit_name}\"
514
639
  visit: Visit exhibit
640
+ job_trackers:
641
+ show:
642
+ headers:
643
+ details: Details
644
+ message: Message
645
+ messages:
646
+ created_by: job created by %{user}
647
+ errors:
648
+ one: "(%{count} error)"
649
+ other: "(%{count} errors)"
650
+ progress: processed %{progress} / %{total}
651
+ started: job started
652
+ status:
653
+ completed: job completed
654
+ enqueued: job enqueued
655
+ failed: job failed
656
+ in_progress: ''
657
+ missing: "(missing status)"
658
+ pending: job pending
659
+ summary:
660
+ completed: Completed %{last_updated} ago in %{duration}
661
+ enqueued: In progress for %{created_at}
662
+ failed: Failed %{last_updated} ago in %{duration}
663
+ in_progress: In progress for %{created_at}
664
+ status:
665
+ completed: Successful
666
+ enqueued: Not yet started
667
+ failed: Failed
668
+ in_progress: In progress
669
+ missing: Unknown
670
+ pending: Pending
515
671
  main_navigation:
516
672
  about: About
517
673
  browse: Browse
@@ -600,6 +756,7 @@ en:
600
756
  role:
601
757
  admin: Admin
602
758
  curator: Curator
759
+ viewer: Viewer
603
760
  roles:
604
761
  edit_fields:
605
762
  help: Enter a valid email address
@@ -765,10 +922,15 @@ en:
765
922
  items:
766
923
  one: "%{count} item"
767
924
  other: "%{count} items"
925
+ view_all: View all
768
926
  link_to_search_block:
769
927
  items:
770
928
  one: "%{count} item"
771
929
  other: "%{count} items"
930
+ solr_documents_block:
931
+ zpr_link_html: View <span class="sr-only">%{title}</span> larger
932
+ uploaded_items_block:
933
+ zpr_link_html: View <span class="sr-only">%{title}</span> larger
772
934
  sites:
773
935
  edit:
774
936
  basic_settings:
@@ -788,12 +950,10 @@ en:
788
950
  home: Exhibits
789
951
  tags:
790
952
  index:
791
- actions: Actions
792
953
  header: Tags
793
- name: Tag name
794
954
  no_tags: No items in this exhibit have been tagged. You can add tags to an item on the item details page while in curation mode.
795
955
  taggings:
796
- count: Items tagged
956
+ count: 'Items tagged: %{count}'
797
957
  topbar:
798
958
  label: Utilities
799
959
  translations: