arclight 0.3.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.
- checksums.yaml +4 -4
- data/.eslintrc +11 -4
- data/.github/workflows/ruby.yml +51 -0
- data/.gitignore +1 -0
- data/.rspec +0 -1
- data/.rubocop.yml +498 -21
- data/.rubocop_todo.yml +69 -86
- data/.solr_wrapper +2 -1
- data/CONTRIBUTING.md +5 -5
- data/CONTRIBUTORS.md +1 -1
- data/Gemfile +15 -10
- data/README.md +22 -17
- data/app/assets/images/blacklight/bookmark.svg +1 -1
- data/app/assets/images/blacklight/collection.svg +1 -1
- data/app/assets/images/blacklight/compact.svg +1 -1
- data/app/assets/images/blacklight/container.svg +1 -1
- data/app/assets/images/blacklight/ead.svg +1 -1
- data/app/assets/images/blacklight/file.svg +1 -1
- data/app/assets/images/blacklight/folder.svg +1 -1
- data/app/assets/images/blacklight/list.svg +1 -1
- data/app/assets/images/blacklight/online.svg +1 -1
- data/app/assets/images/blacklight/pdf.svg +1 -1
- data/app/assets/images/blacklight/repository.svg +1 -1
- data/app/assets/javascripts/arclight/arclight.js +4 -8
- data/app/assets/javascripts/arclight/oembed_controller.js +58 -0
- data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
- data/app/assets/stylesheets/arclight/application.scss +3 -5
- data/app/assets/stylesheets/arclight/build.scss +4 -0
- data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +108 -130
- data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
- data/app/assets/stylesheets/arclight/modules/layout.scss +129 -100
- data/app/assets/stylesheets/arclight/modules/mastheads.scss +23 -96
- 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_form.scss +9 -0
- data/app/assets/stylesheets/arclight/modules/search_results.scss +95 -45
- data/app/assets/stylesheets/arclight/modules/show_collection.scss +5 -32
- data/app/assets/stylesheets/arclight/modules/truncator.scss +58 -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 +50 -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 +39 -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 +50 -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 +20 -0
- data/app/components/arclight/document_components_hierarchy_component.rb +34 -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/expand_hierarchy_button_component.html.erb +5 -0
- data/app/components/arclight/expand_hierarchy_button_component.rb +16 -0
- data/app/components/arclight/group_component.html.erb +34 -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 +16 -0
- data/app/components/arclight/index_metadata_field_component.rb +20 -0
- data/app/components/arclight/masthead_component.html.erb +17 -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 +17 -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 +27 -0
- data/app/components/arclight/search_bar_component.rb +32 -0
- data/app/components/arclight/search_result_breadcrumbs_component.html.erb +6 -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 +18 -0
- data/app/components/arclight/search_result_title_component.html.erb +15 -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 +91 -7
- data/app/helpers/arclight/field_config_helpers.rb +26 -0
- data/app/helpers/arclight_helper.rb +24 -251
- data/app/models/arclight/document_downloads.rb +12 -15
- data/app/models/arclight/parent.rb +6 -8
- data/app/models/arclight/parents.rb +7 -4
- 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 +80 -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/_document_list.html.erb +8 -0
- data/app/views/catalog/_group.html.erb +2 -19
- 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 +17 -15
- 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_date.rb +5 -10
- data/lib/arclight/normalized_id.rb +6 -2
- data/lib/arclight/normalized_title.rb +2 -0
- data/lib/arclight/repository.rb +46 -57
- data/lib/arclight/routes/hierarchy.rb +19 -0
- data/lib/arclight/routes.rb +8 -0
- data/lib/arclight/traject/ead2_component_config.rb +335 -0
- data/lib/arclight/traject/ead2_config.rb +120 -298
- 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 +97 -11
- data/lib/generators/arclight/templates/arclight.scss +6 -3
- data/lib/generators/arclight/templates/catalog_controller.rb +193 -163
- data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
- data/lib/generators/arclight/templates/config/repositories.yml +22 -29
- data/lib/tasks/index.rake +14 -17
- data/package.json +13 -14
- data/solr/conf/schema.xml +49 -39
- data/solr/conf/solrconfig.xml +78 -58
- data/tasks/arclight.rake +17 -9
- data/template.rb +6 -7
- metadata +159 -127
- data/.babelrc +0 -3
- data/.travis.yml +0 -28
- 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 -374
- data/app/assets/javascripts/arclight/oembed_viewer.js +0 -46
- 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/lib/generators/arclight/templates/arclight.js +0 -2
- data/solr/conf/scripts.conf +0 -24
- data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
- data/vendor/assets/javascripts/stickyfill.js +0 -480
- /data/app/assets/images/{blacklight → arclight}/logo.png +0 -0
metadata
CHANGED
|
@@ -1,74 +1,72 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: arclight
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
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:
|
|
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
|
-
- - "
|
|
20
|
+
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
23
|
-
|
|
24
|
-
prerelease: false
|
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
-
requirements:
|
|
27
|
-
- - "~>"
|
|
22
|
+
version: 8.0.0
|
|
23
|
+
- - "<"
|
|
28
24
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
30
|
-
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: blacklight_range_limit
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
requirements:
|
|
34
|
-
- - "~>"
|
|
35
|
-
- !ruby/object:Gem::Version
|
|
36
|
-
version: '7.1'
|
|
25
|
+
version: '9'
|
|
37
26
|
type: :runtime
|
|
38
27
|
prerelease: false
|
|
39
28
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
29
|
requirements:
|
|
41
|
-
- - "
|
|
30
|
+
- - ">="
|
|
42
31
|
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
32
|
+
version: 8.0.0
|
|
33
|
+
- - "<"
|
|
34
|
+
- !ruby/object:Gem::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: '
|
|
42
|
+
version: '0'
|
|
51
43
|
type: :runtime
|
|
52
44
|
prerelease: false
|
|
53
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
46
|
requirements:
|
|
55
|
-
- - "
|
|
47
|
+
- - ">="
|
|
56
48
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: '
|
|
49
|
+
version: '0'
|
|
58
50
|
- !ruby/object:Gem::Dependency
|
|
59
|
-
name:
|
|
51
|
+
name: rails
|
|
60
52
|
requirement: !ruby/object:Gem::Requirement
|
|
61
53
|
requirements:
|
|
62
54
|
- - ">="
|
|
63
55
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: '
|
|
56
|
+
version: '7.1'
|
|
57
|
+
- - "<"
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '9'
|
|
65
60
|
type: :runtime
|
|
66
61
|
prerelease: false
|
|
67
62
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
63
|
requirements:
|
|
69
64
|
- - ">="
|
|
70
65
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
66
|
+
version: '7.1'
|
|
67
|
+
- - "<"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '9'
|
|
72
70
|
- !ruby/object:Gem::Dependency
|
|
73
71
|
name: traject
|
|
74
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -89,28 +87,28 @@ dependencies:
|
|
|
89
87
|
requirements:
|
|
90
88
|
- - "~>"
|
|
91
89
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '
|
|
90
|
+
version: '2.0'
|
|
93
91
|
type: :runtime
|
|
94
92
|
prerelease: false
|
|
95
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
96
94
|
requirements:
|
|
97
95
|
- - "~>"
|
|
98
96
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
97
|
+
version: '2.0'
|
|
100
98
|
- !ruby/object:Gem::Dependency
|
|
101
99
|
name: bundler
|
|
102
100
|
requirement: !ruby/object:Gem::Requirement
|
|
103
101
|
requirements:
|
|
104
|
-
- - "
|
|
102
|
+
- - ">="
|
|
105
103
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: '
|
|
104
|
+
version: '0'
|
|
107
105
|
type: :development
|
|
108
106
|
prerelease: false
|
|
109
107
|
version_requirements: !ruby/object:Gem::Requirement
|
|
110
108
|
requirements:
|
|
111
|
-
- - "
|
|
109
|
+
- - ">="
|
|
112
110
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: '
|
|
111
|
+
version: '0'
|
|
114
112
|
- !ruby/object:Gem::Dependency
|
|
115
113
|
name: capybara
|
|
116
114
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -157,60 +155,60 @@ dependencies:
|
|
|
157
155
|
name: rake
|
|
158
156
|
requirement: !ruby/object:Gem::Requirement
|
|
159
157
|
requirements:
|
|
160
|
-
- - "
|
|
158
|
+
- - ">="
|
|
161
159
|
- !ruby/object:Gem::Version
|
|
162
160
|
version: '12.0'
|
|
163
161
|
type: :development
|
|
164
162
|
prerelease: false
|
|
165
163
|
version_requirements: !ruby/object:Gem::Requirement
|
|
166
164
|
requirements:
|
|
167
|
-
- - "
|
|
165
|
+
- - ">="
|
|
168
166
|
- !ruby/object:Gem::Version
|
|
169
167
|
version: '12.0'
|
|
170
168
|
- !ruby/object:Gem::Dependency
|
|
171
169
|
name: rspec-rails
|
|
172
170
|
requirement: !ruby/object:Gem::Requirement
|
|
173
171
|
requirements:
|
|
174
|
-
- - "
|
|
172
|
+
- - ">="
|
|
175
173
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: '
|
|
174
|
+
version: '0'
|
|
177
175
|
type: :development
|
|
178
176
|
prerelease: false
|
|
179
177
|
version_requirements: !ruby/object:Gem::Requirement
|
|
180
178
|
requirements:
|
|
181
|
-
- - "
|
|
179
|
+
- - ">="
|
|
182
180
|
- !ruby/object:Gem::Version
|
|
183
|
-
version: '
|
|
181
|
+
version: '0'
|
|
184
182
|
- !ruby/object:Gem::Dependency
|
|
185
183
|
name: rubocop
|
|
186
184
|
requirement: !ruby/object:Gem::Requirement
|
|
187
185
|
requirements:
|
|
188
186
|
- - "~>"
|
|
189
187
|
- !ruby/object:Gem::Version
|
|
190
|
-
version:
|
|
188
|
+
version: '1.8'
|
|
191
189
|
type: :development
|
|
192
190
|
prerelease: false
|
|
193
191
|
version_requirements: !ruby/object:Gem::Requirement
|
|
194
192
|
requirements:
|
|
195
193
|
- - "~>"
|
|
196
194
|
- !ruby/object:Gem::Version
|
|
197
|
-
version:
|
|
195
|
+
version: '1.8'
|
|
198
196
|
- !ruby/object:Gem::Dependency
|
|
199
|
-
name: rubocop-
|
|
197
|
+
name: rubocop-rails
|
|
200
198
|
requirement: !ruby/object:Gem::Requirement
|
|
201
199
|
requirements:
|
|
202
200
|
- - "~>"
|
|
203
201
|
- !ruby/object:Gem::Version
|
|
204
|
-
version: '
|
|
202
|
+
version: '2.8'
|
|
205
203
|
type: :development
|
|
206
204
|
prerelease: false
|
|
207
205
|
version_requirements: !ruby/object:Gem::Requirement
|
|
208
206
|
requirements:
|
|
209
207
|
- - "~>"
|
|
210
208
|
- !ruby/object:Gem::Version
|
|
211
|
-
version: '
|
|
209
|
+
version: '2.8'
|
|
212
210
|
- !ruby/object:Gem::Dependency
|
|
213
|
-
name:
|
|
211
|
+
name: rubocop-rake
|
|
214
212
|
requirement: !ruby/object:Gem::Requirement
|
|
215
213
|
requirements:
|
|
216
214
|
- - ">="
|
|
@@ -224,7 +222,21 @@ dependencies:
|
|
|
224
222
|
- !ruby/object:Gem::Version
|
|
225
223
|
version: '0'
|
|
226
224
|
- !ruby/object:Gem::Dependency
|
|
227
|
-
name:
|
|
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
|
|
228
240
|
requirement: !ruby/object:Gem::Requirement
|
|
229
241
|
requirements:
|
|
230
242
|
- - ">="
|
|
@@ -238,7 +250,7 @@ dependencies:
|
|
|
238
250
|
- !ruby/object:Gem::Version
|
|
239
251
|
version: '0'
|
|
240
252
|
- !ruby/object:Gem::Dependency
|
|
241
|
-
name:
|
|
253
|
+
name: simplecov
|
|
242
254
|
requirement: !ruby/object:Gem::Requirement
|
|
243
255
|
requirements:
|
|
244
256
|
- - ">="
|
|
@@ -252,7 +264,7 @@ dependencies:
|
|
|
252
264
|
- !ruby/object:Gem::Version
|
|
253
265
|
version: '0'
|
|
254
266
|
- !ruby/object:Gem::Dependency
|
|
255
|
-
name:
|
|
267
|
+
name: solr_wrapper
|
|
256
268
|
requirement: !ruby/object:Gem::Requirement
|
|
257
269
|
requirements:
|
|
258
270
|
- - ">="
|
|
@@ -276,21 +288,21 @@ extensions: []
|
|
|
276
288
|
extra_rdoc_files: []
|
|
277
289
|
files:
|
|
278
290
|
- ".all-contributorsrc"
|
|
279
|
-
- ".babelrc"
|
|
280
291
|
- ".codeclimate.yml"
|
|
281
292
|
- ".eslintrc"
|
|
293
|
+
- ".github/workflows/ruby.yml"
|
|
282
294
|
- ".gitignore"
|
|
283
295
|
- ".rspec"
|
|
284
296
|
- ".rubocop.yml"
|
|
285
297
|
- ".rubocop_todo.yml"
|
|
286
298
|
- ".solr_wrapper"
|
|
287
|
-
- ".travis.yml"
|
|
288
299
|
- CONTRIBUTING.md
|
|
289
300
|
- CONTRIBUTORS.md
|
|
290
301
|
- Gemfile
|
|
291
302
|
- LICENSE.txt
|
|
292
303
|
- README.md
|
|
293
304
|
- Rakefile
|
|
305
|
+
- app/assets/images/arclight/logo.png
|
|
294
306
|
- app/assets/images/blacklight/bookmark.svg
|
|
295
307
|
- app/assets/images/blacklight/collection.svg
|
|
296
308
|
- app/assets/images/blacklight/compact.svg
|
|
@@ -299,36 +311,102 @@ files:
|
|
|
299
311
|
- app/assets/images/blacklight/file.svg
|
|
300
312
|
- app/assets/images/blacklight/folder.svg
|
|
301
313
|
- app/assets/images/blacklight/list.svg
|
|
302
|
-
- app/assets/images/blacklight/logo.png
|
|
303
314
|
- app/assets/images/blacklight/minus.svg
|
|
304
315
|
- app/assets/images/blacklight/online.svg
|
|
305
316
|
- app/assets/images/blacklight/pdf.svg
|
|
306
317
|
- app/assets/images/blacklight/plus.svg
|
|
307
318
|
- app/assets/images/blacklight/repository.svg
|
|
308
319
|
- app/assets/javascripts/arclight/arclight.js
|
|
309
|
-
- app/assets/javascripts/arclight/
|
|
310
|
-
- app/assets/javascripts/arclight/
|
|
311
|
-
- app/assets/javascripts/arclight/context_navigation.js
|
|
312
|
-
- app/assets/javascripts/arclight/oembed_viewer.js
|
|
313
|
-
- app/assets/javascripts/arclight/truncator.js.erb
|
|
320
|
+
- app/assets/javascripts/arclight/oembed_controller.js
|
|
321
|
+
- app/assets/javascripts/arclight/truncate_controller.js
|
|
314
322
|
- app/assets/stylesheets/arclight/application.scss
|
|
315
|
-
- app/assets/stylesheets/arclight/
|
|
323
|
+
- app/assets/stylesheets/arclight/build.scss
|
|
316
324
|
- app/assets/stylesheets/arclight/modules/collection_search.scss
|
|
317
|
-
- app/assets/stylesheets/arclight/modules/context_navigation.scss
|
|
318
325
|
- app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss
|
|
319
326
|
- app/assets/stylesheets/arclight/modules/highlights.scss
|
|
327
|
+
- app/assets/stylesheets/arclight/modules/icons.scss
|
|
320
328
|
- app/assets/stylesheets/arclight/modules/layout.scss
|
|
321
329
|
- app/assets/stylesheets/arclight/modules/mastheads.scss
|
|
322
330
|
- app/assets/stylesheets/arclight/modules/repositories.scss
|
|
323
331
|
- app/assets/stylesheets/arclight/modules/repository_card.scss
|
|
332
|
+
- app/assets/stylesheets/arclight/modules/search_form.scss
|
|
324
333
|
- app/assets/stylesheets/arclight/modules/search_results.scss
|
|
325
334
|
- app/assets/stylesheets/arclight/modules/show_collection.scss
|
|
335
|
+
- app/assets/stylesheets/arclight/modules/truncator.scss
|
|
326
336
|
- app/assets/stylesheets/arclight/responsive.scss
|
|
327
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
|
|
328
407
|
- app/controllers/arclight/repositories_controller.rb
|
|
329
|
-
- app/
|
|
330
|
-
- app/
|
|
331
|
-
- app/factories/blacklight_field_configuration_factory.rb
|
|
408
|
+
- app/helpers/arclight/ead_format_helpers.rb
|
|
409
|
+
- app/helpers/arclight/field_config_helpers.rb
|
|
332
410
|
- app/helpers/arclight_helper.rb
|
|
333
411
|
- app/models/arclight/document_downloads.rb
|
|
334
412
|
- app/models/arclight/parent.rb
|
|
@@ -343,77 +421,31 @@ files:
|
|
|
343
421
|
- app/presenters/arclight/show_presenter.rb
|
|
344
422
|
- app/views/arclight/.keep
|
|
345
423
|
- app/views/arclight/_requests.html.erb
|
|
346
|
-
- app/views/arclight/repositories/_in_person_repository.html.erb
|
|
347
424
|
- app/views/arclight/repositories/_repository.html.erb
|
|
348
|
-
- app/views/arclight/repositories/_repository_contact.html.erb
|
|
349
425
|
- app/views/arclight/repositories/index.html.erb
|
|
350
426
|
- app/views/arclight/repositories/show.html.erb
|
|
351
427
|
- app/views/arclight/requests/_aeon_external_request_endpoint.html.erb
|
|
352
428
|
- app/views/arclight/requests/_aeon_web_ead.html.erb
|
|
353
429
|
- app/views/arclight/requests/_google_form.html.erb
|
|
354
|
-
- app/views/
|
|
355
|
-
- app/views/catalog/_access_contents.html.erb
|
|
356
|
-
- app/views/catalog/_arclight_abstract_or_scope.html.erb
|
|
357
|
-
- app/views/catalog/_arclight_bookmark_control.html.erb
|
|
358
|
-
- app/views/catalog/_arclight_document_header_icon.html.erb
|
|
359
|
-
- app/views/catalog/_arclight_document_index_header.html.erb
|
|
360
|
-
- app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb
|
|
361
|
-
- app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb
|
|
362
|
-
- app/views/catalog/_arclight_index_compact_default.html.erb
|
|
363
|
-
- app/views/catalog/_arclight_index_default.html.erb
|
|
364
|
-
- app/views/catalog/_arclight_index_group_document_compact_default.html.erb
|
|
365
|
-
- app/views/catalog/_arclight_index_group_document_default.html.erb
|
|
366
|
-
- app/views/catalog/_arclight_online_content_indicator.html.erb
|
|
367
|
-
- app/views/catalog/_arclight_rangelimit.html.erb
|
|
368
|
-
- app/views/catalog/_arclight_viewer_default.html.erb
|
|
369
|
-
- app/views/catalog/_collection_contents.html.erb
|
|
370
|
-
- app/views/catalog/_collection_context.html.erb
|
|
371
|
-
- app/views/catalog/_collection_context_nav.html.erb
|
|
372
|
-
- app/views/catalog/_collection_online_contents.html.erb
|
|
373
|
-
- app/views/catalog/_component_context.html.erb
|
|
374
|
-
- app/views/catalog/_containers.html.erb
|
|
375
|
-
- app/views/catalog/_context_card.html.erb
|
|
376
|
-
- app/views/catalog/_context_sidebar.html.erb
|
|
377
|
-
- app/views/catalog/_custom_metadata.html.erb
|
|
378
|
-
- app/views/catalog/_document_downloads.html.erb
|
|
430
|
+
- app/views/catalog/_document_list.html.erb
|
|
379
431
|
- app/views/catalog/_group.html.erb
|
|
380
|
-
- app/views/catalog/_group_header_compact_default.html.erb
|
|
381
|
-
- app/views/catalog/_group_header_default.html.erb
|
|
382
432
|
- app/views/catalog/_group_toggle.html.erb
|
|
383
|
-
- app/views/catalog/
|
|
384
|
-
- app/views/catalog/
|
|
385
|
-
- app/views/catalog/_index_collection_context_default.html.erb
|
|
386
|
-
- app/views/catalog/_index_default.html.erb
|
|
387
|
-
- app/views/catalog/_index_header.html.erb
|
|
388
|
-
- app/views/catalog/_index_header_online_contents_default.html.erb
|
|
389
|
-
- app/views/catalog/_index_online_contents_default.html.erb
|
|
390
|
-
- app/views/catalog/_online_content_label.html.erb
|
|
391
|
-
- app/views/catalog/_search_form.html.erb
|
|
392
|
-
- app/views/catalog/_search_results.html.erb
|
|
393
|
-
- app/views/catalog/_search_results_repository.html.erb
|
|
394
|
-
- app/views/catalog/_show_actions_box_default.html.erb
|
|
395
|
-
- app/views/catalog/_show_breadcrumbs_default.html.erb
|
|
396
|
-
- app/views/catalog/_show_collection.html.erb
|
|
397
|
-
- app/views/catalog/_show_default.html.erb
|
|
398
|
-
- app/views/catalog/_show_upper_metadata_collection.html.erb
|
|
399
|
-
- app/views/catalog/_show_upper_metadata_default.html.erb
|
|
400
|
-
- app/views/catalog/_sort_and_per_page.html.erb
|
|
401
|
-
- app/views/catalog/_within_collection_dropdown.html.erb
|
|
433
|
+
- app/views/catalog/_search_results_header.html.erb
|
|
434
|
+
- app/views/catalog/hierarchy.html.erb
|
|
402
435
|
- app/views/catalog/index.html.erb
|
|
403
|
-
- app/views/layouts/catalog_result.html.erb
|
|
404
436
|
- app/views/shared/_breadcrumbs.html.erb
|
|
405
|
-
- app/views/shared/_context_sidebar.html.erb
|
|
406
|
-
- app/views/shared/_header_navbar.html.erb
|
|
407
437
|
- app/views/shared/_main_menu_links.html.erb
|
|
408
|
-
- app/views/shared/_show_breadcrumbs.html.erb
|
|
409
438
|
- arclight.gemspec
|
|
410
439
|
- bin/console
|
|
411
440
|
- bin/rails
|
|
412
441
|
- bin/setup
|
|
442
|
+
- config/breadcrumbs.rb
|
|
413
443
|
- config/i18n-tasks.yml
|
|
444
|
+
- config/importmap.rb
|
|
414
445
|
- config/locales/arclight.en.yml
|
|
415
446
|
- config/repositories.yml
|
|
416
447
|
- config/routes.rb
|
|
448
|
+
- docker-compose.yml
|
|
417
449
|
- lib/arclight.rb
|
|
418
450
|
- lib/arclight/digital_object.rb
|
|
419
451
|
- lib/arclight/engine.rb
|
|
@@ -425,17 +457,18 @@ files:
|
|
|
425
457
|
- lib/arclight/normalized_id.rb
|
|
426
458
|
- lib/arclight/normalized_title.rb
|
|
427
459
|
- lib/arclight/repository.rb
|
|
460
|
+
- lib/arclight/routes.rb
|
|
461
|
+
- lib/arclight/routes/hierarchy.rb
|
|
462
|
+
- lib/arclight/traject/ead2_component_config.rb
|
|
428
463
|
- lib/arclight/traject/ead2_config.rb
|
|
429
464
|
- lib/arclight/traject/nokogiri_namespaceless_reader.rb
|
|
430
465
|
- lib/arclight/version.rb
|
|
431
|
-
- lib/arclight/viewer.rb
|
|
432
|
-
- lib/arclight/viewers/oembed.rb
|
|
433
466
|
- lib/arclight/year_range.rb
|
|
434
467
|
- lib/generators/arclight/install_generator.rb
|
|
435
|
-
- lib/generators/arclight/templates/arclight.js
|
|
436
468
|
- lib/generators/arclight/templates/arclight.scss
|
|
437
469
|
- lib/generators/arclight/templates/catalog_controller.rb
|
|
438
470
|
- lib/generators/arclight/templates/config/downloads.yml
|
|
471
|
+
- lib/generators/arclight/templates/config/locales/arclight.en.yml
|
|
439
472
|
- lib/generators/arclight/templates/config/repositories.yml
|
|
440
473
|
- lib/generators/arclight/update_generator.rb
|
|
441
474
|
- lib/tasks/index.rake
|
|
@@ -446,7 +479,6 @@ files:
|
|
|
446
479
|
- solr/conf/mapping-ISOLatin1Accent.txt
|
|
447
480
|
- solr/conf/protwords.txt
|
|
448
481
|
- solr/conf/schema.xml
|
|
449
|
-
- solr/conf/scripts.conf
|
|
450
482
|
- solr/conf/solrconfig.xml
|
|
451
483
|
- solr/conf/spellings.txt
|
|
452
484
|
- solr/conf/stopwords.txt
|
|
@@ -458,13 +490,12 @@ files:
|
|
|
458
490
|
- solr/conf/xslt/luke.xsl
|
|
459
491
|
- tasks/arclight.rake
|
|
460
492
|
- template.rb
|
|
461
|
-
|
|
462
|
-
- vendor/assets/javascripts/stickyfill.js
|
|
463
|
-
homepage: https://github.com/sul-dlss/arclight
|
|
493
|
+
homepage: https://library.stanford.edu/projects/arclight
|
|
464
494
|
licenses:
|
|
465
495
|
- Apache-2.0
|
|
466
|
-
metadata:
|
|
467
|
-
|
|
496
|
+
metadata:
|
|
497
|
+
source_code_uri: https://github.com/projectblacklight/arclight
|
|
498
|
+
post_install_message:
|
|
468
499
|
rdoc_options: []
|
|
469
500
|
require_paths:
|
|
470
501
|
- lib
|
|
@@ -472,15 +503,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
472
503
|
requirements:
|
|
473
504
|
- - ">="
|
|
474
505
|
- !ruby/object:Gem::Version
|
|
475
|
-
version:
|
|
506
|
+
version: 3.0.0
|
|
476
507
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
477
508
|
requirements:
|
|
478
509
|
- - ">="
|
|
479
510
|
- !ruby/object:Gem::Version
|
|
480
511
|
version: '0'
|
|
481
512
|
requirements: []
|
|
482
|
-
rubygems_version: 3.
|
|
483
|
-
signing_key:
|
|
513
|
+
rubygems_version: 3.4.19
|
|
514
|
+
signing_key:
|
|
484
515
|
specification_version: 4
|
|
485
|
-
summary:
|
|
516
|
+
summary: A Blacklight-based environment to support discovery and delivery for archives
|
|
517
|
+
and special collections
|
|
486
518
|
test_files: []
|
data/.babelrc
DELETED
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
|
-
- openjdk11
|
|
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=0bbc7b5fd7f6bab0c0517183ae34a4d2f6010ca1ef2d1c7c3ccdec55ea823115
|
|
26
|
-
|
|
27
|
-
after_script:
|
|
28
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
@@ -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
|
-
});
|