blacklight-spotlight 2.4.1 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/assets/javascripts/spotlight/block_mixins/formable.js +6 -2
  4. data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +2 -0
  5. data/app/controllers/concerns/spotlight/base.rb +2 -0
  6. data/app/controllers/concerns/spotlight/catalog.rb +2 -0
  7. data/app/controllers/concerns/spotlight/config.rb +2 -0
  8. data/app/controllers/concerns/spotlight/controller.rb +2 -0
  9. data/app/controllers/spotlight/about_pages_controller.rb +2 -0
  10. data/app/controllers/spotlight/admin_users_controller.rb +2 -0
  11. data/app/controllers/spotlight/appearances_controller.rb +2 -0
  12. data/app/controllers/spotlight/application_controller.rb +2 -0
  13. data/app/controllers/spotlight/attachments_controller.rb +2 -0
  14. data/app/controllers/spotlight/browse_controller.rb +2 -0
  15. data/app/controllers/spotlight/catalog_controller.rb +2 -0
  16. data/app/controllers/spotlight/concerns/application_controller.rb +2 -0
  17. data/app/controllers/spotlight/concerns/catalog_search_context.rb +2 -0
  18. data/app/controllers/spotlight/confirmations_controller.rb +2 -0
  19. data/app/controllers/spotlight/contact_email_controller.rb +2 -0
  20. data/app/controllers/spotlight/contact_forms_controller.rb +2 -0
  21. data/app/controllers/spotlight/contacts_controller.rb +2 -0
  22. data/app/controllers/spotlight/custom_fields_controller.rb +2 -0
  23. data/app/controllers/spotlight/dashboards_controller.rb +2 -0
  24. data/app/controllers/spotlight/exhibits_controller.rb +2 -0
  25. data/app/controllers/spotlight/feature_pages_controller.rb +2 -0
  26. data/app/controllers/spotlight/featured_images_controller.rb +2 -0
  27. data/app/controllers/spotlight/filters_controller.rb +2 -0
  28. data/app/controllers/spotlight/home_pages_controller.rb +2 -0
  29. data/app/controllers/spotlight/languages_controller.rb +2 -0
  30. data/app/controllers/spotlight/lock_controller.rb +2 -0
  31. data/app/controllers/spotlight/metadata_configurations_controller.rb +2 -0
  32. data/app/controllers/spotlight/pages_controller.rb +2 -0
  33. data/app/controllers/spotlight/resources/csv_upload_controller.rb +2 -0
  34. data/app/controllers/spotlight/resources/iiif_harvester_controller.rb +2 -0
  35. data/app/controllers/spotlight/resources/upload_controller.rb +2 -0
  36. data/app/controllers/spotlight/resources_controller.rb +2 -0
  37. data/app/controllers/spotlight/roles_controller.rb +2 -0
  38. data/app/controllers/spotlight/search_configurations_controller.rb +2 -0
  39. data/app/controllers/spotlight/searches_controller.rb +2 -0
  40. data/app/controllers/spotlight/sites_controller.rb +2 -0
  41. data/app/controllers/spotlight/solr_controller.rb +2 -0
  42. data/app/controllers/spotlight/tags_controller.rb +2 -0
  43. data/app/controllers/spotlight/translations_controller.rb +2 -0
  44. data/app/controllers/spotlight/versions_controller.rb +2 -0
  45. data/app/controllers/spotlight/view_configurations_controller.rb +2 -0
  46. data/app/helpers/spotlight/application_helper.rb +2 -0
  47. data/app/helpers/spotlight/browse_helper.rb +2 -0
  48. data/app/helpers/spotlight/crop_helper.rb +2 -0
  49. data/app/helpers/spotlight/crud_link_helpers.rb +2 -0
  50. data/app/helpers/spotlight/languages_helper.rb +2 -0
  51. data/app/helpers/spotlight/main_app_helpers.rb +2 -0
  52. data/app/helpers/spotlight/meta_helper.rb +2 -0
  53. data/app/helpers/spotlight/navbar_helper.rb +2 -0
  54. data/app/helpers/spotlight/pages_helper.rb +2 -0
  55. data/app/helpers/spotlight/rendering_helper.rb +2 -0
  56. data/app/helpers/spotlight/roles_helper.rb +2 -0
  57. data/app/helpers/spotlight/search_configurations_helper.rb +2 -0
  58. data/app/helpers/spotlight/searches_helper.rb +2 -0
  59. data/app/helpers/spotlight/title_helper.rb +2 -0
  60. data/app/helpers/spotlight/translations_helper.rb +2 -0
  61. data/app/jobs/spotlight/add_uploads_from_csv.rb +2 -0
  62. data/app/jobs/spotlight/default_thumbnail_job.rb +2 -0
  63. data/app/jobs/spotlight/reindex_job.rb +2 -0
  64. data/app/jobs/spotlight/rename_sidecar_field_job.rb +2 -0
  65. data/app/mailers/spotlight/confirmation_mailer.rb +2 -0
  66. data/app/mailers/spotlight/contact_mailer.rb +2 -0
  67. data/app/mailers/spotlight/indexing_complete_mailer.rb +2 -0
  68. data/app/mailers/spotlight/invitation_mailer.rb +2 -0
  69. data/app/models/ability.rb +2 -0
  70. data/app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb +2 -0
  71. data/app/models/concerns/spotlight/blacklight_configuration_defaults.rb +2 -0
  72. data/app/models/concerns/spotlight/custom_translation_extension.rb +2 -0
  73. data/app/models/concerns/spotlight/exhibit_analytics.rb +2 -0
  74. data/app/models/concerns/spotlight/exhibit_defaults.rb +2 -0
  75. data/app/models/concerns/spotlight/exhibit_documents.rb +2 -0
  76. data/app/models/concerns/spotlight/resources/open_graph.rb +2 -0
  77. data/app/models/concerns/spotlight/resources/web.rb +2 -0
  78. data/app/models/concerns/spotlight/sitemap.rb +2 -0
  79. data/app/models/concerns/spotlight/solr_document.rb +2 -0
  80. data/app/models/concerns/spotlight/solr_document/atomic_updates.rb +2 -0
  81. data/app/models/concerns/spotlight/solr_document/finder.rb +2 -0
  82. data/app/models/concerns/spotlight/solr_document/uploaded_resource.rb +2 -0
  83. data/app/models/concerns/spotlight/translatables.rb +2 -0
  84. data/app/models/concerns/spotlight/user.rb +2 -0
  85. data/app/models/sir_trevor_rails/blocks/browse_block.rb +2 -0
  86. data/app/models/sir_trevor_rails/blocks/displayable.rb +2 -0
  87. data/app/models/sir_trevor_rails/blocks/featured_pages_block.rb +2 -0
  88. data/app/models/sir_trevor_rails/blocks/link_to_search_block.rb +2 -0
  89. data/app/models/sir_trevor_rails/blocks/oembed_block.rb +2 -0
  90. data/app/models/sir_trevor_rails/blocks/search_results_block.rb +2 -0
  91. data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +2 -0
  92. data/app/models/sir_trevor_rails/blocks/solr_documents_carousel_block.rb +2 -0
  93. data/app/models/sir_trevor_rails/blocks/solr_documents_embed_block.rb +2 -0
  94. data/app/models/sir_trevor_rails/blocks/solr_documents_features_block.rb +2 -0
  95. data/app/models/sir_trevor_rails/blocks/solr_documents_grid_block.rb +2 -0
  96. data/app/models/sir_trevor_rails/blocks/textable.rb +2 -0
  97. data/app/models/sir_trevor_rails/blocks/uploaded_items_block.rb +2 -0
  98. data/app/models/spotlight/ability.rb +2 -0
  99. data/app/models/spotlight/about_page.rb +2 -0
  100. data/app/models/spotlight/analytics/ga.rb +2 -0
  101. data/app/models/spotlight/attachment.rb +2 -0
  102. data/app/models/spotlight/blacklight_configuration.rb +2 -0
  103. data/app/models/spotlight/contact.rb +2 -0
  104. data/app/models/spotlight/contact_email.rb +2 -0
  105. data/app/models/spotlight/contact_form.rb +2 -0
  106. data/app/models/spotlight/contact_image.rb +2 -0
  107. data/app/models/spotlight/custom_field.rb +2 -0
  108. data/app/models/spotlight/exhibit.rb +2 -0
  109. data/app/models/spotlight/exhibit_thumbnail.rb +2 -0
  110. data/app/models/spotlight/feature_page.rb +2 -0
  111. data/app/models/spotlight/featured_image.rb +2 -0
  112. data/app/models/spotlight/field_metadata.rb +2 -0
  113. data/app/models/spotlight/filter.rb +2 -0
  114. data/app/models/spotlight/home_page.rb +2 -0
  115. data/app/models/spotlight/language.rb +2 -0
  116. data/app/models/spotlight/lock.rb +2 -0
  117. data/app/models/spotlight/main_navigation.rb +2 -0
  118. data/app/models/spotlight/masthead.rb +2 -0
  119. data/app/models/spotlight/page.rb +2 -0
  120. data/app/models/spotlight/page_configurations.rb +2 -0
  121. data/app/models/spotlight/reindex_progress.rb +2 -0
  122. data/app/models/spotlight/reindexing_log_entry.rb +2 -0
  123. data/app/models/spotlight/resource.rb +2 -0
  124. data/app/models/spotlight/resources/csv_upload.rb +2 -0
  125. data/app/models/spotlight/resources/iiif_harvester.rb +2 -0
  126. data/app/models/spotlight/resources/iiif_manifest.rb +2 -0
  127. data/app/models/spotlight/resources/iiif_service.rb +2 -0
  128. data/app/models/spotlight/resources/json_upload.rb +2 -0
  129. data/app/models/spotlight/resources/upload.rb +2 -0
  130. data/app/models/spotlight/role.rb +2 -0
  131. data/app/models/spotlight/search.rb +2 -0
  132. data/app/models/spotlight/site.rb +2 -0
  133. data/app/models/spotlight/solr_document_sidecar.rb +2 -0
  134. data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -0
  135. data/app/serializers/spotlight/exhibit_export_serializer.rb +2 -0
  136. data/app/serializers/spotlight/featured_image_representer.rb +2 -0
  137. data/app/serializers/spotlight/main_navigation_representer.rb +2 -0
  138. data/app/serializers/spotlight/page_representer.rb +2 -0
  139. data/app/services/spotlight/carrierwave_file_resolver.rb +2 -0
  140. data/app/services/spotlight/iiif_resource_resolver.rb +2 -0
  141. data/app/services/spotlight/invite_users_service.rb +2 -0
  142. data/app/services/spotlight/resources/iiif_builder.rb +2 -0
  143. data/app/services/spotlight/solr_document_builder.rb +2 -0
  144. data/app/services/spotlight/upload_solr_document_builder.rb +2 -0
  145. data/app/uploaders/spotlight/attachment_uploader.rb +2 -0
  146. data/app/uploaders/spotlight/featured_image_uploader.rb +2 -0
  147. data/app/values/custom_field_name.rb +2 -0
  148. data/app/views/devise/confirmations/new.html.erb +1 -2
  149. data/app/views/shared/_analytics.html.erb +1 -0
  150. data/config/routes.rb +2 -0
  151. data/lib/blacklight/spotlight.rb +2 -0
  152. data/lib/generators/spotlight/install_generator.rb +2 -1
  153. data/lib/generators/spotlight/scaffold_resource_generator.rb +2 -0
  154. data/lib/generators/spotlight/templates/catalog_controller.rb +2 -0
  155. data/lib/generators/spotlight/templates/config/initializers/riiif.rb +3 -1
  156. data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +4 -1
  157. data/lib/generators/spotlight/templates/config/initializers/translation.rb +2 -0
  158. data/lib/generators/spotlight/templates/config/sitemap.rb +2 -0
  159. data/lib/generators/spotlight/templates/spotlight_helper.rb +2 -0
  160. data/lib/migration/iiif.rb +2 -0
  161. data/lib/migration/page_language.rb +2 -0
  162. data/lib/spotlight.rb +2 -0
  163. data/lib/spotlight/engine.rb +8 -4
  164. data/lib/spotlight/version.rb +3 -1
  165. data/lib/tasks/spotlight_tasks.rake +2 -0
  166. data/spec/controllers/application_controller_spec.rb +2 -0
  167. data/spec/controllers/spotlight/about_pages_controller_spec.rb +2 -0
  168. data/spec/controllers/spotlight/admin_users_controller_spec.rb +4 -2
  169. data/spec/controllers/spotlight/appearances_controller_spec.rb +2 -0
  170. data/spec/controllers/spotlight/application_controller_spec.rb +2 -0
  171. data/spec/controllers/spotlight/attachments_controller_spec.rb +2 -0
  172. data/spec/controllers/spotlight/browse_controller_spec.rb +2 -0
  173. data/spec/controllers/spotlight/catalog_controller_spec.rb +2 -0
  174. data/spec/controllers/spotlight/confirmations_controller_spec.rb +2 -0
  175. data/spec/controllers/spotlight/contact_email_controller_spec.rb +2 -0
  176. data/spec/controllers/spotlight/contact_forms_controller_spec.rb +2 -0
  177. data/spec/controllers/spotlight/contacts_controller_spec.rb +2 -0
  178. data/spec/controllers/spotlight/custom_fields_controller_spec.rb +2 -0
  179. data/spec/controllers/spotlight/dashboards_controller_spec.rb +2 -0
  180. data/spec/controllers/spotlight/exhibits_controller_spec.rb +3 -1
  181. data/spec/controllers/spotlight/feature_pages_controller_spec.rb +2 -0
  182. data/spec/controllers/spotlight/featured_images_controller_spec.rb +2 -0
  183. data/spec/controllers/spotlight/filters_controller_spec.rb +2 -0
  184. data/spec/controllers/spotlight/home_pages_controller_spec.rb +2 -0
  185. data/spec/controllers/spotlight/languages_controller_spec.rb +2 -0
  186. data/spec/controllers/spotlight/metadata_configurations_controller_spec.rb +2 -0
  187. data/spec/controllers/spotlight/pages_controller_spec.rb +2 -0
  188. data/spec/controllers/spotlight/resources/csv_upload_controller_spec.rb +2 -0
  189. data/spec/controllers/spotlight/resources/upload_controller_spec.rb +2 -0
  190. data/spec/controllers/spotlight/resources_controller_spec.rb +3 -1
  191. data/spec/controllers/spotlight/roles_controller_spec.rb +2 -0
  192. data/spec/controllers/spotlight/search_configurations_controller_spec.rb +2 -0
  193. data/spec/controllers/spotlight/searches_controller_spec.rb +2 -0
  194. data/spec/controllers/spotlight/sites_controller_spec.rb +2 -0
  195. data/spec/controllers/spotlight/solr_controller_spec.rb +2 -0
  196. data/spec/controllers/spotlight/tags_controller_spec.rb +2 -0
  197. data/spec/controllers/spotlight/translations_controller_spec.rb +2 -0
  198. data/spec/controllers/spotlight/versions_controller_spec.rb +2 -0
  199. data/spec/controllers/spotlight/view_configurations_controller_spec.rb +2 -0
  200. data/spec/examples.txt +1302 -6
  201. data/spec/factories/contact_emails.rb +2 -0
  202. data/spec/factories/contact_images.rb +2 -0
  203. data/spec/factories/contacts.rb +2 -0
  204. data/spec/factories/custom_fields.rb +2 -0
  205. data/spec/factories/exhibit_thumbnails.rb +2 -0
  206. data/spec/factories/exhibits.rb +2 -0
  207. data/spec/factories/featured_images.rb +2 -0
  208. data/spec/factories/language.rb +2 -0
  209. data/spec/factories/main_navigation.rb +2 -0
  210. data/spec/factories/pages.rb +2 -0
  211. data/spec/factories/reindexing_log_entries.rb +2 -0
  212. data/spec/factories/resources.rb +2 -0
  213. data/spec/factories/roles.rb +2 -0
  214. data/spec/factories/searches.rb +2 -0
  215. data/spec/factories/tags.rb +2 -0
  216. data/spec/factories/translation.rb +2 -0
  217. data/spec/factories/users.rb +2 -0
  218. data/spec/features/about_page_spec.rb +2 -0
  219. data/spec/features/add_contacts_spec.rb +2 -0
  220. data/spec/features/add_custom_field_metadata_spec.rb +2 -0
  221. data/spec/features/add_iiif_manifest_spec.rb +2 -0
  222. data/spec/features/add_items_spec.rb +2 -0
  223. data/spec/features/autocomplete_typeahead_spec.rb +2 -0
  224. data/spec/features/browse_category_admin_spec.rb +2 -0
  225. data/spec/features/browse_category_spec.rb +2 -0
  226. data/spec/features/catalog_spec.rb +2 -0
  227. data/spec/features/confirm_email_spec.rb +2 -0
  228. data/spec/features/create_exhibit_spec.rb +2 -0
  229. data/spec/features/create_page_spec.rb +2 -0
  230. data/spec/features/dashboard_spec.rb +2 -0
  231. data/spec/features/edit_contact_spec.rb +2 -0
  232. data/spec/features/edit_search_fields_spec.rb +2 -0
  233. data/spec/features/exhibit_masthead_spec.rb +2 -0
  234. data/spec/features/exhibit_themes_spec.rb +2 -0
  235. data/spec/features/exhibits/add_tags_spec.rb +2 -0
  236. data/spec/features/exhibits/administration_spec.rb +2 -0
  237. data/spec/features/exhibits/custom_metadata_fields_spec.rb +2 -0
  238. data/spec/features/exhibits/edit_metadata_fields_spec.rb +2 -0
  239. data/spec/features/exhibits/language_create_edit_spec.rb +2 -0
  240. data/spec/features/exhibits_index_spec.rb +2 -0
  241. data/spec/features/feature_page_spec.rb +2 -0
  242. data/spec/features/home_page_spec.rb +2 -0
  243. data/spec/features/import_exhibit_spec.rb +2 -0
  244. data/spec/features/item_admin_spec.rb +2 -0
  245. data/spec/features/javascript/about_page_admin_spec.rb +2 -0
  246. data/spec/features/javascript/block_controls_spec.rb +2 -0
  247. data/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb +2 -0
  248. data/spec/features/javascript/blocks/featured_pages_block_spec.rb +2 -0
  249. data/spec/features/javascript/blocks/link_to_search_block_spec.rb +2 -0
  250. data/spec/features/javascript/blocks/rule_block_spec.rb +2 -0
  251. data/spec/features/javascript/blocks/search_result_block_spec.rb +2 -0
  252. data/spec/features/javascript/blocks/solr_documents_block_spec.rb +2 -0
  253. data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +2 -0
  254. data/spec/features/javascript/edit_in_place_spec.rb +2 -0
  255. data/spec/features/javascript/feature_page_admin_spec.rb +2 -0
  256. data/spec/features/javascript/home_page_edit_spec.rb +2 -0
  257. data/spec/features/javascript/metadata_admin_spec.rb +2 -0
  258. data/spec/features/javascript/multi_image_select_spec.rb +2 -0
  259. data/spec/features/javascript/reindex_monitor_spec.rb +2 -0
  260. data/spec/features/javascript/roles_admin_spec.rb +2 -0
  261. data/spec/features/javascript/search_config_admin_spec.rb +2 -0
  262. data/spec/features/javascript/search_context_spec.rb +2 -0
  263. data/spec/features/main_navigation_spec.rb +2 -0
  264. data/spec/features/metadata_admin_spec.rb +2 -0
  265. data/spec/features/report_a_problem_spec.rb +2 -0
  266. data/spec/features/site_admin_management_spec.rb +2 -0
  267. data/spec/features/site_masthead_spec.rb +2 -0
  268. data/spec/features/slideshow_spec.rb +2 -0
  269. data/spec/features/translation_scope_spec.rb +2 -0
  270. data/spec/fixtures/iiif_responses.rb +2 -0
  271. data/spec/helpers/spotlight/application_helper_spec.rb +2 -0
  272. data/spec/helpers/spotlight/browse_helper_spec.rb +2 -0
  273. data/spec/helpers/spotlight/crop_helper_spec.rb +2 -0
  274. data/spec/helpers/spotlight/crud_link_helpers_spec.rb +2 -0
  275. data/spec/helpers/spotlight/languages_helper_spec.rb +2 -0
  276. data/spec/helpers/spotlight/main_app_helpers_spec.rb +2 -0
  277. data/spec/helpers/spotlight/meta_helper_spec.rb +2 -0
  278. data/spec/helpers/spotlight/navbar_helper_spec.rb +2 -0
  279. data/spec/helpers/spotlight/pages_helper_spec.rb +2 -0
  280. data/spec/helpers/spotlight/roles_helper_spec.rb +2 -0
  281. data/spec/helpers/spotlight/search_configurations_helper_spec.rb +2 -0
  282. data/spec/helpers/spotlight/title_helper_spec.rb +2 -0
  283. data/spec/jobs/spotlight/add_uploads_from_csv_spec.rb +2 -0
  284. data/spec/jobs/spotlight/default_thumbnail_job_spec.rb +2 -0
  285. data/spec/jobs/spotlight/reindex_job_spec.rb +2 -0
  286. data/spec/jobs/spotlight/rename_sidecar_field_job_spec.rb +2 -0
  287. data/spec/lib/migration/iiif_spec.rb +2 -0
  288. data/spec/lib/migration/page_language_spec.rb +2 -0
  289. data/spec/lib/spotlight/controller_spec.rb +2 -0
  290. data/spec/mailers/spotlight/indexing_complete_mailer_spec.rb +2 -0
  291. data/spec/models/sir_trevor_rails/blocks/browse_block_spec.rb +2 -0
  292. data/spec/models/sir_trevor_rails/blocks/featured_pages_block_spec.rb +2 -0
  293. data/spec/models/sir_trevor_rails/blocks/search_results_block_spec.rb +2 -0
  294. data/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb +2 -0
  295. data/spec/models/sir_trevor_rails/blocks/textable_spec.rb +2 -0
  296. data/spec/models/solr_document_spec.rb +2 -0
  297. data/spec/models/spotlight/ability_spec.rb +2 -0
  298. data/spec/models/spotlight/about_page_spec.rb +2 -0
  299. data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +2 -0
  300. data/spec/models/spotlight/analytics/ga_spec.rb +2 -0
  301. data/spec/models/spotlight/blacklight_configuration_spec.rb +2 -0
  302. data/spec/models/spotlight/contact_email_spec.rb +2 -0
  303. data/spec/models/spotlight/contact_form_spec.rb +2 -0
  304. data/spec/models/spotlight/contact_image_spec.rb +2 -0
  305. data/spec/models/spotlight/contact_spec.rb +2 -0
  306. data/spec/models/spotlight/custom_field_spec.rb +2 -0
  307. data/spec/models/spotlight/exhibit_spec.rb +2 -0
  308. data/spec/models/spotlight/exhibit_thumbnail_spec.rb +2 -0
  309. data/spec/models/spotlight/feature_page_spec.rb +2 -0
  310. data/spec/models/spotlight/featured_image_spec.rb +2 -0
  311. data/spec/models/spotlight/field_metadata_spec.rb +2 -0
  312. data/spec/models/spotlight/filter_spec.rb +2 -0
  313. data/spec/models/spotlight/home_page_spec.rb +2 -0
  314. data/spec/models/spotlight/main_navigation_spec.rb +2 -0
  315. data/spec/models/spotlight/masthead_spec.rb +2 -0
  316. data/spec/models/spotlight/page_spec.rb +2 -0
  317. data/spec/models/spotlight/reindex_progress_spec.rb +2 -0
  318. data/spec/models/spotlight/reindexing_log_entry_spec.rb +2 -0
  319. data/spec/models/spotlight/resource_spec.rb +2 -0
  320. data/spec/models/spotlight/resources/iiif_harvester_spec.rb +2 -0
  321. data/spec/models/spotlight/resources/iiif_manifest_spec.rb +2 -0
  322. data/spec/models/spotlight/resources/iiif_service_spec.rb +2 -0
  323. data/spec/models/spotlight/resources/open_graph_spec.rb +2 -0
  324. data/spec/models/spotlight/resources/upload_spec.rb +2 -0
  325. data/spec/models/spotlight/resources/web_spec.rb +2 -0
  326. data/spec/models/spotlight/role_spec.rb +2 -0
  327. data/spec/models/spotlight/search_spec.rb +2 -0
  328. data/spec/models/spotlight/site_spec.rb +2 -0
  329. data/spec/models/spotlight/sitemap_spec.rb +2 -0
  330. data/spec/models/spotlight/solr_document/atomic_updates_spec.rb +2 -0
  331. data/spec/models/spotlight/solr_document/uploaded_resource_spec.rb +2 -0
  332. data/spec/models/spotlight/solr_document_sidecar_spec.rb +2 -0
  333. data/spec/models/spotlight/user_spec.rb +2 -0
  334. data/spec/models/translation_spec.rb +2 -0
  335. data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +2 -0
  336. data/spec/routing/spotlight/exhibit_catalog_spec.rb +2 -0
  337. data/spec/routing/spotlight/featured_images_spec.rb +2 -0
  338. data/spec/routing/spotlight/pages_routing_spec.rb +2 -0
  339. data/spec/serializers/spotlight/exhibit_export_serializer_spec.rb +2 -0
  340. data/spec/services/spotlight/carrierwave_file_resolver_spec.rb +2 -0
  341. data/spec/services/spotlight/iiif_resource_resolver_spec.rb +2 -0
  342. data/spec/services/spotlight/invite_users_service_spec.rb +2 -0
  343. data/spec/services/spotlight/solr_document_builder_spec.rb +2 -0
  344. data/spec/spec_helper.rb +2 -0
  345. data/spec/support/controllers/engine_helpers.rb +2 -0
  346. data/spec/support/disable_friendly_id_deprecation_warnings.rb +2 -0
  347. data/spec/support/features/capybara_default_max_wait_metadata_helper.rb +2 -0
  348. data/spec/support/features/test_features_helpers.rb +2 -0
  349. data/spec/support/helpers/controller_level_helpers.rb +2 -0
  350. data/spec/support/stub_iiif_response.rb +2 -0
  351. data/spec/support/views/test_view_helpers.rb +2 -0
  352. data/spec/test_app_templates/carrierwave.rb +2 -0
  353. data/spec/test_app_templates/catalog_controller.rb +2 -0
  354. data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -0
  355. data/spec/test_app_templates/spotlight_test.rake +2 -0
  356. data/spec/uploaders/spotlight/attachment_uploader_spec.rb +2 -0
  357. data/spec/uploaders/spotlight/featured_image_uploader_spec.rb +2 -0
  358. data/spec/views/_user_util_links.html.erb_spec.rb +2 -0
  359. data/spec/views/shared/_analytics.html.erb_spec.rb +4 -0
  360. data/spec/views/shared/_exhibit_navbar.html.erb_spec.rb +2 -0
  361. data/spec/views/shared/_footer.html.erb_spec.rb +2 -0
  362. data/spec/views/shared/_header_navbar.html.erb_spec.rb +2 -0
  363. data/spec/views/shared/_masthead.html.erb_spec.rb +2 -0
  364. data/spec/views/spotlight/about_pages/_empty.html.erb_spec.rb +2 -0
  365. data/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +2 -0
  366. data/spec/views/spotlight/about_pages/index.html.erb_spec.rb +2 -0
  367. data/spec/views/spotlight/browse/_search.html.erb_spec.rb +2 -0
  368. data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +2 -0
  369. data/spec/views/spotlight/browse/index.html.erb_spec.rb +2 -0
  370. data/spec/views/spotlight/browse/show.html.erb_spec.rb +2 -0
  371. data/spec/views/spotlight/catalog/_edit_default.html.erb_spec.rb +2 -0
  372. data/spec/views/spotlight/catalog/admin.html.erb_spec.rb +2 -0
  373. data/spec/views/spotlight/catalog/edit.html.erb_spec.rb +2 -0
  374. data/spec/views/spotlight/contacts/edit.html.erb_spec.rb +2 -0
  375. data/spec/views/spotlight/dashboards/_analytics.html.erb_spec.rb +2 -0
  376. data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +2 -0
  377. data/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +2 -0
  378. data/spec/views/spotlight/exhibits/_exhibit_card_front.html.erb_spec.rb +2 -0
  379. data/spec/views/spotlight/exhibits/_form.html.erb_spec.rb +2 -0
  380. data/spec/views/spotlight/exhibits/edit.html.erb_spec.rb +2 -0
  381. data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +2 -0
  382. data/spec/views/spotlight/feature_pages/_empty.html.erb_spec.rb +2 -0
  383. data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +2 -0
  384. data/spec/views/spotlight/home_pages/_empty.html.erb_spec.rb +2 -0
  385. data/spec/views/spotlight/home_pages/_sidebar.html.erb_spec.rb +2 -0
  386. data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +2 -0
  387. data/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb +2 -0
  388. data/spec/views/spotlight/pages/_form.html.erb_spec.rb +2 -0
  389. data/spec/views/spotlight/pages/edit.html.erb_spec.rb +2 -0
  390. data/spec/views/spotlight/pages/index.html.erb_spec.rb +2 -0
  391. data/spec/views/spotlight/pages/new.html.erb_spec.rb +2 -0
  392. data/spec/views/spotlight/pages/show.html.erb_spec.rb +2 -0
  393. data/spec/views/spotlight/resources/_external_resources_form.html.erb_spec.rb +2 -0
  394. data/spec/views/spotlight/resources/new.html.erb_spec.rb +2 -0
  395. data/spec/views/spotlight/roles/index.html.erb_spec.rb +2 -0
  396. data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +2 -0
  397. data/spec/views/spotlight/search_configurations/_facets.html.erb_spec.rb +2 -0
  398. data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +2 -0
  399. data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +2 -0
  400. data/spec/views/spotlight/searches/_search.html.erb_spec.rb +2 -0
  401. data/spec/views/spotlight/searches/edit.html.erb_spec.rb +2 -0
  402. data/spec/views/spotlight/searches/index.html.erb_spec.rb +2 -0
  403. data/spec/views/spotlight/sir_trevor/blocks/_browse_block.html.erb_spec.rb +2 -0
  404. data/spec/views/spotlight/sir_trevor/blocks/_iframe_block.html.erb_spec.rb +2 -0
  405. data/spec/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb_spec.rb +2 -0
  406. data/spec/views/spotlight/sir_trevor/blocks/_rule_block.html.erb_spec.rb +2 -0
  407. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb_spec.rb +2 -0
  408. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +2 -0
  409. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +2 -0
  410. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +2 -0
  411. data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +2 -0
  412. data/spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb +2 -0
  413. data/spec/views/spotlight/tags/index.html.erb_spec.rb +2 -0
  414. metadata +4 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55bfa11e6486386f1dbb2ad78abd80f10dcd198c799e87a2e5af08dfbf3312bd
4
- data.tar.gz: 02d635c2dc8a68b6c1139c1398cf06ddcd9831193ca384116a7f70770463d615
3
+ metadata.gz: f0e854fb624f43d61c476c0bd1ef3057cb9cbde34214883146acd04c8349fe83
4
+ data.tar.gz: 3b52b96356f070d9b0a385dd19ef6eba3dda327ebab66e9e9ae9a2176ffe62fb
5
5
  SHA512:
6
- metadata.gz: 432700fc757ab4f53bdb8a90f70a1534f8a780015403091c4f0fbd80e0a832f86c9a1f0ab9e648bbddd2531633524e04de928f09babce038df077eb57d08f22f
7
- data.tar.gz: 4a6d8881fa542b2487a38cb297dad0e073f705a543be53bc523f291176a9eb8f50ecc1b2392512e9243ed35de9e00c49738682e5d047393329f44b7417bbac2f
6
+ metadata.gz: 101d278158427e4167a14d400772d9b56bba5fbe0a9ca0b3c980aec729d3db661d1c141605370c3e0ef876e82cfa1f63878da0bd1505910898d62f3fc9a1070e
7
+ data.tar.gz: ff9c974403237e9b79b5448218c2ac6a56db50021c551fc7f5cf7cd2e63f976745b7a3801e1506eb247afd5c2c6b3fc0cf84b4eaf1007ad2241be1b12537e70c
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -29,8 +29,10 @@
29
29
  /* Simple to start. Add conditions later */
30
30
  if (this.hasTextBlock()) {
31
31
  data.text = this.getTextBlockHTML();
32
+ data.format = 'html';
32
33
  if (data.text.length > 0 && this.options.convertToMarkdown) {
33
34
  data.text = stToMarkdown(data.text, this.type);
35
+ data.format = 'markdown';
34
36
  }
35
37
  }
36
38
 
@@ -38,8 +40,10 @@
38
40
  },
39
41
 
40
42
  loadData: function(data){
41
- if (this.hasTextBlock()) {
42
- $(this.getTextBlock()).html(SirTrevor.toHTML(data.text, this.type));
43
+ if (this.options.convertFromMarkdown && data.format !== "html") {
44
+ this.setTextBlockHTML(SirTrevor.toHTML(data.text, this.type));
45
+ } else {
46
+ this.setTextBlockHTML(data.text);
43
47
  }
44
48
  this.loadFormDataByKey(data);
45
49
  this.afterLoadData(data);
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # The BootstrapBreadcrumbsBuilder is a Bootstrap compatible breadcrumb builder.
3
5
  # It provides basic functionalities to render a breadcrumb navigation according to Bootstrap's conventions.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Base controller mixin
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Spotlight catalog mixins
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Spotlight configuration methods
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Spotlight controller helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for about pages and contacts
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # A controller to handle the adminstration of site admin users
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Edit and update an exhibit's appearance
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spotlight'
2
4
 
3
5
  module Spotlight
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Create image attachments for the sir-trevor image widget
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Index and read actions for browse (see {Spotlight::SearchesController}
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Spotlight's catalog controller. Note that this subclasses
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spotlight'
2
4
 
3
5
  module Spotlight
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  module Concerns
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Custom {Devise::ConfirmationsController} with spotlight behaviors
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for exhibit contact emails
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Controller for routing exhibit feedback from users
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for exhibit curator contacts (not to be confused with
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for exhibit custom field management.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Exhibit dashboard controller
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Administrative CRUD actions for an exhibit
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for feature pages
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # Handles requests to upload images for exhibit thumbnails
3
5
  class FeaturedImagesController < Spotlight::ApplicationController
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # Create and update filters for an exhibit
3
5
  class FiltersController < ApplicationController
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for the exhibit home page
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # Create and update languages for an exhibit
3
5
  class LanguagesController < ApplicationController
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Locking mechanism for page-level locks
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for Blacklight metadata fields (e.g. index/show fields for
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Base CRUD controller for pages
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'csv'
2
4
 
3
5
  module Spotlight
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  module Resources
3
5
  # IIIF resources harvesting endpoint
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  module Resources
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for exhibit resources
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for assigning exhibit roles to
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for Blacklight search configuration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for curating browse categories (see
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Global site configuration
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Proxy update requests to Solr and inject spotlight's exhibit
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # CRUD actions for document tags
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Base CRUD controller for translations
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Controller for reverting to historical versions of e.g. pages
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Administration for Blacklight view configurations
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # General spotlight application helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Helper for browse views
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # iiif-crop options helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Helpers for building polymorphic links within the exhibit context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Helpers for the Language form and UI elements
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Helpers that are injected into the main application (because they used in layouts)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # HTML <meta> tag helpers
3
5
  module MetaHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Helpers used by the navbar
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Sir-trevor helpers methods
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  module RenderingHelper # :nodoc:
3
5
  def render_markdown(text)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Exhibit roles helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  ##
3
5
  # Search configurations helpers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spotlight
2
4
  # Saved search helpers
3
5
  module SearchesHelper