arclight 0.2.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/.all-contributorsrc +450 -0
  3. data/.codeclimate.yml +5 -0
  4. data/.eslintrc +14 -4
  5. data/.github/workflows/ruby.yml +51 -0
  6. data/.gitignore +1 -0
  7. data/.rspec +0 -1
  8. data/.rubocop.yml +504 -8
  9. data/.rubocop_todo.yml +62 -199
  10. data/.solr_wrapper +2 -1
  11. data/CONTRIBUTING.md +5 -5
  12. data/CONTRIBUTORS.md +79 -0
  13. data/Gemfile +15 -10
  14. data/README.md +36 -34
  15. data/Rakefile +0 -1
  16. data/app/assets/images/blacklight/bookmark.svg +1 -0
  17. data/app/assets/images/blacklight/collection.svg +5 -0
  18. data/app/assets/images/blacklight/compact.svg +1 -25
  19. data/app/assets/images/blacklight/container.svg +5 -0
  20. data/app/assets/images/blacklight/ead.svg +1 -0
  21. data/app/assets/images/blacklight/file.svg +5 -0
  22. data/app/assets/images/blacklight/folder.svg +1 -0
  23. data/app/assets/images/blacklight/list.svg +1 -0
  24. data/app/assets/images/blacklight/minus.svg +1 -0
  25. data/app/assets/images/blacklight/online.svg +5 -0
  26. data/app/assets/images/blacklight/pdf.svg +1 -0
  27. data/app/assets/images/blacklight/plus.svg +1 -0
  28. data/app/assets/images/blacklight/repository.svg +1 -0
  29. data/app/assets/javascripts/arclight/arclight.js +4 -10
  30. data/app/assets/javascripts/arclight/oembed_controller.js +58 -0
  31. data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
  32. data/app/assets/stylesheets/arclight/application.scss +4 -4
  33. data/app/assets/stylesheets/arclight/build.scss +4 -0
  34. data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +117 -146
  35. data/app/assets/stylesheets/arclight/modules/highlights.scss +2 -1
  36. data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
  37. data/app/assets/stylesheets/arclight/modules/layout.scss +183 -40
  38. data/app/assets/stylesheets/arclight/modules/mastheads.scss +24 -75
  39. data/app/assets/stylesheets/arclight/modules/repositories.scss +3 -7
  40. data/app/assets/stylesheets/arclight/modules/repository_card.scss +5 -50
  41. data/app/assets/stylesheets/arclight/modules/search_form.scss +9 -0
  42. data/app/assets/stylesheets/arclight/modules/search_results.scss +197 -26
  43. data/app/assets/stylesheets/arclight/modules/show_collection.scss +21 -69
  44. data/app/assets/stylesheets/arclight/modules/truncator.scss +58 -0
  45. data/app/assets/stylesheets/arclight/responsive.scss +13 -0
  46. data/app/assets/stylesheets/arclight/variables.scss +25 -2
  47. data/app/components/arclight/access_component.html.erb +14 -0
  48. data/app/components/arclight/access_component.rb +25 -0
  49. data/app/components/arclight/bookmark_component.html.erb +25 -0
  50. data/app/components/arclight/bookmark_component.rb +9 -0
  51. data/app/components/arclight/breadcrumb_component.rb +50 -0
  52. data/app/components/arclight/breadcrumbs_hierarchy_component.html.erb +34 -0
  53. data/app/components/arclight/breadcrumbs_hierarchy_component.rb +25 -0
  54. data/app/components/arclight/collection_context_component.html.erb +12 -0
  55. data/app/components/arclight/collection_context_component.rb +27 -0
  56. data/app/components/arclight/collection_info_component.html.erb +28 -0
  57. data/app/components/arclight/collection_info_component.rb +26 -0
  58. data/app/components/arclight/collection_sidebar_component.html.erb +15 -0
  59. data/app/components/arclight/collection_sidebar_component.rb +39 -0
  60. data/app/{views/catalog/_search_results_repository.html.erb → components/arclight/constraints_component.html.erb} +2 -1
  61. data/app/components/arclight/constraints_component.rb +17 -0
  62. data/app/components/arclight/document_collection_context_component.html.erb +29 -0
  63. data/app/components/arclight/document_collection_context_component.rb +28 -0
  64. data/app/components/arclight/document_collection_hierarchy_component.html.erb +50 -0
  65. data/app/components/arclight/document_collection_hierarchy_component.rb +62 -0
  66. data/app/components/arclight/document_component.html.erb +39 -0
  67. data/app/components/arclight/document_component.rb +49 -0
  68. data/app/components/arclight/document_components_hierarchy_component.html.erb +20 -0
  69. data/app/components/arclight/document_components_hierarchy_component.rb +34 -0
  70. data/app/components/arclight/document_download_component.html.erb +24 -0
  71. data/app/components/arclight/document_download_component.rb +71 -0
  72. data/app/components/arclight/embed_component.html.erb +10 -0
  73. data/app/components/arclight/embed_component.rb +43 -0
  74. data/app/components/arclight/expand_hierarchy_button_component.html.erb +5 -0
  75. data/app/components/arclight/expand_hierarchy_button_component.rb +16 -0
  76. data/app/components/arclight/group_component.html.erb +34 -0
  77. data/app/components/arclight/group_component.rb +23 -0
  78. data/app/components/arclight/header_component.html.erb +5 -0
  79. data/app/components/arclight/header_component.rb +10 -0
  80. data/app/components/arclight/index_metadata_field_component.html.erb +16 -0
  81. data/app/components/arclight/index_metadata_field_component.rb +20 -0
  82. data/app/components/arclight/masthead_component.html.erb +17 -0
  83. data/app/components/arclight/masthead_component.rb +10 -0
  84. data/app/components/arclight/metadata_section_component.html.erb +13 -0
  85. data/app/components/arclight/metadata_section_component.rb +22 -0
  86. data/app/components/arclight/oembed_viewer_component.html.erb +5 -0
  87. data/app/components/arclight/oembed_viewer_component.rb +16 -0
  88. data/app/components/arclight/online_content_filter_component.html.erb +15 -0
  89. data/app/components/arclight/online_content_filter_component.rb +17 -0
  90. data/app/components/arclight/online_status_indicator_component.rb +19 -0
  91. data/app/components/arclight/repository_breadcrumb_component.html.erb +10 -0
  92. data/app/components/arclight/repository_breadcrumb_component.rb +17 -0
  93. data/app/components/arclight/repository_location_component.html.erb +20 -0
  94. data/app/components/arclight/repository_location_component.rb +10 -0
  95. data/app/components/arclight/search_bar_component.html.erb +27 -0
  96. data/app/components/arclight/search_bar_component.rb +32 -0
  97. data/app/components/arclight/search_result_breadcrumbs_component.html.erb +6 -0
  98. data/app/components/arclight/search_result_breadcrumbs_component.rb +37 -0
  99. data/app/components/arclight/search_result_component.html.erb +20 -0
  100. data/app/components/arclight/search_result_component.rb +18 -0
  101. data/app/components/arclight/search_result_title_component.html.erb +15 -0
  102. data/app/components/arclight/search_result_title_component.rb +15 -0
  103. data/app/components/arclight/sidebar_component.html.erb +9 -0
  104. data/app/components/arclight/sidebar_component.rb +19 -0
  105. data/app/components/arclight/upper_metadata_layout_component.rb +10 -0
  106. data/app/components/blacklight/icons/bookmark_component.rb +12 -0
  107. data/app/components/blacklight/icons/collection_component.rb +14 -0
  108. data/app/components/blacklight/icons/compact_component.rb +12 -0
  109. data/app/components/blacklight/icons/container_component.rb +14 -0
  110. data/app/components/blacklight/icons/ead_component.rb +12 -0
  111. data/app/components/blacklight/icons/file_component.rb +14 -0
  112. data/app/components/blacklight/icons/folder_component.rb +12 -0
  113. data/app/components/blacklight/icons/online_component.rb +15 -0
  114. data/app/components/blacklight/icons/pdf_component.rb +12 -0
  115. data/app/components/blacklight/icons/repository_component.rb +12 -0
  116. data/app/controllers/arclight/repositories_controller.rb +4 -4
  117. data/app/helpers/arclight/ead_format_helpers.rb +309 -0
  118. data/app/helpers/arclight/field_config_helpers.rb +26 -0
  119. data/app/helpers/arclight_helper.rb +55 -120
  120. data/app/models/arclight/document_downloads.rb +122 -0
  121. data/app/models/arclight/parent.rb +9 -9
  122. data/app/models/arclight/parents.rb +9 -4
  123. data/app/models/arclight/requests/aeon_external_request.rb +42 -0
  124. data/app/models/arclight/requests/aeon_web_ead.rb +52 -0
  125. data/app/models/arclight/requests/google_form.rb +8 -3
  126. data/app/models/concerns/arclight/catalog.rb +33 -11
  127. data/app/models/concerns/arclight/search_behavior.rb +22 -21
  128. data/app/models/concerns/arclight/solr_document.rb +88 -59
  129. data/app/presenters/arclight/show_presenter.rb +34 -7
  130. data/app/views/arclight/_requests.html.erb +7 -0
  131. data/app/views/arclight/repositories/_repository.html.erb +22 -41
  132. data/app/views/arclight/repositories/index.html.erb +5 -0
  133. data/app/views/arclight/repositories/show.html.erb +7 -8
  134. data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +8 -0
  135. data/app/views/arclight/requests/_aeon_web_ead.html.erb +6 -0
  136. data/app/views/arclight/requests/_google_form.html.erb +4 -5
  137. data/app/views/catalog/_document_list.html.erb +8 -0
  138. data/app/views/catalog/_group.html.erb +4 -0
  139. data/app/views/catalog/_group_toggle.html.erb +10 -0
  140. data/app/views/catalog/_search_results_header.html.erb +3 -0
  141. data/app/views/catalog/hierarchy.html.erb +19 -0
  142. data/app/views/catalog/index.html.erb +16 -7
  143. data/app/views/shared/_breadcrumbs.html.erb +3 -15
  144. data/app/views/shared/_main_menu_links.html.erb +1 -1
  145. data/arclight.gemspec +18 -17
  146. data/config/breadcrumbs.rb +24 -0
  147. data/config/i18n-tasks.yml +11 -9
  148. data/config/importmap.rb +3 -0
  149. data/config/locales/arclight.en.yml +68 -34
  150. data/config/routes.rb +1 -1
  151. data/docker-compose.yml +16 -0
  152. data/lib/arclight/digital_object.rb +2 -1
  153. data/lib/arclight/engine.rb +22 -31
  154. data/lib/arclight/exceptions.rb +1 -0
  155. data/lib/arclight/hash_absolute_xpath.rb +13 -8
  156. data/lib/arclight/level_label.rb +46 -0
  157. data/lib/arclight/normalized_date.rb +5 -10
  158. data/lib/arclight/normalized_id.rb +7 -2
  159. data/lib/arclight/normalized_title.rb +3 -0
  160. data/lib/arclight/repository.rb +70 -28
  161. data/lib/arclight/routes/hierarchy.rb +19 -0
  162. data/lib/arclight/routes.rb +8 -0
  163. data/lib/arclight/traject/ead2_component_config.rb +335 -0
  164. data/lib/arclight/traject/ead2_config.rb +172 -331
  165. data/lib/arclight/traject/nokogiri_namespaceless_reader.rb +22 -0
  166. data/lib/arclight/version.rb +1 -1
  167. data/lib/arclight/year_range.rb +13 -4
  168. data/lib/arclight.rb +6 -1
  169. data/lib/generators/arclight/install_generator.rb +100 -10
  170. data/lib/generators/arclight/templates/arclight.scss +6 -3
  171. data/lib/generators/arclight/templates/catalog_controller.rb +237 -179
  172. data/lib/generators/arclight/templates/config/downloads.yml +12 -0
  173. data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
  174. data/lib/generators/arclight/templates/config/repositories.yml +42 -31
  175. data/lib/generators/arclight/update_generator.rb +1 -1
  176. data/lib/tasks/index.rake +25 -30
  177. data/package.json +15 -9
  178. data/solr/conf/schema.xml +97 -328
  179. data/solr/conf/solrconfig.xml +99 -164
  180. data/tasks/arclight.rake +18 -9
  181. data/template.rb +6 -7
  182. metadata +188 -129
  183. data/.travis.yml +0 -28
  184. data/app/assets/javascripts/arclight/collection_context.js +0 -18
  185. data/app/assets/javascripts/arclight/collection_navigation.js +0 -117
  186. data/app/assets/javascripts/arclight/collection_scrollspy.js +0 -6
  187. data/app/assets/javascripts/arclight/component_ancestors.js +0 -56
  188. data/app/assets/javascripts/arclight/oembed_viewer.js +0 -46
  189. data/app/assets/javascripts/arclight/search_results.js +0 -15
  190. data/app/assets/javascripts/arclight/truncator.js.erb +0 -23
  191. data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +0 -3
  192. data/app/assets/stylesheets/arclight/modules/sidebar.scss +0 -21
  193. data/app/controllers/concerns/arclight/field_config_helpers.rb +0 -86
  194. data/app/factories/blacklight_field_configuration_factory.rb +0 -29
  195. data/app/views/arclight/repositories/_in_person_repository.html.erb +0 -19
  196. data/app/views/arclight/viewers/_oembed.html.erb +0 -7
  197. data/app/views/catalog/_arclight_document_index_header.html.erb +0 -13
  198. data/app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb +0 -0
  199. data/app/views/catalog/_arclight_index_compact_default.html.erb +0 -15
  200. data/app/views/catalog/_arclight_online_content_indicator.html.erb +0 -5
  201. data/app/views/catalog/_arclight_rangelimit.html.erb +0 -24
  202. data/app/views/catalog/_arclight_viewer_default.html.erb +0 -1
  203. data/app/views/catalog/_collection_contents.html.erb +0 -12
  204. data/app/views/catalog/_collection_count.html.erb +0 -7
  205. data/app/views/catalog/_collection_downloads.html.erb +0 -15
  206. data/app/views/catalog/_collection_online_contents.html.erb +0 -17
  207. data/app/views/catalog/_collection_overview.html.erb +0 -7
  208. data/app/views/catalog/_component_contents.html.erb +0 -16
  209. data/app/views/catalog/_component_overview.html.erb +0 -40
  210. data/app/views/catalog/_context_card.html.erb +0 -27
  211. data/app/views/catalog/_context_sidebar.html.erb +0 -8
  212. data/app/views/catalog/_custom_metadata.html.erb +0 -16
  213. data/app/views/catalog/_home.html.erb +0 -1
  214. data/app/views/catalog/_index_breadcrumb_default.html.erb +0 -3
  215. data/app/views/catalog/_index_default.html.erb +0 -17
  216. data/app/views/catalog/_index_header.html.erb +0 -7
  217. data/app/views/catalog/_index_header_hierarchy_default.html.erb +0 -42
  218. data/app/views/catalog/_index_header_online_contents_default.html.erb +0 -1
  219. data/app/views/catalog/_index_hierarchy_default.html.erb +0 -28
  220. data/app/views/catalog/_index_online_contents_default.html.erb +0 -6
  221. data/app/views/catalog/_results_histogram.html.erb +0 -15
  222. data/app/views/catalog/_search_results.html.erb +0 -31
  223. data/app/views/catalog/_show_breadcrumbs_default.html.erb +0 -21
  224. data/app/views/catalog/_show_collection.html.erb +0 -48
  225. data/app/views/catalog/_show_component_sidebar.html.erb +0 -12
  226. data/app/views/catalog/_show_default.html.erb +0 -42
  227. data/app/views/catalog/_show_sidebar.html.erb +0 -22
  228. data/app/views/catalog/_show_upper_metadata_collection.html.erb +0 -1
  229. data/app/views/catalog/_show_upper_metadata_default.html.erb +0 -14
  230. data/app/views/layouts/catalog_result.html.erb +0 -7
  231. data/app/views/shared/_context_sidebar.html.erb +0 -8
  232. data/app/views/shared/_header_navbar.html.erb +0 -65
  233. data/lib/arclight/custom_component.rb +0 -99
  234. data/lib/arclight/custom_document.rb +0 -93
  235. data/lib/arclight/indexer.rb +0 -9
  236. data/lib/arclight/shared_indexing_behavior.rb +0 -97
  237. data/lib/arclight/shared_terminology_behavior.rb +0 -65
  238. data/lib/arclight/solr_ead_indexer_ext.rb +0 -155
  239. data/lib/arclight/viewer.rb +0 -45
  240. data/lib/arclight/viewers/oembed.rb +0 -56
  241. data/lib/generators/arclight/templates/arclight.js +0 -2
  242. data/solr/conf/scripts.conf +0 -24
  243. data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
  244. data/vendor/assets/javascripts/stickyfill.js +0 -480
  245. /data/app/assets/images/{blacklight → arclight}/logo.png +0 -0
  246. /data/{app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb → config/repositories.yml} +0 -0
metadata CHANGED
@@ -1,80 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arclight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
8
8
  - Jessie Keck
9
9
  - Gordon Leacock
10
10
  - Jack Reed
11
- autorequire:
11
+ autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-08-29 00:00:00.000000000 Z
14
+ date: 2025-08-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - "~>"
21
- - !ruby/object:Gem::Version
22
- version: '7.0'
23
20
  - - ">="
24
21
  - !ruby/object:Gem::Version
25
- version: 7.0.1
22
+ version: 8.0.0
23
+ - - "<"
24
+ - !ruby/object:Gem::Version
25
+ version: '9'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '7.0'
33
30
  - - ">="
34
31
  - !ruby/object:Gem::Version
35
- version: 7.0.1
36
- - !ruby/object:Gem::Dependency
37
- name: blacklight_range_limit
38
- requirement: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '7.1'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
32
+ version: 8.0.0
33
+ - - "<"
48
34
  - !ruby/object:Gem::Version
49
- version: '7.1'
35
+ version: '9'
50
36
  - !ruby/object:Gem::Dependency
51
- name: rails
37
+ name: gretel
52
38
  requirement: !ruby/object:Gem::Requirement
53
39
  requirements:
54
- - - "~>"
40
+ - - ">="
55
41
  - !ruby/object:Gem::Version
56
- version: '5.0'
42
+ version: '0'
57
43
  type: :runtime
58
44
  prerelease: false
59
45
  version_requirements: !ruby/object:Gem::Requirement
60
46
  requirements:
61
- - - "~>"
47
+ - - ">="
62
48
  - !ruby/object:Gem::Version
63
- version: '5.0'
49
+ version: '0'
64
50
  - !ruby/object:Gem::Dependency
65
- name: solr_ead
51
+ name: rails
66
52
  requirement: !ruby/object:Gem::Requirement
67
53
  requirements:
68
54
  - - ">="
69
55
  - !ruby/object:Gem::Version
70
- version: '0'
56
+ version: '7.1'
57
+ - - "<"
58
+ - !ruby/object:Gem::Version
59
+ version: '9'
71
60
  type: :runtime
72
61
  prerelease: false
73
62
  version_requirements: !ruby/object:Gem::Requirement
74
63
  requirements:
75
64
  - - ">="
76
65
  - !ruby/object:Gem::Version
77
- version: '0'
66
+ version: '7.1'
67
+ - - "<"
68
+ - !ruby/object:Gem::Version
69
+ version: '9'
78
70
  - !ruby/object:Gem::Dependency
79
71
  name: traject
80
72
  requirement: !ruby/object:Gem::Requirement
@@ -93,30 +85,30 @@ dependencies:
93
85
  name: traject_plus
94
86
  requirement: !ruby/object:Gem::Requirement
95
87
  requirements:
96
- - - ">="
88
+ - - "~>"
97
89
  - !ruby/object:Gem::Version
98
- version: '0'
90
+ version: '2.0'
99
91
  type: :runtime
100
92
  prerelease: false
101
93
  version_requirements: !ruby/object:Gem::Requirement
102
94
  requirements:
103
- - - ">="
95
+ - - "~>"
104
96
  - !ruby/object:Gem::Version
105
- version: '0'
97
+ version: '2.0'
106
98
  - !ruby/object:Gem::Dependency
107
99
  name: bundler
108
100
  requirement: !ruby/object:Gem::Requirement
109
101
  requirements:
110
- - - ">"
102
+ - - ">="
111
103
  - !ruby/object:Gem::Version
112
- version: '1.14'
104
+ version: '0'
113
105
  type: :development
114
106
  prerelease: false
115
107
  version_requirements: !ruby/object:Gem::Requirement
116
108
  requirements:
117
- - - ">"
109
+ - - ">="
118
110
  - !ruby/object:Gem::Version
119
- version: '1.14'
111
+ version: '0'
120
112
  - !ruby/object:Gem::Dependency
121
113
  name: capybara
122
114
  requirement: !ruby/object:Gem::Requirement
@@ -163,60 +155,60 @@ dependencies:
163
155
  name: rake
164
156
  requirement: !ruby/object:Gem::Requirement
165
157
  requirements:
166
- - - "~>"
158
+ - - ">="
167
159
  - !ruby/object:Gem::Version
168
160
  version: '12.0'
169
161
  type: :development
170
162
  prerelease: false
171
163
  version_requirements: !ruby/object:Gem::Requirement
172
164
  requirements:
173
- - - "~>"
165
+ - - ">="
174
166
  - !ruby/object:Gem::Version
175
167
  version: '12.0'
176
168
  - !ruby/object:Gem::Dependency
177
- name: rubocop
169
+ name: rspec-rails
178
170
  requirement: !ruby/object:Gem::Requirement
179
171
  requirements:
180
- - - "~>"
172
+ - - ">="
181
173
  - !ruby/object:Gem::Version
182
- version: 0.74.0
174
+ version: '0'
183
175
  type: :development
184
176
  prerelease: false
185
177
  version_requirements: !ruby/object:Gem::Requirement
186
178
  requirements:
187
- - - "~>"
179
+ - - ">="
188
180
  - !ruby/object:Gem::Version
189
- version: 0.74.0
181
+ version: '0'
190
182
  - !ruby/object:Gem::Dependency
191
- name: rubocop-rspec
183
+ name: rubocop
192
184
  requirement: !ruby/object:Gem::Requirement
193
185
  requirements:
194
186
  - - "~>"
195
187
  - !ruby/object:Gem::Version
196
- version: '1.35'
188
+ version: '1.8'
197
189
  type: :development
198
190
  prerelease: false
199
191
  version_requirements: !ruby/object:Gem::Requirement
200
192
  requirements:
201
193
  - - "~>"
202
194
  - !ruby/object:Gem::Version
203
- version: '1.35'
195
+ version: '1.8'
204
196
  - !ruby/object:Gem::Dependency
205
- name: rspec-rails
197
+ name: rubocop-rails
206
198
  requirement: !ruby/object:Gem::Requirement
207
199
  requirements:
208
200
  - - "~>"
209
201
  - !ruby/object:Gem::Version
210
- version: '3.0'
202
+ version: '2.8'
211
203
  type: :development
212
204
  prerelease: false
213
205
  version_requirements: !ruby/object:Gem::Requirement
214
206
  requirements:
215
207
  - - "~>"
216
208
  - !ruby/object:Gem::Version
217
- version: '3.0'
209
+ version: '2.8'
218
210
  - !ruby/object:Gem::Dependency
219
- name: selenium-webdriver
211
+ name: rubocop-rake
220
212
  requirement: !ruby/object:Gem::Requirement
221
213
  requirements:
222
214
  - - ">="
@@ -230,7 +222,21 @@ dependencies:
230
222
  - !ruby/object:Gem::Version
231
223
  version: '0'
232
224
  - !ruby/object:Gem::Dependency
233
- name: simplecov
225
+ name: rubocop-rspec
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '2.3'
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '2.3'
238
+ - !ruby/object:Gem::Dependency
239
+ name: selenium-webdriver
234
240
  requirement: !ruby/object:Gem::Requirement
235
241
  requirements:
236
242
  - - ">="
@@ -244,7 +250,7 @@ dependencies:
244
250
  - !ruby/object:Gem::Version
245
251
  version: '0'
246
252
  - !ruby/object:Gem::Dependency
247
- name: solr_wrapper
253
+ name: simplecov
248
254
  requirement: !ruby/object:Gem::Requirement
249
255
  requirements:
250
256
  - - ">="
@@ -258,7 +264,7 @@ dependencies:
258
264
  - !ruby/object:Gem::Version
259
265
  version: '0'
260
266
  - !ruby/object:Gem::Dependency
261
- name: webdrivers
267
+ name: solr_wrapper
262
268
  requirement: !ruby/object:Gem::Requirement
263
269
  requirements:
264
270
  - - ">="
@@ -281,47 +287,132 @@ executables: []
281
287
  extensions: []
282
288
  extra_rdoc_files: []
283
289
  files:
290
+ - ".all-contributorsrc"
291
+ - ".codeclimate.yml"
284
292
  - ".eslintrc"
293
+ - ".github/workflows/ruby.yml"
285
294
  - ".gitignore"
286
295
  - ".rspec"
287
296
  - ".rubocop.yml"
288
297
  - ".rubocop_todo.yml"
289
298
  - ".solr_wrapper"
290
- - ".travis.yml"
291
299
  - CONTRIBUTING.md
300
+ - CONTRIBUTORS.md
292
301
  - Gemfile
293
302
  - LICENSE.txt
294
303
  - README.md
295
304
  - Rakefile
305
+ - app/assets/images/arclight/logo.png
306
+ - app/assets/images/blacklight/bookmark.svg
307
+ - app/assets/images/blacklight/collection.svg
296
308
  - app/assets/images/blacklight/compact.svg
297
- - app/assets/images/blacklight/logo.png
309
+ - app/assets/images/blacklight/container.svg
310
+ - app/assets/images/blacklight/ead.svg
311
+ - app/assets/images/blacklight/file.svg
312
+ - app/assets/images/blacklight/folder.svg
313
+ - app/assets/images/blacklight/list.svg
314
+ - app/assets/images/blacklight/minus.svg
315
+ - app/assets/images/blacklight/online.svg
316
+ - app/assets/images/blacklight/pdf.svg
317
+ - app/assets/images/blacklight/plus.svg
318
+ - app/assets/images/blacklight/repository.svg
298
319
  - app/assets/javascripts/arclight/arclight.js
299
- - app/assets/javascripts/arclight/collection_context.js
300
- - app/assets/javascripts/arclight/collection_navigation.js
301
- - app/assets/javascripts/arclight/collection_scrollspy.js
302
- - app/assets/javascripts/arclight/component_ancestors.js
303
- - app/assets/javascripts/arclight/oembed_viewer.js
304
- - app/assets/javascripts/arclight/search_results.js
305
- - app/assets/javascripts/arclight/truncator.js.erb
320
+ - app/assets/javascripts/arclight/oembed_controller.js
321
+ - app/assets/javascripts/arclight/truncate_controller.js
306
322
  - app/assets/stylesheets/arclight/application.scss
307
- - app/assets/stylesheets/arclight/bootstrap_overrides.scss
323
+ - app/assets/stylesheets/arclight/build.scss
308
324
  - app/assets/stylesheets/arclight/modules/collection_search.scss
309
325
  - app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss
310
326
  - app/assets/stylesheets/arclight/modules/highlights.scss
327
+ - app/assets/stylesheets/arclight/modules/icons.scss
311
328
  - app/assets/stylesheets/arclight/modules/layout.scss
312
329
  - app/assets/stylesheets/arclight/modules/mastheads.scss
313
330
  - app/assets/stylesheets/arclight/modules/repositories.scss
314
331
  - app/assets/stylesheets/arclight/modules/repository_card.scss
332
+ - app/assets/stylesheets/arclight/modules/search_form.scss
315
333
  - app/assets/stylesheets/arclight/modules/search_results.scss
316
334
  - app/assets/stylesheets/arclight/modules/show_collection.scss
317
- - app/assets/stylesheets/arclight/modules/sidebar.scss
335
+ - app/assets/stylesheets/arclight/modules/truncator.scss
336
+ - app/assets/stylesheets/arclight/responsive.scss
318
337
  - app/assets/stylesheets/arclight/variables.scss
338
+ - app/components/arclight/access_component.html.erb
339
+ - app/components/arclight/access_component.rb
340
+ - app/components/arclight/bookmark_component.html.erb
341
+ - app/components/arclight/bookmark_component.rb
342
+ - app/components/arclight/breadcrumb_component.rb
343
+ - app/components/arclight/breadcrumbs_hierarchy_component.html.erb
344
+ - app/components/arclight/breadcrumbs_hierarchy_component.rb
345
+ - app/components/arclight/collection_context_component.html.erb
346
+ - app/components/arclight/collection_context_component.rb
347
+ - app/components/arclight/collection_info_component.html.erb
348
+ - app/components/arclight/collection_info_component.rb
349
+ - app/components/arclight/collection_sidebar_component.html.erb
350
+ - app/components/arclight/collection_sidebar_component.rb
351
+ - app/components/arclight/constraints_component.html.erb
352
+ - app/components/arclight/constraints_component.rb
353
+ - app/components/arclight/document_collection_context_component.html.erb
354
+ - app/components/arclight/document_collection_context_component.rb
355
+ - app/components/arclight/document_collection_hierarchy_component.html.erb
356
+ - app/components/arclight/document_collection_hierarchy_component.rb
357
+ - app/components/arclight/document_component.html.erb
358
+ - app/components/arclight/document_component.rb
359
+ - app/components/arclight/document_components_hierarchy_component.html.erb
360
+ - app/components/arclight/document_components_hierarchy_component.rb
361
+ - app/components/arclight/document_download_component.html.erb
362
+ - app/components/arclight/document_download_component.rb
363
+ - app/components/arclight/embed_component.html.erb
364
+ - app/components/arclight/embed_component.rb
365
+ - app/components/arclight/expand_hierarchy_button_component.html.erb
366
+ - app/components/arclight/expand_hierarchy_button_component.rb
367
+ - app/components/arclight/group_component.html.erb
368
+ - app/components/arclight/group_component.rb
369
+ - app/components/arclight/header_component.html.erb
370
+ - app/components/arclight/header_component.rb
371
+ - app/components/arclight/index_metadata_field_component.html.erb
372
+ - app/components/arclight/index_metadata_field_component.rb
373
+ - app/components/arclight/masthead_component.html.erb
374
+ - app/components/arclight/masthead_component.rb
375
+ - app/components/arclight/metadata_section_component.html.erb
376
+ - app/components/arclight/metadata_section_component.rb
377
+ - app/components/arclight/oembed_viewer_component.html.erb
378
+ - app/components/arclight/oembed_viewer_component.rb
379
+ - app/components/arclight/online_content_filter_component.html.erb
380
+ - app/components/arclight/online_content_filter_component.rb
381
+ - app/components/arclight/online_status_indicator_component.rb
382
+ - app/components/arclight/repository_breadcrumb_component.html.erb
383
+ - app/components/arclight/repository_breadcrumb_component.rb
384
+ - app/components/arclight/repository_location_component.html.erb
385
+ - app/components/arclight/repository_location_component.rb
386
+ - app/components/arclight/search_bar_component.html.erb
387
+ - app/components/arclight/search_bar_component.rb
388
+ - app/components/arclight/search_result_breadcrumbs_component.html.erb
389
+ - app/components/arclight/search_result_breadcrumbs_component.rb
390
+ - app/components/arclight/search_result_component.html.erb
391
+ - app/components/arclight/search_result_component.rb
392
+ - app/components/arclight/search_result_title_component.html.erb
393
+ - app/components/arclight/search_result_title_component.rb
394
+ - app/components/arclight/sidebar_component.html.erb
395
+ - app/components/arclight/sidebar_component.rb
396
+ - app/components/arclight/upper_metadata_layout_component.rb
397
+ - app/components/blacklight/icons/bookmark_component.rb
398
+ - app/components/blacklight/icons/collection_component.rb
399
+ - app/components/blacklight/icons/compact_component.rb
400
+ - app/components/blacklight/icons/container_component.rb
401
+ - app/components/blacklight/icons/ead_component.rb
402
+ - app/components/blacklight/icons/file_component.rb
403
+ - app/components/blacklight/icons/folder_component.rb
404
+ - app/components/blacklight/icons/online_component.rb
405
+ - app/components/blacklight/icons/pdf_component.rb
406
+ - app/components/blacklight/icons/repository_component.rb
319
407
  - app/controllers/arclight/repositories_controller.rb
320
- - app/controllers/concerns/arclight/field_config_helpers.rb
321
- - app/factories/blacklight_field_configuration_factory.rb
408
+ - app/helpers/arclight/ead_format_helpers.rb
409
+ - app/helpers/arclight/field_config_helpers.rb
322
410
  - app/helpers/arclight_helper.rb
411
+ - app/models/arclight/document_downloads.rb
323
412
  - app/models/arclight/parent.rb
324
413
  - app/models/arclight/parents.rb
414
+ - app/models/arclight/requests/aeon_external_request.rb
415
+ - app/models/arclight/requests/aeon_web_ead.rb
325
416
  - app/models/arclight/requests/google_form.rb
326
417
  - app/models/concerns/arclight/catalog.rb
327
418
  - app/models/concerns/arclight/search_behavior.rb
@@ -329,86 +420,55 @@ files:
329
420
  - app/presenters/arclight/index_presenter.rb
330
421
  - app/presenters/arclight/show_presenter.rb
331
422
  - app/views/arclight/.keep
332
- - app/views/arclight/repositories/_in_person_repository.html.erb
423
+ - app/views/arclight/_requests.html.erb
333
424
  - app/views/arclight/repositories/_repository.html.erb
334
425
  - app/views/arclight/repositories/index.html.erb
335
426
  - app/views/arclight/repositories/show.html.erb
427
+ - app/views/arclight/requests/_aeon_external_request_endpoint.html.erb
428
+ - app/views/arclight/requests/_aeon_web_ead.html.erb
336
429
  - app/views/arclight/requests/_google_form.html.erb
337
- - app/views/arclight/viewers/_oembed.html.erb
338
- - app/views/catalog/_arclight_document_index_header.html.erb
339
- - app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb
340
- - app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb
341
- - app/views/catalog/_arclight_index_compact_default.html.erb
342
- - app/views/catalog/_arclight_online_content_indicator.html.erb
343
- - app/views/catalog/_arclight_rangelimit.html.erb
344
- - app/views/catalog/_arclight_viewer_default.html.erb
345
- - app/views/catalog/_collection_contents.html.erb
346
- - app/views/catalog/_collection_count.html.erb
347
- - app/views/catalog/_collection_downloads.html.erb
348
- - app/views/catalog/_collection_online_contents.html.erb
349
- - app/views/catalog/_collection_overview.html.erb
350
- - app/views/catalog/_component_contents.html.erb
351
- - app/views/catalog/_component_overview.html.erb
352
- - app/views/catalog/_context_card.html.erb
353
- - app/views/catalog/_context_sidebar.html.erb
354
- - app/views/catalog/_custom_metadata.html.erb
355
- - app/views/catalog/_home.html.erb
356
- - app/views/catalog/_index_breadcrumb_default.html.erb
357
- - app/views/catalog/_index_default.html.erb
358
- - app/views/catalog/_index_header.html.erb
359
- - app/views/catalog/_index_header_hierarchy_default.html.erb
360
- - app/views/catalog/_index_header_online_contents_default.html.erb
361
- - app/views/catalog/_index_hierarchy_default.html.erb
362
- - app/views/catalog/_index_online_contents_default.html.erb
363
- - app/views/catalog/_results_histogram.html.erb
364
- - app/views/catalog/_search_results.html.erb
365
- - app/views/catalog/_search_results_repository.html.erb
366
- - app/views/catalog/_show_breadcrumbs_default.html.erb
367
- - app/views/catalog/_show_collection.html.erb
368
- - app/views/catalog/_show_component_sidebar.html.erb
369
- - app/views/catalog/_show_default.html.erb
370
- - app/views/catalog/_show_sidebar.html.erb
371
- - app/views/catalog/_show_upper_metadata_collection.html.erb
372
- - app/views/catalog/_show_upper_metadata_default.html.erb
430
+ - app/views/catalog/_document_list.html.erb
431
+ - app/views/catalog/_group.html.erb
432
+ - app/views/catalog/_group_toggle.html.erb
433
+ - app/views/catalog/_search_results_header.html.erb
434
+ - app/views/catalog/hierarchy.html.erb
373
435
  - app/views/catalog/index.html.erb
374
- - app/views/layouts/catalog_result.html.erb
375
436
  - app/views/shared/_breadcrumbs.html.erb
376
- - app/views/shared/_context_sidebar.html.erb
377
- - app/views/shared/_header_navbar.html.erb
378
437
  - app/views/shared/_main_menu_links.html.erb
379
438
  - arclight.gemspec
380
439
  - bin/console
381
440
  - bin/rails
382
441
  - bin/setup
442
+ - config/breadcrumbs.rb
383
443
  - config/i18n-tasks.yml
444
+ - config/importmap.rb
384
445
  - config/locales/arclight.en.yml
446
+ - config/repositories.yml
385
447
  - config/routes.rb
448
+ - docker-compose.yml
386
449
  - lib/arclight.rb
387
- - lib/arclight/custom_component.rb
388
- - lib/arclight/custom_document.rb
389
450
  - lib/arclight/digital_object.rb
390
451
  - lib/arclight/engine.rb
391
452
  - lib/arclight/exceptions.rb
392
453
  - lib/arclight/hash_absolute_xpath.rb
393
- - lib/arclight/indexer.rb
454
+ - lib/arclight/level_label.rb
394
455
  - lib/arclight/missing_id_strategy.rb
395
456
  - lib/arclight/normalized_date.rb
396
457
  - lib/arclight/normalized_id.rb
397
458
  - lib/arclight/normalized_title.rb
398
459
  - lib/arclight/repository.rb
399
- - lib/arclight/shared_indexing_behavior.rb
400
- - lib/arclight/shared_terminology_behavior.rb
401
- - lib/arclight/solr_ead_indexer_ext.rb
460
+ - lib/arclight/routes.rb
461
+ - lib/arclight/routes/hierarchy.rb
462
+ - lib/arclight/traject/ead2_component_config.rb
402
463
  - lib/arclight/traject/ead2_config.rb
464
+ - lib/arclight/traject/nokogiri_namespaceless_reader.rb
403
465
  - lib/arclight/version.rb
404
- - lib/arclight/viewer.rb
405
- - lib/arclight/viewers/oembed.rb
406
466
  - lib/arclight/year_range.rb
407
467
  - lib/generators/arclight/install_generator.rb
408
- - lib/generators/arclight/templates/arclight.js
409
468
  - lib/generators/arclight/templates/arclight.scss
410
469
  - lib/generators/arclight/templates/catalog_controller.rb
411
470
  - lib/generators/arclight/templates/config/downloads.yml
471
+ - lib/generators/arclight/templates/config/locales/arclight.en.yml
412
472
  - lib/generators/arclight/templates/config/repositories.yml
413
473
  - lib/generators/arclight/update_generator.rb
414
474
  - lib/tasks/index.rake
@@ -419,7 +479,6 @@ files:
419
479
  - solr/conf/mapping-ISOLatin1Accent.txt
420
480
  - solr/conf/protwords.txt
421
481
  - solr/conf/schema.xml
422
- - solr/conf/scripts.conf
423
482
  - solr/conf/solrconfig.xml
424
483
  - solr/conf/spellings.txt
425
484
  - solr/conf/stopwords.txt
@@ -431,13 +490,12 @@ files:
431
490
  - solr/conf/xslt/luke.xsl
432
491
  - tasks/arclight.rake
433
492
  - template.rb
434
- - vendor/assets/javascripts/responsiveTruncator.js
435
- - vendor/assets/javascripts/stickyfill.js
436
- homepage: https://github.com/sul-dlss/arclight
493
+ homepage: https://library.stanford.edu/projects/arclight
437
494
  licenses:
438
495
  - Apache-2.0
439
- metadata: {}
440
- post_install_message:
496
+ metadata:
497
+ source_code_uri: https://github.com/projectblacklight/arclight
498
+ post_install_message:
441
499
  rdoc_options: []
442
500
  require_paths:
443
501
  - lib
@@ -445,15 +503,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
503
  requirements:
446
504
  - - ">="
447
505
  - !ruby/object:Gem::Version
448
- version: '0'
506
+ version: 3.0.0
449
507
  required_rubygems_version: !ruby/object:Gem::Requirement
450
508
  requirements:
451
509
  - - ">="
452
510
  - !ruby/object:Gem::Version
453
511
  version: '0'
454
512
  requirements: []
455
- rubygems_version: 3.0.3
456
- signing_key:
513
+ rubygems_version: 3.4.19
514
+ signing_key:
457
515
  specification_version: 4
458
- summary: ''
516
+ summary: A Blacklight-based environment to support discovery and delivery for archives
517
+ and special collections
459
518
  test_files: []
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- notifications:
4
- email: false
5
- rvm:
6
- - 2.5.5
7
- - 2.6.3
8
- jdk:
9
- - oraclejdk9
10
-
11
- before_script:
12
- - find spec/fixtures/ead -name '*.xml' | xargs xmllint --noout --schema spec/fixtures/xsd/ead.xsd
13
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
14
- - chmod +x ./cc-test-reporter
15
- - ./cc-test-reporter before-build
16
- - yarn install
17
- addons:
18
- apt:
19
- packages:
20
- - libxml2-utils
21
- chrome: stable
22
-
23
- env:
24
- global:
25
- - CC_TEST_REPORTER_ID=65288e8c489d9d571730d098a9e7ec951e286f7d8ca3d728f4bb812dd7eeb46d
26
-
27
- after_script:
28
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
@@ -1,18 +0,0 @@
1
- Blacklight.onLoad(function () {
2
- 'use strict';
3
-
4
- $('[data-arclight-collection-context="true"]').each(function (i, element) {
5
- var $el = $(element);
6
- var data = $el.data();
7
- $.ajax({
8
- url: data.arclightCollectionContextUrl
9
- }).done(function (response) {
10
- var resp = $.parseHTML(response);
11
- var $doc = $(resp);
12
- var link = $('<a></a>').attr('href', data.arclightCollectionContextUrl);
13
- var addedSection = $doc.find('.al-show-header-section');
14
- addedSection.find('h1').wrapInner(link);
15
- $el.hide().html(addedSection).fadeIn(500);
16
- });
17
- });
18
- });