arclight 0.4.0 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.eslintrc +11 -4
- data/.github/workflows/ruby.yml +24 -8
- data/.rspec +0 -1
- data/.rubocop.yml +289 -3
- data/.rubocop_todo.yml +64 -76
- data/CONTRIBUTING.md +5 -5
- data/Gemfile +15 -10
- data/README.md +18 -12
- data/app/assets/javascripts/arclight/arclight.js +3 -7
- data/app/assets/javascripts/arclight/oembed_viewer.js +64 -39
- data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
- data/app/assets/stylesheets/arclight/application.scss +1 -5
- data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +104 -130
- data/app/assets/stylesheets/arclight/modules/icons.scss +14 -3
- data/app/assets/stylesheets/arclight/modules/layout.scss +121 -100
- data/app/assets/stylesheets/arclight/modules/mastheads.scss +15 -57
- data/app/assets/stylesheets/arclight/modules/repositories.scss +2 -2
- data/app/assets/stylesheets/arclight/modules/repository_card.scss +4 -48
- data/app/assets/stylesheets/arclight/modules/search_results.scss +86 -35
- data/app/assets/stylesheets/arclight/modules/show_collection.scss +5 -32
- data/app/assets/stylesheets/arclight/modules/truncator.scss +56 -0
- data/app/assets/stylesheets/arclight/variables.scss +7 -4
- data/app/components/arclight/access_component.html.erb +14 -0
- data/app/components/arclight/access_component.rb +25 -0
- data/app/components/arclight/bookmark_component.html.erb +25 -0
- data/app/components/arclight/bookmark_component.rb +9 -0
- data/app/components/arclight/breadcrumb_component.rb +40 -0
- data/app/components/arclight/breadcrumbs_hierarchy_component.html.erb +34 -0
- data/app/components/arclight/breadcrumbs_hierarchy_component.rb +25 -0
- data/app/components/arclight/collection_context_component.html.erb +12 -0
- data/app/components/arclight/collection_context_component.rb +27 -0
- data/app/components/arclight/collection_info_component.html.erb +28 -0
- data/app/components/arclight/collection_info_component.rb +26 -0
- data/app/components/arclight/collection_sidebar_component.html.erb +15 -0
- data/app/components/arclight/collection_sidebar_component.rb +41 -0
- data/app/{views/catalog/_search_results_repository.html.erb → components/arclight/constraints_component.html.erb} +2 -1
- data/app/components/arclight/constraints_component.rb +17 -0
- data/app/components/arclight/document_collection_context_component.html.erb +29 -0
- data/app/components/arclight/document_collection_context_component.rb +28 -0
- data/app/components/arclight/document_collection_hierarchy_component.html.erb +46 -0
- data/app/components/arclight/document_collection_hierarchy_component.rb +62 -0
- data/app/components/arclight/document_component.html.erb +39 -0
- data/app/components/arclight/document_component.rb +49 -0
- data/app/components/arclight/document_components_hierarchy_component.html.erb +32 -0
- data/app/components/arclight/document_components_hierarchy_component.rb +28 -0
- data/app/components/arclight/document_download_component.html.erb +24 -0
- data/app/components/arclight/document_download_component.rb +71 -0
- data/app/components/arclight/embed_component.html.erb +10 -0
- data/app/components/arclight/embed_component.rb +43 -0
- data/app/components/arclight/group_component.html.erb +30 -0
- data/app/components/arclight/group_component.rb +23 -0
- data/app/components/arclight/header_component.html.erb +5 -0
- data/app/components/arclight/header_component.rb +10 -0
- data/app/components/arclight/index_metadata_field_component.html.erb +17 -0
- data/app/components/arclight/index_metadata_field_component.rb +20 -0
- data/app/components/arclight/masthead_component.html.erb +15 -0
- data/app/components/arclight/masthead_component.rb +10 -0
- data/app/components/arclight/metadata_section_component.html.erb +13 -0
- data/app/components/arclight/metadata_section_component.rb +22 -0
- data/app/components/arclight/oembed_viewer_component.html.erb +5 -0
- data/app/components/arclight/oembed_viewer_component.rb +16 -0
- data/app/components/arclight/online_content_filter_component.html.erb +15 -0
- data/app/components/arclight/online_content_filter_component.rb +19 -0
- data/app/components/arclight/online_status_indicator_component.rb +19 -0
- data/app/components/arclight/repository_breadcrumb_component.html.erb +10 -0
- data/app/components/arclight/repository_breadcrumb_component.rb +17 -0
- data/app/components/arclight/repository_location_component.html.erb +20 -0
- data/app/components/arclight/repository_location_component.rb +10 -0
- data/app/components/arclight/search_bar_component.html.erb +25 -0
- data/app/components/arclight/search_bar_component.rb +32 -0
- data/app/components/arclight/search_result_breadcrumbs_component.html.erb +3 -0
- data/app/components/arclight/search_result_breadcrumbs_component.rb +37 -0
- data/app/components/arclight/search_result_component.html.erb +20 -0
- data/app/components/arclight/search_result_component.rb +24 -0
- data/app/components/arclight/search_result_title_component.html.erb +13 -0
- data/app/components/arclight/search_result_title_component.rb +15 -0
- data/app/components/arclight/sidebar_component.html.erb +9 -0
- data/app/components/arclight/sidebar_component.rb +19 -0
- data/app/components/arclight/upper_metadata_layout_component.rb +10 -0
- data/app/components/blacklight/icons/bookmark_component.rb +12 -0
- data/app/components/blacklight/icons/collection_component.rb +14 -0
- data/app/components/blacklight/icons/compact_component.rb +12 -0
- data/app/components/blacklight/icons/container_component.rb +14 -0
- data/app/components/blacklight/icons/ead_component.rb +12 -0
- data/app/components/blacklight/icons/file_component.rb +14 -0
- data/app/components/blacklight/icons/folder_component.rb +12 -0
- data/app/components/blacklight/icons/online_component.rb +15 -0
- data/app/components/blacklight/icons/pdf_component.rb +12 -0
- data/app/components/blacklight/icons/repository_component.rb +12 -0
- data/app/controllers/arclight/repositories_controller.rb +4 -4
- data/app/{controllers/concerns → helpers}/arclight/ead_format_helpers.rb +4 -7
- data/app/helpers/arclight/field_config_helpers.rb +26 -0
- data/app/helpers/arclight_helper.rb +16 -254
- data/app/models/arclight/document_downloads.rb +12 -15
- data/app/models/arclight/parent.rb +5 -0
- data/app/models/arclight/parents.rb +2 -1
- data/app/models/arclight/requests/aeon_external_request.rb +1 -1
- data/app/models/arclight/requests/aeon_web_ead.rb +8 -3
- data/app/models/arclight/requests/google_form.rb +8 -3
- data/app/models/concerns/arclight/catalog.rb +25 -15
- data/app/models/concerns/arclight/search_behavior.rb +12 -26
- data/app/models/concerns/arclight/solr_document.rb +70 -73
- data/app/presenters/arclight/show_presenter.rb +34 -7
- data/app/views/arclight/_requests.html.erb +2 -2
- data/app/views/arclight/repositories/_repository.html.erb +21 -40
- data/app/views/arclight/repositories/index.html.erb +3 -1
- data/app/views/arclight/repositories/show.html.erb +4 -6
- data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +4 -5
- data/app/views/arclight/requests/_aeon_web_ead.html.erb +3 -4
- data/app/views/arclight/requests/_google_form.html.erb +4 -6
- data/app/views/catalog/_group.html.erb +1 -18
- data/app/views/catalog/_group_toggle.html.erb +1 -1
- data/app/views/catalog/_search_results_header.html.erb +3 -0
- data/app/views/catalog/hierarchy.html.erb +19 -0
- data/app/views/catalog/index.html.erb +16 -7
- data/app/views/shared/_breadcrumbs.html.erb +2 -14
- data/app/views/shared/_main_menu_links.html.erb +1 -1
- data/arclight.gemspec +13 -11
- data/config/breadcrumbs.rb +24 -0
- data/config/i18n-tasks.yml +9 -8
- data/config/importmap.rb +3 -0
- data/config/locales/arclight.en.yml +31 -30
- data/config/routes.rb +1 -1
- data/docker-compose.yml +16 -0
- data/lib/arclight/digital_object.rb +2 -1
- data/lib/arclight/engine.rb +18 -37
- data/lib/arclight/exceptions.rb +1 -0
- data/lib/arclight/hash_absolute_xpath.rb +2 -1
- data/lib/arclight/normalized_id.rb +2 -0
- data/lib/arclight/normalized_title.rb +2 -0
- data/lib/arclight/repository.rb +45 -56
- data/lib/arclight/routes/hierarchy.rb +19 -0
- data/lib/arclight/routes.rb +8 -0
- data/lib/arclight/traject/ead2_component_config.rb +292 -0
- data/lib/arclight/traject/ead2_config.rb +66 -287
- data/lib/arclight/version.rb +1 -1
- data/lib/arclight/year_range.rb +4 -3
- data/lib/arclight.rb +6 -1
- data/lib/generators/arclight/install_generator.rb +59 -21
- data/lib/generators/arclight/templates/arclight.scss +4 -3
- data/lib/generators/arclight/templates/catalog_controller.rb +150 -165
- data/lib/generators/arclight/templates/config/locales/arclight.en.yml +53 -0
- data/lib/generators/arclight/templates/config/repositories.yml +20 -27
- data/lib/tasks/index.rake +14 -17
- data/package.json +11 -13
- data/solr/conf/schema.xml +42 -38
- data/solr/conf/solrconfig.xml +34 -31
- data/tasks/arclight.rake +8 -7
- data/template.rb +1 -2
- metadata +147 -120
- data/.babelrc +0 -3
- data/app/assets/javascripts/arclight/collection_navigation.js +0 -100
- data/app/assets/javascripts/arclight/collection_scrollspy.js +0 -6
- data/app/assets/javascripts/arclight/context_navigation.js +0 -351
- data/app/assets/javascripts/arclight/truncator.js.erb +0 -29
- data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +0 -26
- data/app/assets/stylesheets/arclight/modules/context_navigation.scss +0 -75
- data/app/controllers/concerns/arclight/field_config_helpers.rb +0 -102
- data/app/factories/blacklight_field_configuration_factory.rb +0 -30
- data/app/views/arclight/repositories/_in_person_repository.html.erb +0 -19
- data/app/views/arclight/repositories/_repository_contact.html.erb +0 -9
- data/app/views/arclight/viewers/_oembed.html.erb +0 -8
- data/app/views/catalog/_access_contents.html.erb +0 -15
- data/app/views/catalog/_arclight_abstract_or_scope.html.erb +0 -5
- data/app/views/catalog/_arclight_bookmark_control.html.erb +0 -38
- data/app/views/catalog/_arclight_document_header_icon.html.erb +0 -1
- data/app/views/catalog/_arclight_document_index_header.html.erb +0 -13
- data/app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb +0 -0
- data/app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb +0 -0
- data/app/views/catalog/_arclight_index_compact_default.html.erb +0 -22
- data/app/views/catalog/_arclight_index_default.html.erb +0 -45
- data/app/views/catalog/_arclight_index_group_document_compact_default.html.erb +0 -19
- data/app/views/catalog/_arclight_index_group_document_default.html.erb +0 -18
- data/app/views/catalog/_arclight_online_content_indicator.html.erb +0 -3
- data/app/views/catalog/_arclight_rangelimit.html.erb +0 -24
- data/app/views/catalog/_arclight_viewer_default.html.erb +0 -1
- data/app/views/catalog/_collection_contents.html.erb +0 -4
- data/app/views/catalog/_collection_context.html.erb +0 -15
- data/app/views/catalog/_collection_context_nav.html.erb +0 -12
- data/app/views/catalog/_collection_online_contents.html.erb +0 -17
- data/app/views/catalog/_component_context.html.erb +0 -5
- data/app/views/catalog/_containers.html.erb +0 -3
- data/app/views/catalog/_context_card.html.erb +0 -27
- data/app/views/catalog/_context_sidebar.html.erb +0 -8
- data/app/views/catalog/_custom_metadata.html.erb +0 -16
- data/app/views/catalog/_document_downloads.html.erb +0 -14
- data/app/views/catalog/_group_header_compact_default.html.erb +0 -15
- data/app/views/catalog/_group_header_default.html.erb +0 -20
- data/app/views/catalog/_home.html.erb +0 -1
- data/app/views/catalog/_index_breadcrumb_default.html.erb +0 -6
- data/app/views/catalog/_index_collection_context_default.html.erb +0 -53
- data/app/views/catalog/_index_default.html.erb +0 -17
- data/app/views/catalog/_index_header.html.erb +0 -7
- data/app/views/catalog/_index_header_online_contents_default.html.erb +0 -1
- data/app/views/catalog/_index_online_contents_default.html.erb +0 -6
- data/app/views/catalog/_online_content_label.html.erb +0 -5
- data/app/views/catalog/_search_form.html.erb +0 -34
- data/app/views/catalog/_search_results.html.erb +0 -28
- data/app/views/catalog/_show_actions_box_default.html.erb +0 -27
- data/app/views/catalog/_show_breadcrumbs_default.html.erb +0 -6
- data/app/views/catalog/_show_collection.html.erb +0 -66
- data/app/views/catalog/_show_default.html.erb +0 -70
- data/app/views/catalog/_show_upper_metadata_collection.html.erb +0 -1
- data/app/views/catalog/_show_upper_metadata_default.html.erb +0 -14
- data/app/views/catalog/_sort_and_per_page.html.erb +0 -8
- data/app/views/catalog/_within_collection_dropdown.html.erb +0 -26
- data/app/views/layouts/catalog_result.html.erb +0 -7
- data/app/views/shared/_context_sidebar.html.erb +0 -8
- data/app/views/shared/_header_navbar.html.erb +0 -61
- data/app/views/shared/_show_breadcrumbs.html.erb +0 -27
- data/lib/arclight/viewer.rb +0 -45
- data/lib/arclight/viewers/oembed.rb +0 -57
- data/solr/conf/scripts.conf +0 -24
- data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
- data/vendor/assets/javascripts/stickyfill.js +0 -480
metadata
CHANGED
@@ -1,80 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arclight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta1
|
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:
|
14
|
+
date: 2023-02-08 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.2'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
20
|
+
- - ">="
|
28
21
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
-
|
31
|
-
name: blacklight_range_limit
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
requirements:
|
34
|
-
- - "~>"
|
22
|
+
version: 8.0.0.beta
|
23
|
+
- - "<"
|
35
24
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
25
|
+
version: '9'
|
37
26
|
type: :runtime
|
38
27
|
prerelease: false
|
39
28
|
version_requirements: !ruby/object:Gem::Requirement
|
40
29
|
requirements:
|
41
|
-
- - "
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 8.0.0.beta
|
33
|
+
- - "<"
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
35
|
+
version: '9'
|
44
36
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
37
|
+
name: gretel
|
46
38
|
requirement: !ruby/object:Gem::Requirement
|
47
39
|
requirements:
|
48
40
|
- - ">="
|
49
41
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
51
|
-
- - "<"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '6.2'
|
42
|
+
version: '0'
|
54
43
|
type: :runtime
|
55
44
|
prerelease: false
|
56
45
|
version_requirements: !ruby/object:Gem::Requirement
|
57
46
|
requirements:
|
58
47
|
- - ">="
|
59
48
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
61
|
-
- - "<"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '6.2'
|
49
|
+
version: '0'
|
64
50
|
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
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.0'
|
71
57
|
type: :runtime
|
72
58
|
prerelease: false
|
73
59
|
version_requirements: !ruby/object:Gem::Requirement
|
74
60
|
requirements:
|
75
|
-
- - "
|
61
|
+
- - "~>"
|
76
62
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
63
|
+
version: '7.0'
|
78
64
|
- !ruby/object:Gem::Dependency
|
79
65
|
name: traject
|
80
66
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,28 +81,28 @@ dependencies:
|
|
95
81
|
requirements:
|
96
82
|
- - "~>"
|
97
83
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
84
|
+
version: '2.0'
|
99
85
|
type: :runtime
|
100
86
|
prerelease: false
|
101
87
|
version_requirements: !ruby/object:Gem::Requirement
|
102
88
|
requirements:
|
103
89
|
- - "~>"
|
104
90
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
91
|
+
version: '2.0'
|
106
92
|
- !ruby/object:Gem::Dependency
|
107
93
|
name: bundler
|
108
94
|
requirement: !ruby/object:Gem::Requirement
|
109
95
|
requirements:
|
110
|
-
- - "
|
96
|
+
- - ">="
|
111
97
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
98
|
+
version: '0'
|
113
99
|
type: :development
|
114
100
|
prerelease: false
|
115
101
|
version_requirements: !ruby/object:Gem::Requirement
|
116
102
|
requirements:
|
117
|
-
- - "
|
103
|
+
- - ">="
|
118
104
|
- !ruby/object:Gem::Version
|
119
|
-
version: '
|
105
|
+
version: '0'
|
120
106
|
- !ruby/object:Gem::Dependency
|
121
107
|
name: capybara
|
122
108
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,14 +149,14 @@ dependencies:
|
|
163
149
|
name: rake
|
164
150
|
requirement: !ruby/object:Gem::Requirement
|
165
151
|
requirements:
|
166
|
-
- - "
|
152
|
+
- - ">="
|
167
153
|
- !ruby/object:Gem::Version
|
168
154
|
version: '12.0'
|
169
155
|
type: :development
|
170
156
|
prerelease: false
|
171
157
|
version_requirements: !ruby/object:Gem::Requirement
|
172
158
|
requirements:
|
173
|
-
- - "
|
159
|
+
- - ">="
|
174
160
|
- !ruby/object:Gem::Version
|
175
161
|
version: '12.0'
|
176
162
|
- !ruby/object:Gem::Dependency
|
@@ -193,28 +179,56 @@ dependencies:
|
|
193
179
|
requirements:
|
194
180
|
- - "~>"
|
195
181
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
182
|
+
version: '1.8'
|
183
|
+
type: :development
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.8'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: rubocop-rails
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - "~>"
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '2.8'
|
197
197
|
type: :development
|
198
198
|
prerelease: false
|
199
199
|
version_requirements: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
203
|
+
version: '2.8'
|
204
|
+
- !ruby/object:Gem::Dependency
|
205
|
+
name: rubocop-rake
|
206
|
+
requirement: !ruby/object:Gem::Requirement
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: '0'
|
211
|
+
type: :development
|
212
|
+
prerelease: false
|
213
|
+
version_requirements: !ruby/object:Gem::Requirement
|
214
|
+
requirements:
|
215
|
+
- - ">="
|
216
|
+
- !ruby/object:Gem::Version
|
217
|
+
version: '0'
|
204
218
|
- !ruby/object:Gem::Dependency
|
205
219
|
name: rubocop-rspec
|
206
220
|
requirement: !ruby/object:Gem::Requirement
|
207
221
|
requirements:
|
208
222
|
- - "~>"
|
209
223
|
- !ruby/object:Gem::Version
|
210
|
-
version: '
|
224
|
+
version: '2.3'
|
211
225
|
type: :development
|
212
226
|
prerelease: false
|
213
227
|
version_requirements: !ruby/object:Gem::Requirement
|
214
228
|
requirements:
|
215
229
|
- - "~>"
|
216
230
|
- !ruby/object:Gem::Version
|
217
|
-
version: '
|
231
|
+
version: '2.3'
|
218
232
|
- !ruby/object:Gem::Dependency
|
219
233
|
name: selenium-webdriver
|
220
234
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,7 +296,6 @@ extensions: []
|
|
282
296
|
extra_rdoc_files: []
|
283
297
|
files:
|
284
298
|
- ".all-contributorsrc"
|
285
|
-
- ".babelrc"
|
286
299
|
- ".codeclimate.yml"
|
287
300
|
- ".eslintrc"
|
288
301
|
- ".github/workflows/ruby.yml"
|
@@ -312,15 +325,10 @@ files:
|
|
312
325
|
- app/assets/images/blacklight/plus.svg
|
313
326
|
- app/assets/images/blacklight/repository.svg
|
314
327
|
- app/assets/javascripts/arclight/arclight.js
|
315
|
-
- app/assets/javascripts/arclight/collection_navigation.js
|
316
|
-
- app/assets/javascripts/arclight/collection_scrollspy.js
|
317
|
-
- app/assets/javascripts/arclight/context_navigation.js
|
318
328
|
- app/assets/javascripts/arclight/oembed_viewer.js
|
319
|
-
- app/assets/javascripts/arclight/
|
329
|
+
- app/assets/javascripts/arclight/truncate_controller.js
|
320
330
|
- app/assets/stylesheets/arclight/application.scss
|
321
|
-
- app/assets/stylesheets/arclight/bootstrap_overrides.scss
|
322
331
|
- app/assets/stylesheets/arclight/modules/collection_search.scss
|
323
|
-
- app/assets/stylesheets/arclight/modules/context_navigation.scss
|
324
332
|
- app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss
|
325
333
|
- app/assets/stylesheets/arclight/modules/highlights.scss
|
326
334
|
- app/assets/stylesheets/arclight/modules/icons.scss
|
@@ -330,12 +338,79 @@ files:
|
|
330
338
|
- app/assets/stylesheets/arclight/modules/repository_card.scss
|
331
339
|
- app/assets/stylesheets/arclight/modules/search_results.scss
|
332
340
|
- app/assets/stylesheets/arclight/modules/show_collection.scss
|
341
|
+
- app/assets/stylesheets/arclight/modules/truncator.scss
|
333
342
|
- app/assets/stylesheets/arclight/responsive.scss
|
334
343
|
- app/assets/stylesheets/arclight/variables.scss
|
344
|
+
- app/components/arclight/access_component.html.erb
|
345
|
+
- app/components/arclight/access_component.rb
|
346
|
+
- app/components/arclight/bookmark_component.html.erb
|
347
|
+
- app/components/arclight/bookmark_component.rb
|
348
|
+
- app/components/arclight/breadcrumb_component.rb
|
349
|
+
- app/components/arclight/breadcrumbs_hierarchy_component.html.erb
|
350
|
+
- app/components/arclight/breadcrumbs_hierarchy_component.rb
|
351
|
+
- app/components/arclight/collection_context_component.html.erb
|
352
|
+
- app/components/arclight/collection_context_component.rb
|
353
|
+
- app/components/arclight/collection_info_component.html.erb
|
354
|
+
- app/components/arclight/collection_info_component.rb
|
355
|
+
- app/components/arclight/collection_sidebar_component.html.erb
|
356
|
+
- app/components/arclight/collection_sidebar_component.rb
|
357
|
+
- app/components/arclight/constraints_component.html.erb
|
358
|
+
- app/components/arclight/constraints_component.rb
|
359
|
+
- app/components/arclight/document_collection_context_component.html.erb
|
360
|
+
- app/components/arclight/document_collection_context_component.rb
|
361
|
+
- app/components/arclight/document_collection_hierarchy_component.html.erb
|
362
|
+
- app/components/arclight/document_collection_hierarchy_component.rb
|
363
|
+
- app/components/arclight/document_component.html.erb
|
364
|
+
- app/components/arclight/document_component.rb
|
365
|
+
- app/components/arclight/document_components_hierarchy_component.html.erb
|
366
|
+
- app/components/arclight/document_components_hierarchy_component.rb
|
367
|
+
- app/components/arclight/document_download_component.html.erb
|
368
|
+
- app/components/arclight/document_download_component.rb
|
369
|
+
- app/components/arclight/embed_component.html.erb
|
370
|
+
- app/components/arclight/embed_component.rb
|
371
|
+
- app/components/arclight/group_component.html.erb
|
372
|
+
- app/components/arclight/group_component.rb
|
373
|
+
- app/components/arclight/header_component.html.erb
|
374
|
+
- app/components/arclight/header_component.rb
|
375
|
+
- app/components/arclight/index_metadata_field_component.html.erb
|
376
|
+
- app/components/arclight/index_metadata_field_component.rb
|
377
|
+
- app/components/arclight/masthead_component.html.erb
|
378
|
+
- app/components/arclight/masthead_component.rb
|
379
|
+
- app/components/arclight/metadata_section_component.html.erb
|
380
|
+
- app/components/arclight/metadata_section_component.rb
|
381
|
+
- app/components/arclight/oembed_viewer_component.html.erb
|
382
|
+
- app/components/arclight/oembed_viewer_component.rb
|
383
|
+
- app/components/arclight/online_content_filter_component.html.erb
|
384
|
+
- app/components/arclight/online_content_filter_component.rb
|
385
|
+
- app/components/arclight/online_status_indicator_component.rb
|
386
|
+
- app/components/arclight/repository_breadcrumb_component.html.erb
|
387
|
+
- app/components/arclight/repository_breadcrumb_component.rb
|
388
|
+
- app/components/arclight/repository_location_component.html.erb
|
389
|
+
- app/components/arclight/repository_location_component.rb
|
390
|
+
- app/components/arclight/search_bar_component.html.erb
|
391
|
+
- app/components/arclight/search_bar_component.rb
|
392
|
+
- app/components/arclight/search_result_breadcrumbs_component.html.erb
|
393
|
+
- app/components/arclight/search_result_breadcrumbs_component.rb
|
394
|
+
- app/components/arclight/search_result_component.html.erb
|
395
|
+
- app/components/arclight/search_result_component.rb
|
396
|
+
- app/components/arclight/search_result_title_component.html.erb
|
397
|
+
- app/components/arclight/search_result_title_component.rb
|
398
|
+
- app/components/arclight/sidebar_component.html.erb
|
399
|
+
- app/components/arclight/sidebar_component.rb
|
400
|
+
- app/components/arclight/upper_metadata_layout_component.rb
|
401
|
+
- app/components/blacklight/icons/bookmark_component.rb
|
402
|
+
- app/components/blacklight/icons/collection_component.rb
|
403
|
+
- app/components/blacklight/icons/compact_component.rb
|
404
|
+
- app/components/blacklight/icons/container_component.rb
|
405
|
+
- app/components/blacklight/icons/ead_component.rb
|
406
|
+
- app/components/blacklight/icons/file_component.rb
|
407
|
+
- app/components/blacklight/icons/folder_component.rb
|
408
|
+
- app/components/blacklight/icons/online_component.rb
|
409
|
+
- app/components/blacklight/icons/pdf_component.rb
|
410
|
+
- app/components/blacklight/icons/repository_component.rb
|
335
411
|
- app/controllers/arclight/repositories_controller.rb
|
336
|
-
- app/
|
337
|
-
- app/
|
338
|
-
- app/factories/blacklight_field_configuration_factory.rb
|
412
|
+
- app/helpers/arclight/ead_format_helpers.rb
|
413
|
+
- app/helpers/arclight/field_config_helpers.rb
|
339
414
|
- app/helpers/arclight_helper.rb
|
340
415
|
- app/models/arclight/document_downloads.rb
|
341
416
|
- app/models/arclight/parent.rb
|
@@ -350,77 +425,30 @@ files:
|
|
350
425
|
- app/presenters/arclight/show_presenter.rb
|
351
426
|
- app/views/arclight/.keep
|
352
427
|
- app/views/arclight/_requests.html.erb
|
353
|
-
- app/views/arclight/repositories/_in_person_repository.html.erb
|
354
428
|
- app/views/arclight/repositories/_repository.html.erb
|
355
|
-
- app/views/arclight/repositories/_repository_contact.html.erb
|
356
429
|
- app/views/arclight/repositories/index.html.erb
|
357
430
|
- app/views/arclight/repositories/show.html.erb
|
358
431
|
- app/views/arclight/requests/_aeon_external_request_endpoint.html.erb
|
359
432
|
- app/views/arclight/requests/_aeon_web_ead.html.erb
|
360
433
|
- app/views/arclight/requests/_google_form.html.erb
|
361
|
-
- app/views/arclight/viewers/_oembed.html.erb
|
362
|
-
- app/views/catalog/_access_contents.html.erb
|
363
|
-
- app/views/catalog/_arclight_abstract_or_scope.html.erb
|
364
|
-
- app/views/catalog/_arclight_bookmark_control.html.erb
|
365
|
-
- app/views/catalog/_arclight_document_header_icon.html.erb
|
366
|
-
- app/views/catalog/_arclight_document_index_header.html.erb
|
367
|
-
- app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb
|
368
|
-
- app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb
|
369
|
-
- app/views/catalog/_arclight_index_compact_default.html.erb
|
370
|
-
- app/views/catalog/_arclight_index_default.html.erb
|
371
|
-
- app/views/catalog/_arclight_index_group_document_compact_default.html.erb
|
372
|
-
- app/views/catalog/_arclight_index_group_document_default.html.erb
|
373
|
-
- app/views/catalog/_arclight_online_content_indicator.html.erb
|
374
|
-
- app/views/catalog/_arclight_rangelimit.html.erb
|
375
|
-
- app/views/catalog/_arclight_viewer_default.html.erb
|
376
|
-
- app/views/catalog/_collection_contents.html.erb
|
377
|
-
- app/views/catalog/_collection_context.html.erb
|
378
|
-
- app/views/catalog/_collection_context_nav.html.erb
|
379
|
-
- app/views/catalog/_collection_online_contents.html.erb
|
380
|
-
- app/views/catalog/_component_context.html.erb
|
381
|
-
- app/views/catalog/_containers.html.erb
|
382
|
-
- app/views/catalog/_context_card.html.erb
|
383
|
-
- app/views/catalog/_context_sidebar.html.erb
|
384
|
-
- app/views/catalog/_custom_metadata.html.erb
|
385
|
-
- app/views/catalog/_document_downloads.html.erb
|
386
434
|
- app/views/catalog/_group.html.erb
|
387
|
-
- app/views/catalog/_group_header_compact_default.html.erb
|
388
|
-
- app/views/catalog/_group_header_default.html.erb
|
389
435
|
- app/views/catalog/_group_toggle.html.erb
|
390
|
-
- app/views/catalog/
|
391
|
-
- app/views/catalog/
|
392
|
-
- app/views/catalog/_index_collection_context_default.html.erb
|
393
|
-
- app/views/catalog/_index_default.html.erb
|
394
|
-
- app/views/catalog/_index_header.html.erb
|
395
|
-
- app/views/catalog/_index_header_online_contents_default.html.erb
|
396
|
-
- app/views/catalog/_index_online_contents_default.html.erb
|
397
|
-
- app/views/catalog/_online_content_label.html.erb
|
398
|
-
- app/views/catalog/_search_form.html.erb
|
399
|
-
- app/views/catalog/_search_results.html.erb
|
400
|
-
- app/views/catalog/_search_results_repository.html.erb
|
401
|
-
- app/views/catalog/_show_actions_box_default.html.erb
|
402
|
-
- app/views/catalog/_show_breadcrumbs_default.html.erb
|
403
|
-
- app/views/catalog/_show_collection.html.erb
|
404
|
-
- app/views/catalog/_show_default.html.erb
|
405
|
-
- app/views/catalog/_show_upper_metadata_collection.html.erb
|
406
|
-
- app/views/catalog/_show_upper_metadata_default.html.erb
|
407
|
-
- app/views/catalog/_sort_and_per_page.html.erb
|
408
|
-
- app/views/catalog/_within_collection_dropdown.html.erb
|
436
|
+
- app/views/catalog/_search_results_header.html.erb
|
437
|
+
- app/views/catalog/hierarchy.html.erb
|
409
438
|
- app/views/catalog/index.html.erb
|
410
|
-
- app/views/layouts/catalog_result.html.erb
|
411
439
|
- app/views/shared/_breadcrumbs.html.erb
|
412
|
-
- app/views/shared/_context_sidebar.html.erb
|
413
|
-
- app/views/shared/_header_navbar.html.erb
|
414
440
|
- app/views/shared/_main_menu_links.html.erb
|
415
|
-
- app/views/shared/_show_breadcrumbs.html.erb
|
416
441
|
- arclight.gemspec
|
417
442
|
- bin/console
|
418
443
|
- bin/rails
|
419
444
|
- bin/setup
|
445
|
+
- config/breadcrumbs.rb
|
420
446
|
- config/i18n-tasks.yml
|
447
|
+
- config/importmap.rb
|
421
448
|
- config/locales/arclight.en.yml
|
422
449
|
- config/repositories.yml
|
423
450
|
- config/routes.rb
|
451
|
+
- docker-compose.yml
|
424
452
|
- lib/arclight.rb
|
425
453
|
- lib/arclight/digital_object.rb
|
426
454
|
- lib/arclight/engine.rb
|
@@ -432,16 +460,18 @@ files:
|
|
432
460
|
- lib/arclight/normalized_id.rb
|
433
461
|
- lib/arclight/normalized_title.rb
|
434
462
|
- lib/arclight/repository.rb
|
463
|
+
- lib/arclight/routes.rb
|
464
|
+
- lib/arclight/routes/hierarchy.rb
|
465
|
+
- lib/arclight/traject/ead2_component_config.rb
|
435
466
|
- lib/arclight/traject/ead2_config.rb
|
436
467
|
- lib/arclight/traject/nokogiri_namespaceless_reader.rb
|
437
468
|
- lib/arclight/version.rb
|
438
|
-
- lib/arclight/viewer.rb
|
439
|
-
- lib/arclight/viewers/oembed.rb
|
440
469
|
- lib/arclight/year_range.rb
|
441
470
|
- lib/generators/arclight/install_generator.rb
|
442
471
|
- lib/generators/arclight/templates/arclight.scss
|
443
472
|
- lib/generators/arclight/templates/catalog_controller.rb
|
444
473
|
- lib/generators/arclight/templates/config/downloads.yml
|
474
|
+
- lib/generators/arclight/templates/config/locales/arclight.en.yml
|
445
475
|
- lib/generators/arclight/templates/config/repositories.yml
|
446
476
|
- lib/generators/arclight/update_generator.rb
|
447
477
|
- lib/tasks/index.rake
|
@@ -452,7 +482,6 @@ files:
|
|
452
482
|
- solr/conf/mapping-ISOLatin1Accent.txt
|
453
483
|
- solr/conf/protwords.txt
|
454
484
|
- solr/conf/schema.xml
|
455
|
-
- solr/conf/scripts.conf
|
456
485
|
- solr/conf/solrconfig.xml
|
457
486
|
- solr/conf/spellings.txt
|
458
487
|
- solr/conf/stopwords.txt
|
@@ -464,13 +493,11 @@ files:
|
|
464
493
|
- solr/conf/xslt/luke.xsl
|
465
494
|
- tasks/arclight.rake
|
466
495
|
- template.rb
|
467
|
-
|
468
|
-
- vendor/assets/javascripts/stickyfill.js
|
469
|
-
homepage: https://github.com/sul-dlss/arclight
|
496
|
+
homepage: https://github.com/projectblacklight/arclight
|
470
497
|
licenses:
|
471
498
|
- Apache-2.0
|
472
499
|
metadata: {}
|
473
|
-
post_install_message:
|
500
|
+
post_install_message:
|
474
501
|
rdoc_options: []
|
475
502
|
require_paths:
|
476
503
|
- lib
|
@@ -478,15 +505,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
478
505
|
requirements:
|
479
506
|
- - ">="
|
480
507
|
- !ruby/object:Gem::Version
|
481
|
-
version:
|
508
|
+
version: 3.0.0
|
482
509
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
483
510
|
requirements:
|
484
|
-
- - "
|
511
|
+
- - ">"
|
485
512
|
- !ruby/object:Gem::Version
|
486
|
-
version:
|
513
|
+
version: 1.3.1
|
487
514
|
requirements: []
|
488
|
-
rubygems_version: 3.
|
489
|
-
signing_key:
|
515
|
+
rubygems_version: 3.3.7
|
516
|
+
signing_key:
|
490
517
|
specification_version: 4
|
491
518
|
summary: ''
|
492
519
|
test_files: []
|
data/.babelrc
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
(function (global) {
|
2
|
-
var CollectionNavigation;
|
3
|
-
|
4
|
-
CollectionNavigation = {
|
5
|
-
init: function (el, page = 1) {
|
6
|
-
var $el = $(el);
|
7
|
-
var data = $el.data();
|
8
|
-
// Add a placeholder so flashes of text are not as significant
|
9
|
-
var placeholder = '<div class="al-hierarchy-placeholder">' +
|
10
|
-
'<h3 class="col-md-9"></h3>' +
|
11
|
-
'<p class="col-md-6"></p>' +
|
12
|
-
'<p class="col-md-12"></p>' +
|
13
|
-
'<p class="col-md-3"></p>' +
|
14
|
-
'</div>';
|
15
|
-
placeholder = new Array(3).join(placeholder);
|
16
|
-
$el.html(placeholder);
|
17
|
-
$.ajax({
|
18
|
-
url: data.arclight.path,
|
19
|
-
data: {
|
20
|
-
'f[component_level_isim][]': data.arclight.level,
|
21
|
-
'f[has_online_content_ssim][]': data.arclight.access,
|
22
|
-
'f[collection_sim][]': data.arclight.name,
|
23
|
-
'f[parent_ssim][]': data.arclight.parent,
|
24
|
-
page: page,
|
25
|
-
search_field: data.arclight.search_field,
|
26
|
-
view: data.arclight.view || 'hierarchy'
|
27
|
-
}
|
28
|
-
}).done(function (response) {
|
29
|
-
var resp = $.parseHTML(response);
|
30
|
-
var $doc = $(resp);
|
31
|
-
var showDocs = $doc.find('article.document');
|
32
|
-
var newDocs = $doc.find('#documents');
|
33
|
-
var sortPerPage = $doc.find('#sortAndPerPage');
|
34
|
-
var pageEntries = sortPerPage.find('.page-entries');
|
35
|
-
var numberEntries = parseInt(pageEntries.find('strong').last().text().replace(/,/g, ''), 10);
|
36
|
-
|
37
|
-
// Hide these until we re-enable in the future
|
38
|
-
sortPerPage.find('.result-type-group').hide();
|
39
|
-
sortPerPage.find('.search-widgets').hide();
|
40
|
-
|
41
|
-
if (!isNaN(numberEntries)) {
|
42
|
-
$('[data-arclight-online-content-tab-count]').html(
|
43
|
-
$(
|
44
|
-
'<span class="badge badge-pill badge-secondary al-online-content-badge">'
|
45
|
-
+ numberEntries
|
46
|
-
+ '<span class="sr-only">components</span></span>'
|
47
|
-
)
|
48
|
-
);
|
49
|
-
}
|
50
|
-
|
51
|
-
sortPerPage.find('a').on('click', function (e) {
|
52
|
-
var pages = [];
|
53
|
-
var $target = $(e.target);
|
54
|
-
e.preventDefault();
|
55
|
-
pages = /page=(\d+)&/.exec($target.attr('href'));
|
56
|
-
if (pages) {
|
57
|
-
CollectionNavigation.init($el, pages[1]);
|
58
|
-
} else {
|
59
|
-
// Case where the "first" page
|
60
|
-
CollectionNavigation.init($el);
|
61
|
-
}
|
62
|
-
});
|
63
|
-
|
64
|
-
$el.hide().html('').append(sortPerPage).append(newDocs)
|
65
|
-
.fadeIn(500);
|
66
|
-
if (showDocs.length > 0) {
|
67
|
-
$el.trigger('navigation.contains.elements');
|
68
|
-
}
|
69
|
-
Blacklight.doBookmarkToggleBehavior();
|
70
|
-
});
|
71
|
-
}
|
72
|
-
};
|
73
|
-
|
74
|
-
global.CollectionNavigation = CollectionNavigation;
|
75
|
-
}(this));
|
76
|
-
|
77
|
-
Blacklight.onLoad(function () {
|
78
|
-
'use strict';
|
79
|
-
|
80
|
-
$('.al-contents').each(function (i, element) {
|
81
|
-
CollectionNavigation.init(element); // eslint-disable-line no-undef
|
82
|
-
});
|
83
|
-
|
84
|
-
$('.al-contents').on('navigation.contains.elements', function (e) {
|
85
|
-
var toEnable = $('[data-hierarchy-enable-me]');
|
86
|
-
var srOnly = $('h2[data-sr-enable-me]');
|
87
|
-
toEnable.removeClass('disabled');
|
88
|
-
toEnable.text(srOnly.data('hasContents'));
|
89
|
-
srOnly.text(srOnly.data('hasContents'));
|
90
|
-
|
91
|
-
$(e.target).find('.collapse').on('show.bs.collapse', function (ee) {
|
92
|
-
var $newTarget = $(ee.target);
|
93
|
-
$newTarget.find('.al-contents').each(function (i, element) {
|
94
|
-
CollectionNavigation.init(element); // eslint-disable-line no-undef
|
95
|
-
// Turn off additional ajax requests on show
|
96
|
-
$newTarget.off('show.bs.collapse');
|
97
|
-
});
|
98
|
-
});
|
99
|
-
});
|
100
|
-
});
|