arclight 0.1.4 → 0.2.0
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 +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -47
- data/.rubocop_todo.yml +259 -0
- data/.travis.yml +15 -20
- data/README.md +17 -4
- data/app/assets/images/blacklight/compact.svg +15 -15
- data/app/assets/javascripts/arclight/arclight.js +1 -0
- data/app/assets/javascripts/arclight/collection_navigation.js +5 -2
- data/app/assets/javascripts/arclight/oembed_viewer.js +11 -4
- data/app/assets/javascripts/arclight/search_results.js +15 -0
- data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +6 -3
- data/app/assets/stylesheets/arclight/modules/layout.scss +24 -0
- data/app/assets/stylesheets/arclight/modules/mastheads.scss +33 -0
- data/app/helpers/arclight_helper.rb +1 -1
- data/app/models/concerns/arclight/search_behavior.rb +1 -1
- data/app/views/arclight/repositories/_in_person_repository.html.erb +1 -1
- data/app/views/catalog/_component_contents.html.erb +16 -0
- data/app/views/catalog/_component_overview.html.erb +0 -6
- data/app/views/catalog/_context_card.html.erb +1 -1
- data/app/views/catalog/_custom_metadata.html.erb +1 -1
- data/app/views/catalog/_index_default.html.erb +1 -1
- data/app/views/catalog/_index_header.html.erb +2 -2
- data/app/views/catalog/_index_header_hierarchy_default.html.erb +2 -2
- data/app/views/catalog/_index_hierarchy_default.html.erb +1 -1
- data/app/views/catalog/_results_histogram.html.erb +6 -1
- data/app/views/catalog/_show_breadcrumbs_default.html.erb +19 -5
- data/app/views/catalog/_show_default.html.erb +10 -0
- data/app/views/catalog/_show_sidebar.html.erb +0 -8
- data/app/views/catalog/_show_upper_metadata_collection.html.erb +1 -0
- data/app/views/catalog/_show_upper_metadata_default.html.erb +14 -0
- data/app/views/shared/_header_navbar.html.erb +56 -44
- data/app/views/shared/_main_menu_links.html.erb +1 -1
- data/arclight.gemspec +11 -7
- data/config/i18n-tasks.yml +132 -0
- data/config/locales/arclight.en.yml +53 -52
- data/lib/arclight/engine.rb +1 -0
- data/lib/arclight/hash_absolute_xpath.rb +57 -0
- data/lib/arclight/missing_id_strategy.rb +21 -0
- data/lib/arclight/normalized_date.rb +19 -10
- data/lib/arclight/repository.rb +3 -20
- data/lib/arclight/shared_indexing_behavior.rb +1 -1
- data/lib/arclight/solr_ead_indexer_ext.rb +5 -9
- data/lib/arclight/traject/ead2_config.rb +475 -0
- data/lib/arclight/version.rb +1 -1
- data/lib/generators/arclight/install_generator.rb +14 -0
- data/lib/generators/arclight/templates/catalog_controller.rb +43 -40
- data/lib/tasks/index.rake +4 -2
- data/solr/conf/schema.xml +7 -2
- data/tasks/arclight.rake +5 -1
- data/template.rb +1 -1
- metadata +94 -28
- data/app/views/catalog/_arclight_document_show_header.html.erb +0 -15
- data/app/views/catalog/_arclight_document_show_header_collection.html.erb +0 -12
- data/app/views/catalog/_search_within_form.html.erb +0 -16
- data/app/views/catalog/_show_header.html.erb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ed0ceaf7e03fb194a6ea2981582c688924e78f9024aacbef9ca18cb99971e9a7
|
4
|
+
data.tar.gz: 786a90d77e725fe19f247dea85c0da2b811c87bee38ed29713c338692b90368f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d493efd656d72772ed0167715b3698df1d32af0bf81a5f9712bab2c7f992ad5836a713d06c7b28d35ed3069bdbd149dd2b92ab623e1dd51ed142b039649cea
|
7
|
+
data.tar.gz: 43a811a99449328b75bafbda1f41d4b6e362323656ecc2d899bd6e5cc05acfdbcaac27e6ba842fe500d253cd6be4697f330f72dc19e4c2ee44e2215e937f8230
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
|
+
inherit_from:
|
4
|
+
- .rubocop_todo.yml
|
5
|
+
|
3
6
|
AllCops:
|
4
7
|
Exclude:
|
5
8
|
- '.internal_test_app/**/*'
|
@@ -10,57 +13,13 @@ AllCops:
|
|
10
13
|
TargetRubyVersion: 2.4
|
11
14
|
DisplayCopNames: true
|
12
15
|
|
13
|
-
Rails:
|
14
|
-
Enabled: true
|
15
|
-
|
16
|
-
Metrics/LineLength:
|
17
|
-
Max: 120
|
18
|
-
Exclude:
|
19
|
-
- 'Gemfile'
|
20
|
-
- 'lib/arclight/custom_document.rb' # XPaths get long
|
21
|
-
- 'lib/arclight/custom_component.rb' # XPaths get long
|
22
|
-
|
23
|
-
Metrics/ModuleLength:
|
24
|
-
Max: 120
|
25
|
-
|
26
|
-
Metrics/ClassLength:
|
27
|
-
Max: 120
|
28
|
-
|
29
16
|
Metrics/BlockLength:
|
30
17
|
Exclude:
|
31
|
-
-
|
32
|
-
- 'arclight.gemspec'
|
33
|
-
- 'spec/**/*'
|
34
|
-
- 'lib/arclight/custom_document.rb'
|
35
|
-
|
36
|
-
Metrics/MethodLength:
|
37
|
-
Exclude:
|
38
|
-
- 'lib/arclight/custom_document.rb' # arclight_field_definitions too long
|
18
|
+
- 'spec/features/traject/ead2_indexing_spec.rb'
|
39
19
|
|
40
|
-
Performance/RegexpMatch:
|
41
|
-
Enabled: false
|
42
20
|
|
43
|
-
Rails
|
44
|
-
|
45
|
-
- 'app/controllers/concerns/arclight/field_config_helpers.rb' # html_safe needs to be called to mimic BL JOIN behavior
|
46
|
-
|
47
|
-
RSpec/ExampleLength:
|
48
|
-
Enabled: false
|
49
|
-
|
50
|
-
RSpec/FilePath:
|
51
|
-
Exclude:
|
52
|
-
- 'spec/lib/arclight/viewers/oembed_spec.rb' # Default file path is o_embed, and that looks weird
|
53
|
-
|
54
|
-
RSpec/MultipleExpectations:
|
55
|
-
Enabled: false
|
56
|
-
|
57
|
-
RSpec/NestedGroups:
|
58
|
-
Max: 4
|
59
|
-
|
60
|
-
Style/Documentation:
|
61
|
-
Exclude:
|
62
|
-
- 'spec/**/*'
|
63
|
-
- 'lib/arclight.rb'
|
21
|
+
Rails:
|
22
|
+
Enabled: true
|
64
23
|
|
65
24
|
Bundler/DuplicatedGem:
|
66
25
|
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,259 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-08-21 15:42:57 -0600 using RuboCop version 0.74.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnabledMethods.
|
12
|
+
Capybara/FeatureMethods:
|
13
|
+
Exclude:
|
14
|
+
- 'spec/features/compact_search_results_spec.rb'
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Cop supports --auto-correct.
|
18
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
19
|
+
# Include: **/*.gemspec
|
20
|
+
Gemspec/OrderedDependencies:
|
21
|
+
Exclude:
|
22
|
+
- 'arclight.gemspec'
|
23
|
+
|
24
|
+
# Offense count: 3
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
27
|
+
# SupportedHashRocketStyles: key, separator, table
|
28
|
+
# SupportedColonStyles: key, separator, table
|
29
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
30
|
+
Layout/AlignHash:
|
31
|
+
Exclude:
|
32
|
+
- 'lib/arclight/solr_ead_indexer_ext.rb'
|
33
|
+
|
34
|
+
# Offense count: 29
|
35
|
+
# Cop supports --auto-correct.
|
36
|
+
Layout/EmptyLineAfterGuardClause:
|
37
|
+
Exclude:
|
38
|
+
- 'app/factories/blacklight_field_configuration_factory.rb'
|
39
|
+
- 'app/helpers/arclight_helper.rb'
|
40
|
+
- 'app/models/arclight/parent.rb'
|
41
|
+
- 'app/models/concerns/arclight/catalog.rb'
|
42
|
+
- 'app/models/concerns/arclight/solr_document.rb'
|
43
|
+
- 'lib/arclight/normalized_date.rb'
|
44
|
+
- 'lib/arclight/normalized_id.rb'
|
45
|
+
- 'lib/arclight/normalized_title.rb'
|
46
|
+
- 'lib/arclight/repository.rb'
|
47
|
+
- 'lib/arclight/shared_indexing_behavior.rb'
|
48
|
+
- 'lib/arclight/viewers/oembed.rb'
|
49
|
+
- 'lib/arclight/year_range.rb'
|
50
|
+
- 'lib/tasks/index.rake'
|
51
|
+
- 'tasks/arclight.rake'
|
52
|
+
|
53
|
+
# Offense count: 1
|
54
|
+
# Cop supports --auto-correct.
|
55
|
+
# Configuration parameters: AllowInHeredoc.
|
56
|
+
Layout/TrailingWhitespace:
|
57
|
+
Exclude:
|
58
|
+
- 'lib/tasks/index.rake'
|
59
|
+
|
60
|
+
# Offense count: 1
|
61
|
+
Lint/AmbiguousBlockAssociation:
|
62
|
+
Exclude:
|
63
|
+
- 'lib/arclight/traject/ead2_config.rb'
|
64
|
+
|
65
|
+
# Offense count: 1
|
66
|
+
# Configuration parameters: IgnoreImplicitReferences.
|
67
|
+
Lint/ShadowedArgument:
|
68
|
+
Exclude:
|
69
|
+
- 'lib/arclight/solr_ead_indexer_ext.rb'
|
70
|
+
|
71
|
+
# Offense count: 1
|
72
|
+
# Cop supports --auto-correct.
|
73
|
+
Lint/UnneededCopDisableDirective:
|
74
|
+
Exclude:
|
75
|
+
- 'lib/arclight/shared_indexing_behavior.rb'
|
76
|
+
|
77
|
+
# Offense count: 1
|
78
|
+
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
79
|
+
Lint/Void:
|
80
|
+
Exclude:
|
81
|
+
- 'lib/arclight/year_range.rb'
|
82
|
+
|
83
|
+
# Offense count: 1
|
84
|
+
Metrics/AbcSize:
|
85
|
+
Max: 16
|
86
|
+
|
87
|
+
# Offense count: 70
|
88
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
89
|
+
# ExcludedMethods: refine
|
90
|
+
Metrics/BlockLength:
|
91
|
+
Max: 278
|
92
|
+
Exclude:
|
93
|
+
- 'spec/features/traject/ead2_indexing_spec.rb'
|
94
|
+
|
95
|
+
# Offense count: 1
|
96
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
97
|
+
Metrics/MethodLength:
|
98
|
+
Max: 11
|
99
|
+
|
100
|
+
# Offense count: 2
|
101
|
+
# Configuration parameters: CountComments.
|
102
|
+
Metrics/ModuleLength:
|
103
|
+
Max: 113
|
104
|
+
|
105
|
+
# Offense count: 1
|
106
|
+
# Configuration parameters: Blacklist.
|
107
|
+
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
108
|
+
Naming/HeredocDelimiterNaming:
|
109
|
+
Exclude:
|
110
|
+
- 'spec/features/autocomplete_spec.rb'
|
111
|
+
|
112
|
+
# Offense count: 4
|
113
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
114
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
115
|
+
Naming/UncommunicativeMethodParamName:
|
116
|
+
Exclude:
|
117
|
+
- 'lib/arclight/shared_terminology_behavior.rb'
|
118
|
+
|
119
|
+
# Offense count: 97
|
120
|
+
# Configuration parameters: Prefixes.
|
121
|
+
# Prefixes: when, with, without
|
122
|
+
RSpec/ContextWording:
|
123
|
+
Enabled: false
|
124
|
+
|
125
|
+
# Offense count: 1
|
126
|
+
# Cop supports --auto-correct.
|
127
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
128
|
+
# SupportedStyles: described_class, explicit
|
129
|
+
RSpec/DescribedClass:
|
130
|
+
Exclude:
|
131
|
+
- 'spec/presenters/arclight/show_presenter_spec.rb'
|
132
|
+
|
133
|
+
# Offense count: 58
|
134
|
+
# Cop supports --auto-correct.
|
135
|
+
RSpec/EmptyLineAfterExampleGroup:
|
136
|
+
Enabled: false
|
137
|
+
|
138
|
+
# Offense count: 8
|
139
|
+
# Cop supports --auto-correct.
|
140
|
+
RSpec/EmptyLineAfterHook:
|
141
|
+
Exclude:
|
142
|
+
- 'spec/features/collection_page_spec.rb'
|
143
|
+
- 'spec/features/home_page_spec.rb'
|
144
|
+
- 'spec/features/many_component_ead_spec.rb'
|
145
|
+
- 'spec/features/search_results_spec.rb'
|
146
|
+
- 'spec/helpers/arclight_helper_spec.rb'
|
147
|
+
- 'spec/views/_collection_count.html.erb_spec.rb'
|
148
|
+
- 'spec/views/repositories/index.html.erb_spec.rb'
|
149
|
+
|
150
|
+
# Offense count: 49
|
151
|
+
# Configuration parameters: Max.
|
152
|
+
RSpec/ExampleLength:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
# Offense count: 3
|
156
|
+
RSpec/ExpectInHook:
|
157
|
+
Exclude:
|
158
|
+
- 'spec/helpers/arclight_helper_spec.rb'
|
159
|
+
- 'spec/lib/arclight/indexer_spec.rb'
|
160
|
+
- 'spec/presenters/arclight/index_presenter_spec.rb'
|
161
|
+
|
162
|
+
# Offense count: 1
|
163
|
+
# Configuration parameters: CustomTransform, IgnoreMethods.
|
164
|
+
RSpec/FilePath:
|
165
|
+
Exclude:
|
166
|
+
- 'spec/lib/arclight/viewers/oembed_spec.rb'
|
167
|
+
|
168
|
+
# Offense count: 108
|
169
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
170
|
+
RSpec/MultipleExpectations:
|
171
|
+
Max: 28
|
172
|
+
|
173
|
+
# Offense count: 22
|
174
|
+
RSpec/NestedGroups:
|
175
|
+
Max: 4
|
176
|
+
|
177
|
+
# Offense count: 5
|
178
|
+
# Cop supports --auto-correct.
|
179
|
+
# Configuration parameters: Strict, EnforcedStyle.
|
180
|
+
# SupportedStyles: inflected, explicit
|
181
|
+
RSpec/PredicateMatcher:
|
182
|
+
Exclude:
|
183
|
+
- 'spec/helpers/arclight_helper_spec.rb'
|
184
|
+
- 'spec/lib/arclight/year_range_spec.rb'
|
185
|
+
|
186
|
+
# Offense count: 1
|
187
|
+
RSpec/SubjectStub:
|
188
|
+
Exclude:
|
189
|
+
- 'spec/lib/arclight/indexer_spec.rb'
|
190
|
+
|
191
|
+
# Offense count: 1
|
192
|
+
Security/Open:
|
193
|
+
Exclude:
|
194
|
+
- 'lib/tasks/index.rake'
|
195
|
+
|
196
|
+
# Offense count: 1
|
197
|
+
# Cop supports --auto-correct.
|
198
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
199
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
200
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
201
|
+
# FunctionalMethods: let, let!, subject, watch
|
202
|
+
# IgnoredMethods: lambda, proc, it
|
203
|
+
Style/BlockDelimiters:
|
204
|
+
Exclude:
|
205
|
+
- 'lib/tasks/index.rake'
|
206
|
+
|
207
|
+
# Offense count: 2
|
208
|
+
Style/CommentedKeyword:
|
209
|
+
Exclude:
|
210
|
+
- 'lib/arclight/shared_terminology_behavior.rb'
|
211
|
+
- 'lib/arclight/year_range.rb'
|
212
|
+
|
213
|
+
# Offense count: 1
|
214
|
+
Style/Documentation:
|
215
|
+
Exclude:
|
216
|
+
- 'spec/**/*'
|
217
|
+
- 'test/**/*'
|
218
|
+
- 'lib/arclight.rb'
|
219
|
+
|
220
|
+
# Offense count: 1
|
221
|
+
# Cop supports --auto-correct.
|
222
|
+
Style/Encoding:
|
223
|
+
Exclude:
|
224
|
+
- 'arclight.gemspec'
|
225
|
+
|
226
|
+
# Offense count: 3
|
227
|
+
# Cop supports --auto-correct.
|
228
|
+
Style/ExpandPathArguments:
|
229
|
+
Exclude:
|
230
|
+
- 'arclight.gemspec'
|
231
|
+
- 'lib/generators/arclight/install_generator.rb'
|
232
|
+
- 'lib/generators/arclight/update_generator.rb'
|
233
|
+
|
234
|
+
# Offense count: 1
|
235
|
+
# Cop supports --auto-correct.
|
236
|
+
Style/IfUnlessModifier:
|
237
|
+
Exclude:
|
238
|
+
- 'app/models/concerns/arclight/search_behavior.rb'
|
239
|
+
|
240
|
+
# Offense count: 1
|
241
|
+
# Cop supports --auto-correct.
|
242
|
+
Style/MinMax:
|
243
|
+
Exclude:
|
244
|
+
- 'lib/arclight/year_range.rb'
|
245
|
+
|
246
|
+
# Offense count: 1
|
247
|
+
# Cop supports --auto-correct.
|
248
|
+
# Configuration parameters: EnforcedStyle.
|
249
|
+
# SupportedStyles: implicit, explicit
|
250
|
+
Style/RescueStandardError:
|
251
|
+
Exclude:
|
252
|
+
- 'lib/arclight/shared_indexing_behavior.rb'
|
253
|
+
|
254
|
+
# Offense count: 457
|
255
|
+
# Cop supports --auto-correct.
|
256
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
257
|
+
# URISchemes: http, https
|
258
|
+
Metrics/LineLength:
|
259
|
+
Max: 153
|
data/.travis.yml
CHANGED
@@ -3,31 +3,26 @@ language: ruby
|
|
3
3
|
notifications:
|
4
4
|
email: false
|
5
5
|
rvm:
|
6
|
-
- 2.
|
6
|
+
- 2.5.5
|
7
|
+
- 2.6.3
|
7
8
|
jdk:
|
8
|
-
-
|
9
|
-
|
10
|
-
# Update to phantomjs 2.1.1 to fix issues with < 2
|
11
|
-
# See https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-177592725
|
12
|
-
# and https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-200965782
|
13
|
-
cache:
|
14
|
-
bundler: true
|
15
|
-
directories:
|
16
|
-
- "travis_phantomjs"
|
17
|
-
|
18
|
-
before_install:
|
19
|
-
- "phantomjs --version"
|
20
|
-
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
|
21
|
-
- "phantomjs --version"
|
22
|
-
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
|
23
|
-
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
|
24
|
-
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
|
25
|
-
- "hash -r"
|
26
|
-
- "phantomjs --version"
|
9
|
+
- oraclejdk9
|
27
10
|
|
28
11
|
before_script:
|
29
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
|
30
17
|
addons:
|
31
18
|
apt:
|
32
19
|
packages:
|
33
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
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
[](https://travis-ci.org/projectblacklight/arclight)
|
2
|
+
[](https://codeclimate.com/github/sul-dlss/arclight/coverage)
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
# Arclight
|
4
|
+
# ArcLight
|
6
5
|
|
7
6
|
A Rails engine supporting discovery of archival materials.
|
8
7
|
|
@@ -51,6 +50,19 @@ See the [ArcLight demo](https://arclight-demo.projectblacklight.org/) and [ArcLi
|
|
51
50
|
|
52
51
|
See [Arclight Major Features](https://github.com/sul-dlss/arclight/wiki/Arclight-Major-Features) for a list of features.
|
53
52
|
|
53
|
+
### Traject indexing of EAD content
|
54
|
+
[Traject](https://github.com/traject/traject) is a proposed way forward for migrating indexing. An EAD2 can be indexed by doing the following:
|
55
|
+
|
56
|
+
```sh
|
57
|
+
bundle exec traject -u http://127.0.0.1:8983/solr/blacklight-core -i xml -c lib/arclight/traject/ead2_config.rb spec/fixtures/ead/sample/large-components-list.xml
|
58
|
+
```
|
59
|
+
|
60
|
+
Or pass the `TRAJECT=true` env variable to current indexing tasks.
|
61
|
+
|
62
|
+
```sh
|
63
|
+
TRAJECT=true bundle exec rake arclight:seed
|
64
|
+
end
|
65
|
+
|
54
66
|
## Resources
|
55
67
|
|
56
68
|
* General
|
@@ -86,6 +98,7 @@ Ensure Solr and Rails are _not_ running (ports 8983 and 3000 respectively), then
|
|
86
98
|
```sh
|
87
99
|
$ bundle exec rake
|
88
100
|
```
|
101
|
+
If you find that the tests are failing when you run them on a Linux computer, you might need to install Google Chrome so the Selenium testing framework can run properly.
|
89
102
|
|
90
103
|
### Run a development server
|
91
104
|
|
@@ -6,20 +6,20 @@
|
|
6
6
|
<defs></defs>
|
7
7
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="square">
|
8
8
|
<g id="Compact" stroke="#000000">
|
9
|
-
<path d="M1.43885093,2.44444444 L6.83349609,2.44444444"
|
10
|
-
<path d="M1.43885093,4.44444444 L6.83349609,4.44444444"
|
11
|
-
<path d="M1.43885093,6.44444444 L6.83349609,6.44444444"
|
12
|
-
<path d="M1.43885093,8.44444444 L6.83349609,8.44444444"
|
13
|
-
<path d="M1.43885093,10.4444444 L6.83349609,10.4444444"
|
14
|
-
<path d="M1.43885093,12.4444444 L6.83349609,12.4444444"
|
15
|
-
<path d="M1.43885093,14.4444444 L6.83349609,14.4444444"
|
16
|
-
<path d="M9.43885093,2.44444444 L14.8334961,2.44444444"
|
17
|
-
<path d="M9.43885093,4.44444444 L14.8334961,4.44444444"
|
18
|
-
<path d="M9.43885093,6.44444444 L14.8334961,6.44444444"
|
19
|
-
<path d="M9.43885093,8.44444444 L14.8334961,8.44444444"
|
20
|
-
<path d="M9.43885093,10.4444444 L14.8334961,10.4444444"
|
21
|
-
<path d="M9.43885093,12.4444444 L14.8334961,12.4444444"
|
22
|
-
<path d="M9.43885093,14.4444444 L14.8334961,14.4444444"
|
9
|
+
<path d="M1.43885093,2.44444444 L6.83349609,2.44444444"></path>
|
10
|
+
<path d="M1.43885093,4.44444444 L6.83349609,4.44444444"></path>
|
11
|
+
<path d="M1.43885093,6.44444444 L6.83349609,6.44444444"></path>
|
12
|
+
<path d="M1.43885093,8.44444444 L6.83349609,8.44444444"></path>
|
13
|
+
<path d="M1.43885093,10.4444444 L6.83349609,10.4444444"></path>
|
14
|
+
<path d="M1.43885093,12.4444444 L6.83349609,12.4444444"></path>
|
15
|
+
<path d="M1.43885093,14.4444444 L6.83349609,14.4444444"></path>
|
16
|
+
<path d="M9.43885093,2.44444444 L14.8334961,2.44444444"></path>
|
17
|
+
<path d="M9.43885093,4.44444444 L14.8334961,4.44444444"></path>
|
18
|
+
<path d="M9.43885093,6.44444444 L14.8334961,6.44444444"></path>
|
19
|
+
<path d="M9.43885093,8.44444444 L14.8334961,8.44444444"></path>
|
20
|
+
<path d="M9.43885093,10.4444444 L14.8334961,10.4444444"></path>
|
21
|
+
<path d="M9.43885093,12.4444444 L14.8334961,12.4444444"></path>
|
22
|
+
<path d="M9.43885093,14.4444444 L14.8334961,14.4444444"></path>
|
23
23
|
</g>
|
24
24
|
</g>
|
25
|
-
</svg>
|
25
|
+
</svg>
|