blacklight 5.15.0 → 5.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile +17 -8
- data/VERSION +1 -1
- data/{lib → app/controllers/concerns}/blacklight/base.rb +1 -1
- data/{lib → app/controllers/concerns}/blacklight/bookmarks.rb +0 -0
- data/{lib → app/controllers/concerns}/blacklight/catalog.rb +6 -7
- data/{lib → app/controllers/concerns}/blacklight/controller.rb +6 -0
- data/{lib/blacklight/catalog/component_configuration.rb → app/controllers/concerns/blacklight/default_component_configuration.rb} +5 -2
- data/{lib → app/controllers/concerns}/blacklight/facet.rb +0 -0
- data/{lib → app/controllers/concerns}/blacklight/request_builders.rb +0 -0
- data/{lib/blacklight/catalog → app/controllers/concerns/blacklight}/search_context.rb +1 -2
- data/{lib → app/controllers/concerns}/blacklight/search_fields.rb +0 -6
- data/{lib → app/controllers/concerns}/blacklight/search_helper.rb +4 -4
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +1 -1
- data/app/helpers/blacklight/catalog_helper_behavior.rb +3 -3
- data/app/helpers/blacklight/facets_helper_behavior.rb +4 -5
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +1 -1
- data/{lib → app/models}/blacklight/abstract_repository.rb +0 -0
- data/{lib → app/models}/blacklight/configuration.rb +2 -2
- data/{lib → app/models}/blacklight/configuration/facet_field.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/field.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/fields.rb +1 -1
- data/{lib → app/models}/blacklight/configuration/search_field.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/solr_field.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/sort_field.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/tool_config.rb +0 -0
- data/{lib → app/models}/blacklight/configuration/view_config.rb +0 -0
- data/{lib → app/models}/blacklight/facet_paginator.rb +0 -0
- data/{lib → app/models}/blacklight/search_builder.rb +1 -1
- data/{lib → app/models}/blacklight/solr/facet_paginator.rb +0 -0
- data/{lib/blacklight/solr_repository.rb → app/models/blacklight/solr/repository.rb} +3 -3
- data/{lib → app/models}/blacklight/solr/request.rb +0 -0
- data/{lib/blacklight/solr_response.rb → app/models/blacklight/solr/response.rb} +8 -8
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/facets.rb +8 -8
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/group.rb +2 -2
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/group_response.rb +3 -3
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/more_like_this.rb +1 -1
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/pagination_methods.rb +1 -1
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/response.rb +1 -1
- data/{lib/blacklight/solr_response → app/models/blacklight/solr/response}/spelling.rb +1 -1
- data/{lib → app/models}/blacklight/solr/search_builder.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/configurable.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document.rb +7 -10
- data/{lib → app/models/concerns}/blacklight/document/active_model_shim.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/cache_key.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/dublin_core.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/email.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/export.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/extensions.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/schema_org.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/semantic_fields.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/document/sms.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document.rb +3 -8
- data/{lib → app/models/concerns}/blacklight/solr/document/dublin_core.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/email.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/export.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/extensions.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/more_like_this.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/schema_org.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/document/sms.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/solr/search_builder_behavior.rb +6 -1
- data/{lib → app/models/concerns}/blacklight/token_based_user.rb +0 -0
- data/{lib → app/models/concerns}/blacklight/user.rb +0 -0
- data/{lib → app/presenters}/blacklight/document_presenter.rb +0 -0
- data/app/views/catalog/_paginate_compact.html.erb +1 -1
- data/blacklight.gemspec +1 -1
- data/lib/blacklight.rb +7 -32
- data/lib/blacklight/engine.rb +6 -0
- data/lib/blacklight/solr.rb +5 -7
- data/lib/railties/blacklight.rake +3 -1
- data/spec/{lib → controllers}/blacklight/catalog/component_configuration_spec.rb +7 -2
- data/spec/{lib → controllers}/blacklight/facet_spec.rb +0 -0
- data/spec/{lib → controllers}/blacklight/search_fields_spec.rb +2 -2
- data/spec/{lib → controllers}/blacklight/search_helper_spec.rb +3 -3
- data/spec/controllers/catalog_controller_spec.rb +34 -32
- data/spec/controllers/saved_searches_controller_spec.rb +1 -1
- data/spec/helpers/facets_helper_spec.rb +2 -2
- data/spec/helpers/search_history_constraints_helper_spec.rb +23 -3
- data/spec/lib/{utils_spec.rb → blacklight/utils_spec.rb} +0 -0
- data/spec/lib/blacklight_spec.rb +0 -1
- data/spec/{lib → models}/blacklight/configurable_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/configuration_spec.rb +1 -1
- data/spec/{lib → models}/blacklight/document/cache_key_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/document/dublin_core_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/document/email_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/document/sms_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/document_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/facet_paginator_spec.rb +7 -7
- data/spec/{lib → models}/blacklight/search_builder_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/solr/document/more_like_this_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/solr/document_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/solr/facet_paginator_spec.rb +1 -1
- data/spec/{lib/blacklight/solr_repository_spec.rb → models/blacklight/solr/repository_spec.rb} +13 -13
- data/spec/{lib → models}/blacklight/solr/request_spec.rb +0 -0
- data/spec/{lib/blacklight/solr_response → models/blacklight/solr/response}/facets_spec.rb +12 -12
- data/spec/{lib/blacklight/solr_response → models/blacklight/solr/response}/group_response_spec.rb +3 -3
- data/spec/{lib/blacklight/solr_response → models/blacklight/solr/response}/group_spec.rb +2 -2
- data/spec/{lib/blacklight/solr_response_spec.rb → models/blacklight/solr/response_spec.rb} +21 -21
- data/spec/{lib → models}/blacklight/solr/search_builder_spec.rb +0 -0
- data/spec/{lib → models}/blacklight/user_spec.rb +0 -0
- data/spec/{lib → presenters}/document_presenter_spec.rb +0 -0
- data/spec/views/catalog/_facets.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_index_default.erb_spec.rb +10 -10
- data/spec/views/catalog/_show_default.erb_spec.rb +10 -10
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +2 -2
- data/spec/views/catalog/index.atom.builder_spec.rb +30 -33
- metadata +116 -118
- data/spec/support/include_text.rb +0 -20
File without changes
|
File without changes
|
File without changes
|
@@ -26,7 +26,7 @@ describe "catalog/_facets" do
|
|
26
26
|
before do
|
27
27
|
blacklight_config.facet_fields['facet_field_1'] = facet_field
|
28
28
|
|
29
|
-
@mock_display_facet_1 = double(:name => 'facet_field_1', sort: nil, offset: nil, :items => [Blacklight::
|
29
|
+
@mock_display_facet_1 = double(:name => 'facet_field_1', sort: nil, offset: nil, :items => [Blacklight::Solr::Response::Facets::FacetItem.new(:value => 'Value', :hits => 1234)])
|
30
30
|
allow(view).to receive_messages(:facet_field_names => [:facet_field_1],
|
31
31
|
:facet_limit_for => 10 )
|
32
32
|
|
@@ -33,21 +33,21 @@ describe "/catalog/_index_default.erb" do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
it "should only display fields listed in the initializer" do
|
36
|
-
expect(@rendered).to_not
|
37
|
-
expect(@rendered).to_not
|
36
|
+
expect(@rendered).to_not include("val_2")
|
37
|
+
expect(@rendered).to_not include(@fname_2)
|
38
38
|
end
|
39
39
|
|
40
40
|
it "should skip over fields listed in initializer that are not in solr response" do
|
41
|
-
expect(@rendered).to_not
|
41
|
+
expect(@rendered).to_not include(@fname_3)
|
42
42
|
end
|
43
43
|
|
44
44
|
it "should display field labels from initializer and raw solr field names in the class" do
|
45
45
|
# labels
|
46
|
-
expect(@rendered).to
|
47
|
-
expect(@rendered).to
|
46
|
+
expect(@rendered).to include(@flabel_1)
|
47
|
+
expect(@rendered).to include(@flabel_4)
|
48
48
|
# classes
|
49
|
-
expect(@rendered).to
|
50
|
-
expect(@rendered).to
|
49
|
+
expect(@rendered).to include("blacklight-#{@fname_1}")
|
50
|
+
expect(@rendered).to include("blacklight-#{@fname_4}")
|
51
51
|
end
|
52
52
|
|
53
53
|
# this test probably belongs in a Cucumber feature
|
@@ -56,9 +56,9 @@ describe "/catalog/_index_default.erb" do
|
|
56
56
|
# end
|
57
57
|
|
58
58
|
it "should have values for displayed fields" do
|
59
|
-
expect(@rendered).to
|
60
|
-
expect(@rendered).to
|
61
|
-
expect(@rendered).to_not
|
59
|
+
expect(@rendered).to include("val_1")
|
60
|
+
expect(@rendered).to include("val_4")
|
61
|
+
expect(@rendered).to_not include("val_2")
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
@@ -34,21 +34,21 @@ describe "/catalog/_show_default.html.erb" do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it "should only display fields listed in the initializer" do
|
37
|
-
expect(@rendered).to_not
|
38
|
-
expect(@rendered).to_not
|
37
|
+
expect(@rendered).to_not include("val_2")
|
38
|
+
expect(@rendered).to_not include(@fname_2)
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should skip over fields listed in initializer that are not in solr response" do
|
42
|
-
expect(@rendered).to_not
|
42
|
+
expect(@rendered).to_not include(@fname_3)
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should display field labels from initializer and raw solr field names in the class" do
|
46
46
|
# labels
|
47
|
-
expect(@rendered).to
|
48
|
-
expect(@rendered).to
|
47
|
+
expect(@rendered).to include(@flabel_1)
|
48
|
+
expect(@rendered).to include(@flabel_4)
|
49
49
|
# classes
|
50
|
-
expect(@rendered).to
|
51
|
-
expect(@rendered).to
|
50
|
+
expect(@rendered).to include("blacklight-#{@fname_1}")
|
51
|
+
expect(@rendered).to include("blacklight-#{@fname_4}")
|
52
52
|
end
|
53
53
|
|
54
54
|
# this test probably belongs in a Cucumber feature
|
@@ -57,9 +57,9 @@ describe "/catalog/_show_default.html.erb" do
|
|
57
57
|
# end
|
58
58
|
|
59
59
|
it "should have values for displayed fields" do
|
60
|
-
expect(@rendered).to
|
61
|
-
expect(@rendered).to
|
62
|
-
expect(@rendered).to_not
|
60
|
+
expect(@rendered).to include("val_1")
|
61
|
+
expect(@rendered).to include("val_4")
|
62
|
+
expect(@rendered).to_not include("val_2")
|
63
63
|
end
|
64
64
|
|
65
65
|
end
|
@@ -22,7 +22,7 @@ describe "/catalog/_show_sidebar.html.erb" do
|
|
22
22
|
@document = SolrDocument.new :id => 1, :title_s => 'abc', :format => 'default'
|
23
23
|
allow(@document).to receive(:more_like_this).and_return([SolrDocument.new({ 'id' => '2', 'title_display' => 'Title of MLT Document' })])
|
24
24
|
render
|
25
|
-
expect(rendered).to
|
26
|
-
expect(rendered).to
|
25
|
+
expect(rendered).to include("More Like This")
|
26
|
+
expect(rendered).to include("Title of MLT Document")
|
27
27
|
end
|
28
28
|
end
|
@@ -1,42 +1,41 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'rexml/document'
|
2
3
|
|
3
4
|
describe "catalog/index" do
|
4
5
|
|
5
6
|
before(:all) do
|
6
|
-
@
|
7
|
-
config.default_solr_params = {
|
8
|
-
:fl => '*',
|
9
|
-
:rows => 10
|
10
|
-
}
|
11
|
-
end
|
7
|
+
@response = Blacklight::SolrResponse.new({ response: { numFound: 30 }}, { start: 10, rows: 10})
|
12
8
|
|
13
|
-
@
|
14
|
-
|
15
|
-
# run a solr query to get our data
|
16
|
-
c = CatalogController.new
|
17
|
-
c.blacklight_config = @config
|
18
|
-
@response, @document_list = c.search_results(@params, c.search_params_logic)
|
9
|
+
@config = CatalogController.blacklight_config
|
10
|
+
end
|
19
11
|
|
20
|
-
|
21
|
-
|
22
|
-
@document_list[5] = SolrDocument.new(@document_list[1].with_indifferent_access.reject! { |k,v| k == "marc_display" })
|
12
|
+
let(:document_list) do
|
13
|
+
10.times.map { |i| SolrDocument.new(id: i) }
|
23
14
|
end
|
15
|
+
|
24
16
|
before(:each) do
|
25
17
|
# Not sure what Assigns was doing here ... dhf
|
26
18
|
# assigns[:response] = @rsolr_response
|
27
19
|
# assigns[:document_list] = @document_list
|
28
20
|
# not sure why we can't use assigns for 'params', instead this weird way,
|
29
21
|
# but okay.
|
22
|
+
|
23
|
+
params.merge!( 'content_format' => 'some_format' )
|
24
|
+
@document_list = document_list
|
25
|
+
allow_any_instance_of(SolrDocument).to receive(:export_as_some_format).and_return("")
|
26
|
+
allow(document_list[0]).to receive(:to_semantic_values).and_return(author: ['xyz'])
|
27
|
+
@document_list[1].will_export_as(:some_format, "application/some-format")
|
30
28
|
|
31
|
-
params.merge!( @params )
|
32
29
|
allow(view).to receive(:blacklight_config).and_return(@config)
|
33
30
|
allow(view).to receive(:search_field_options_for_select).and_return([])
|
34
31
|
|
35
32
|
render :template => 'catalog/index', :formats => [:atom]
|
33
|
+
end
|
36
34
|
|
35
|
+
let(:response_xml) do
|
37
36
|
# We need to use rexml to test certain things that have_tag wont' test
|
38
37
|
# note that response is depricated rails 3, use "redered" instead.
|
39
|
-
|
38
|
+
REXML::Document.new(rendered)
|
40
39
|
end
|
41
40
|
|
42
41
|
it "should have contextual information" do
|
@@ -51,15 +50,15 @@ describe "catalog/index" do
|
|
51
50
|
|
52
51
|
it "should get paging data correctly from response" do
|
53
52
|
# Can't use have_tag for namespaced elements, sorry.
|
54
|
-
expect(
|
55
|
-
expect(
|
56
|
-
expect(
|
53
|
+
expect(response_xml.elements["/feed/opensearch:totalResults"].text).to eq "30"
|
54
|
+
expect(response_xml.elements["/feed/opensearch:startIndex"].text).to eq "10"
|
55
|
+
expect(response_xml.elements["/feed/opensearch:itemsPerPage"].text).to eq "10"
|
57
56
|
end
|
58
57
|
|
59
58
|
it "should include an opensearch Query role=request" do
|
60
59
|
|
61
|
-
expect(
|
62
|
-
query_el =
|
60
|
+
expect(response_xml.elements.to_a("/feed/opensearch:itemsPerPage")).to have(1).item
|
61
|
+
query_el = response_xml.elements["/feed/opensearch:Query"]
|
63
62
|
expect(query_el).to_not be_nil
|
64
63
|
expect(query_el.attributes["role"]).to eq "request"
|
65
64
|
expect(query_el.attributes["searchTerms"]).to eq ""
|
@@ -89,16 +88,16 @@ describe "catalog/index" do
|
|
89
88
|
|
90
89
|
describe "with an author" do
|
91
90
|
before do
|
92
|
-
@entry =
|
91
|
+
@entry = response_xml.elements.to_a("/feed/entry")[0]
|
93
92
|
end
|
94
93
|
it "should have author tag" do
|
95
|
-
expect(@entry.elements["author/name"]).
|
94
|
+
expect(@entry.elements["author/name"].text).to eq 'xyz'
|
96
95
|
end
|
97
96
|
end
|
98
97
|
|
99
98
|
describe "without an author" do
|
100
99
|
before do
|
101
|
-
@entry =
|
100
|
+
@entry = response_xml.elements.to_a("/feed/entry")[1]
|
102
101
|
end
|
103
102
|
it "should not have an author tag" do
|
104
103
|
expect(@entry.elements["author/name"]).to be_nil
|
@@ -108,25 +107,23 @@ describe "catalog/index" do
|
|
108
107
|
|
109
108
|
describe "when content_format is specified" do
|
110
109
|
describe "for an entry with content available" do
|
111
|
-
|
112
|
-
|
110
|
+
let(:entry) do
|
111
|
+
response_xml.elements.to_a("/feed/entry")[1].to_s
|
113
112
|
end
|
114
113
|
it "should include a link rel tag" do
|
115
|
-
expect(
|
114
|
+
expect(entry).to have_selector("link[rel=alternate][type='application/some-format']")
|
116
115
|
end
|
117
116
|
it "should have content embedded" do
|
118
|
-
expect(
|
117
|
+
expect(entry).to have_selector("content")
|
119
118
|
end
|
120
119
|
end
|
121
120
|
describe "for an entry with NO content available" do
|
122
121
|
before do
|
123
|
-
@entry =
|
122
|
+
@entry = response_xml.elements.to_a("/feed/entry")[5]
|
124
123
|
end
|
125
124
|
it "should include content" do
|
126
|
-
expect(@entry.to_s).to_not have_selector("content[type='application/
|
125
|
+
expect(@entry.to_s).to_not have_selector("content[type='application/some-format']")
|
127
126
|
end
|
128
127
|
end
|
129
128
|
end
|
130
129
|
end
|
131
|
-
|
132
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date: 2015-
|
20
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -211,16 +211,16 @@ dependencies:
|
|
211
211
|
name: engine_cart
|
212
212
|
requirement: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
|
-
- - "
|
214
|
+
- - "~>"
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: 0.
|
216
|
+
version: 0.8.0
|
217
217
|
type: :development
|
218
218
|
prerelease: false
|
219
219
|
version_requirements: !ruby/object:Gem::Requirement
|
220
220
|
requirements:
|
221
|
-
- - "
|
221
|
+
- - "~>"
|
222
222
|
- !ruby/object:Gem::Version
|
223
|
-
version: 0.
|
223
|
+
version: 0.8.0
|
224
224
|
- !ruby/object:Gem::Dependency
|
225
225
|
name: equivalent-xml
|
226
226
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,6 +280,16 @@ files:
|
|
280
280
|
- app/assets/stylesheets/blacklight/blacklight_defaults.scss
|
281
281
|
- app/controllers/bookmarks_controller.rb
|
282
282
|
- app/controllers/catalog_controller.rb
|
283
|
+
- app/controllers/concerns/blacklight/base.rb
|
284
|
+
- app/controllers/concerns/blacklight/bookmarks.rb
|
285
|
+
- app/controllers/concerns/blacklight/catalog.rb
|
286
|
+
- app/controllers/concerns/blacklight/controller.rb
|
287
|
+
- app/controllers/concerns/blacklight/default_component_configuration.rb
|
288
|
+
- app/controllers/concerns/blacklight/facet.rb
|
289
|
+
- app/controllers/concerns/blacklight/request_builders.rb
|
290
|
+
- app/controllers/concerns/blacklight/search_context.rb
|
291
|
+
- app/controllers/concerns/blacklight/search_fields.rb
|
292
|
+
- app/controllers/concerns/blacklight/search_helper.rb
|
283
293
|
- app/controllers/saved_searches_controller.rb
|
284
294
|
- app/controllers/search_history_controller.rb
|
285
295
|
- app/helpers/blacklight/blacklight_helper_behavior.rb
|
@@ -303,10 +313,57 @@ files:
|
|
303
313
|
- app/helpers/layout_helper.rb
|
304
314
|
- app/helpers/render_constraints_helper.rb
|
305
315
|
- app/helpers/search_history_constraints_helper.rb
|
316
|
+
- app/models/blacklight/abstract_repository.rb
|
317
|
+
- app/models/blacklight/configuration.rb
|
318
|
+
- app/models/blacklight/configuration/facet_field.rb
|
319
|
+
- app/models/blacklight/configuration/field.rb
|
320
|
+
- app/models/blacklight/configuration/fields.rb
|
321
|
+
- app/models/blacklight/configuration/search_field.rb
|
322
|
+
- app/models/blacklight/configuration/solr_field.rb
|
323
|
+
- app/models/blacklight/configuration/sort_field.rb
|
324
|
+
- app/models/blacklight/configuration/tool_config.rb
|
325
|
+
- app/models/blacklight/configuration/view_config.rb
|
326
|
+
- app/models/blacklight/facet_paginator.rb
|
327
|
+
- app/models/blacklight/search_builder.rb
|
328
|
+
- app/models/blacklight/solr/facet_paginator.rb
|
329
|
+
- app/models/blacklight/solr/repository.rb
|
330
|
+
- app/models/blacklight/solr/request.rb
|
331
|
+
- app/models/blacklight/solr/response.rb
|
332
|
+
- app/models/blacklight/solr/response/facets.rb
|
333
|
+
- app/models/blacklight/solr/response/group.rb
|
334
|
+
- app/models/blacklight/solr/response/group_response.rb
|
335
|
+
- app/models/blacklight/solr/response/more_like_this.rb
|
336
|
+
- app/models/blacklight/solr/response/pagination_methods.rb
|
337
|
+
- app/models/blacklight/solr/response/response.rb
|
338
|
+
- app/models/blacklight/solr/response/spelling.rb
|
339
|
+
- app/models/blacklight/solr/search_builder.rb
|
306
340
|
- app/models/bookmark.rb
|
341
|
+
- app/models/concerns/blacklight/configurable.rb
|
342
|
+
- app/models/concerns/blacklight/document.rb
|
343
|
+
- app/models/concerns/blacklight/document/active_model_shim.rb
|
344
|
+
- app/models/concerns/blacklight/document/cache_key.rb
|
345
|
+
- app/models/concerns/blacklight/document/dublin_core.rb
|
346
|
+
- app/models/concerns/blacklight/document/email.rb
|
347
|
+
- app/models/concerns/blacklight/document/export.rb
|
348
|
+
- app/models/concerns/blacklight/document/extensions.rb
|
349
|
+
- app/models/concerns/blacklight/document/schema_org.rb
|
350
|
+
- app/models/concerns/blacklight/document/semantic_fields.rb
|
351
|
+
- app/models/concerns/blacklight/document/sms.rb
|
352
|
+
- app/models/concerns/blacklight/solr/document.rb
|
353
|
+
- app/models/concerns/blacklight/solr/document/dublin_core.rb
|
354
|
+
- app/models/concerns/blacklight/solr/document/email.rb
|
355
|
+
- app/models/concerns/blacklight/solr/document/export.rb
|
356
|
+
- app/models/concerns/blacklight/solr/document/extensions.rb
|
357
|
+
- app/models/concerns/blacklight/solr/document/more_like_this.rb
|
358
|
+
- app/models/concerns/blacklight/solr/document/schema_org.rb
|
359
|
+
- app/models/concerns/blacklight/solr/document/sms.rb
|
360
|
+
- app/models/concerns/blacklight/solr/search_builder_behavior.rb
|
361
|
+
- app/models/concerns/blacklight/token_based_user.rb
|
362
|
+
- app/models/concerns/blacklight/user.rb
|
307
363
|
- app/models/record_mailer.rb
|
308
364
|
- app/models/search.rb
|
309
365
|
- app/models/solr_document.rb
|
366
|
+
- app/presenters/blacklight/document_presenter.rb
|
310
367
|
- app/views/_flash_msg.html.erb
|
311
368
|
- app/views/_user_util_links.html.erb
|
312
369
|
- app/views/blacklight/nav/_bookmark.html.erb
|
@@ -407,69 +464,12 @@ files:
|
|
407
464
|
- db/migrate/20140202020202_create_bookmarks.rb
|
408
465
|
- db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
|
409
466
|
- lib/blacklight.rb
|
410
|
-
- lib/blacklight/abstract_repository.rb
|
411
|
-
- lib/blacklight/base.rb
|
412
|
-
- lib/blacklight/bookmarks.rb
|
413
|
-
- lib/blacklight/catalog.rb
|
414
|
-
- lib/blacklight/catalog/component_configuration.rb
|
415
|
-
- lib/blacklight/catalog/search_context.rb
|
416
|
-
- lib/blacklight/configurable.rb
|
417
|
-
- lib/blacklight/configuration.rb
|
418
|
-
- lib/blacklight/configuration/facet_field.rb
|
419
|
-
- lib/blacklight/configuration/field.rb
|
420
|
-
- lib/blacklight/configuration/fields.rb
|
421
|
-
- lib/blacklight/configuration/search_field.rb
|
422
|
-
- lib/blacklight/configuration/solr_field.rb
|
423
|
-
- lib/blacklight/configuration/sort_field.rb
|
424
|
-
- lib/blacklight/configuration/tool_config.rb
|
425
|
-
- lib/blacklight/configuration/view_config.rb
|
426
|
-
- lib/blacklight/controller.rb
|
427
|
-
- lib/blacklight/document.rb
|
428
|
-
- lib/blacklight/document/active_model_shim.rb
|
429
|
-
- lib/blacklight/document/cache_key.rb
|
430
|
-
- lib/blacklight/document/dublin_core.rb
|
431
|
-
- lib/blacklight/document/email.rb
|
432
|
-
- lib/blacklight/document/export.rb
|
433
|
-
- lib/blacklight/document/extensions.rb
|
434
|
-
- lib/blacklight/document/schema_org.rb
|
435
|
-
- lib/blacklight/document/semantic_fields.rb
|
436
|
-
- lib/blacklight/document/sms.rb
|
437
|
-
- lib/blacklight/document_presenter.rb
|
438
467
|
- lib/blacklight/engine.rb
|
439
468
|
- lib/blacklight/exceptions.rb
|
440
|
-
- lib/blacklight/facet.rb
|
441
|
-
- lib/blacklight/facet_paginator.rb
|
442
469
|
- lib/blacklight/rails/routes.rb
|
443
|
-
- lib/blacklight/request_builders.rb
|
444
470
|
- lib/blacklight/routes.rb
|
445
|
-
- lib/blacklight/search_builder.rb
|
446
|
-
- lib/blacklight/search_fields.rb
|
447
|
-
- lib/blacklight/search_helper.rb
|
448
471
|
- lib/blacklight/solr.rb
|
449
|
-
- lib/blacklight/solr/document.rb
|
450
|
-
- lib/blacklight/solr/document/dublin_core.rb
|
451
|
-
- lib/blacklight/solr/document/email.rb
|
452
|
-
- lib/blacklight/solr/document/export.rb
|
453
|
-
- lib/blacklight/solr/document/extensions.rb
|
454
|
-
- lib/blacklight/solr/document/more_like_this.rb
|
455
|
-
- lib/blacklight/solr/document/schema_org.rb
|
456
|
-
- lib/blacklight/solr/document/sms.rb
|
457
|
-
- lib/blacklight/solr/facet_paginator.rb
|
458
|
-
- lib/blacklight/solr/request.rb
|
459
|
-
- lib/blacklight/solr/search_builder.rb
|
460
|
-
- lib/blacklight/solr/search_builder_behavior.rb
|
461
472
|
- lib/blacklight/solr_helper.rb
|
462
|
-
- lib/blacklight/solr_repository.rb
|
463
|
-
- lib/blacklight/solr_response.rb
|
464
|
-
- lib/blacklight/solr_response/facets.rb
|
465
|
-
- lib/blacklight/solr_response/group.rb
|
466
|
-
- lib/blacklight/solr_response/group_response.rb
|
467
|
-
- lib/blacklight/solr_response/more_like_this.rb
|
468
|
-
- lib/blacklight/solr_response/pagination_methods.rb
|
469
|
-
- lib/blacklight/solr_response/response.rb
|
470
|
-
- lib/blacklight/solr_response/spelling.rb
|
471
|
-
- lib/blacklight/token_based_user.rb
|
472
|
-
- lib/blacklight/user.rb
|
473
473
|
- lib/blacklight/utils.rb
|
474
474
|
- lib/blacklight/version.rb
|
475
475
|
- lib/generators/blacklight/assets_generator.rb
|
@@ -493,6 +493,10 @@ files:
|
|
493
493
|
- solr/sample_solr_documents.yml
|
494
494
|
- spec/controllers/alternate_controller_spec.rb
|
495
495
|
- spec/controllers/application_controller_spec.rb
|
496
|
+
- spec/controllers/blacklight/catalog/component_configuration_spec.rb
|
497
|
+
- spec/controllers/blacklight/facet_spec.rb
|
498
|
+
- spec/controllers/blacklight/search_fields_spec.rb
|
499
|
+
- spec/controllers/blacklight/search_helper_spec.rb
|
496
500
|
- spec/controllers/bookmarks_controller_spec.rb
|
497
501
|
- spec/controllers/catalog_controller_spec.rb
|
498
502
|
- spec/controllers/saved_searches_controller_spec.rb
|
@@ -522,47 +526,42 @@ files:
|
|
522
526
|
- spec/helpers/render_constraints_helper_spec.rb
|
523
527
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
524
528
|
- spec/helpers/url_helper_spec.rb
|
525
|
-
- spec/lib/blacklight/catalog/component_configuration_spec.rb
|
526
|
-
- spec/lib/blacklight/configurable_spec.rb
|
527
|
-
- spec/lib/blacklight/configuration_spec.rb
|
528
|
-
- spec/lib/blacklight/document/cache_key_spec.rb
|
529
|
-
- spec/lib/blacklight/document/dublin_core_spec.rb
|
530
|
-
- spec/lib/blacklight/document/email_spec.rb
|
531
|
-
- spec/lib/blacklight/document/sms_spec.rb
|
532
|
-
- spec/lib/blacklight/document_spec.rb
|
533
|
-
- spec/lib/blacklight/facet_paginator_spec.rb
|
534
|
-
- spec/lib/blacklight/facet_spec.rb
|
535
529
|
- spec/lib/blacklight/routes_spec.rb
|
536
|
-
- spec/lib/blacklight/search_builder_spec.rb
|
537
|
-
- spec/lib/blacklight/search_fields_spec.rb
|
538
|
-
- spec/lib/blacklight/search_helper_spec.rb
|
539
|
-
- spec/lib/blacklight/solr/document/more_like_this_spec.rb
|
540
|
-
- spec/lib/blacklight/solr/document_spec.rb
|
541
|
-
- spec/lib/blacklight/solr/facet_paginator_spec.rb
|
542
|
-
- spec/lib/blacklight/solr/request_spec.rb
|
543
|
-
- spec/lib/blacklight/solr/search_builder_spec.rb
|
544
530
|
- spec/lib/blacklight/solr_helper_spec.rb
|
545
|
-
- spec/lib/blacklight/
|
546
|
-
- spec/lib/blacklight/solr_response/facets_spec.rb
|
547
|
-
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
548
|
-
- spec/lib/blacklight/solr_response/group_spec.rb
|
549
|
-
- spec/lib/blacklight/solr_response_spec.rb
|
550
|
-
- spec/lib/blacklight/user_spec.rb
|
531
|
+
- spec/lib/blacklight/utils_spec.rb
|
551
532
|
- spec/lib/blacklight_spec.rb
|
552
|
-
- spec/lib/document_presenter_spec.rb
|
553
533
|
- spec/lib/tasks/blacklight_task_spec.rb
|
554
|
-
- spec/
|
534
|
+
- spec/models/blacklight/configurable_spec.rb
|
535
|
+
- spec/models/blacklight/configuration_spec.rb
|
536
|
+
- spec/models/blacklight/document/cache_key_spec.rb
|
537
|
+
- spec/models/blacklight/document/dublin_core_spec.rb
|
538
|
+
- spec/models/blacklight/document/email_spec.rb
|
539
|
+
- spec/models/blacklight/document/sms_spec.rb
|
540
|
+
- spec/models/blacklight/document_spec.rb
|
541
|
+
- spec/models/blacklight/facet_paginator_spec.rb
|
542
|
+
- spec/models/blacklight/search_builder_spec.rb
|
543
|
+
- spec/models/blacklight/solr/document/more_like_this_spec.rb
|
544
|
+
- spec/models/blacklight/solr/document_spec.rb
|
545
|
+
- spec/models/blacklight/solr/facet_paginator_spec.rb
|
546
|
+
- spec/models/blacklight/solr/repository_spec.rb
|
547
|
+
- spec/models/blacklight/solr/request_spec.rb
|
548
|
+
- spec/models/blacklight/solr/response/facets_spec.rb
|
549
|
+
- spec/models/blacklight/solr/response/group_response_spec.rb
|
550
|
+
- spec/models/blacklight/solr/response/group_spec.rb
|
551
|
+
- spec/models/blacklight/solr/response_spec.rb
|
552
|
+
- spec/models/blacklight/solr/search_builder_spec.rb
|
553
|
+
- spec/models/blacklight/user_spec.rb
|
555
554
|
- spec/models/bookmark_spec.rb
|
556
555
|
- spec/models/record_mailer_spec.rb
|
557
556
|
- spec/models/search_spec.rb
|
558
557
|
- spec/models/solr_document_spec.rb
|
558
|
+
- spec/presenters/document_presenter_spec.rb
|
559
559
|
- spec/routing/catalog_routing_spec.rb
|
560
560
|
- spec/routing/routes_spec.rb
|
561
561
|
- spec/spec.opts
|
562
562
|
- spec/spec_helper.rb
|
563
563
|
- spec/support/features.rb
|
564
564
|
- spec/support/features/session_helpers.rb
|
565
|
-
- spec/support/include_text.rb
|
566
565
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
567
566
|
- spec/views/_user_util_links.html.erb_spec.rb
|
568
567
|
- spec/views/catalog/_constraints.html.erb_spec.rb
|
@@ -609,7 +608,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
609
608
|
version: '0'
|
610
609
|
requirements: []
|
611
610
|
rubyforge_project:
|
612
|
-
rubygems_version: 2.4.5
|
611
|
+
rubygems_version: 2.4.5.1
|
613
612
|
signing_key:
|
614
613
|
specification_version: 4
|
615
614
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
@@ -617,6 +616,10 @@ summary: Blacklight provides a discovery interface for any Solr (http://lucene.a
|
|
617
616
|
test_files:
|
618
617
|
- spec/controllers/alternate_controller_spec.rb
|
619
618
|
- spec/controllers/application_controller_spec.rb
|
619
|
+
- spec/controllers/blacklight/catalog/component_configuration_spec.rb
|
620
|
+
- spec/controllers/blacklight/facet_spec.rb
|
621
|
+
- spec/controllers/blacklight/search_fields_spec.rb
|
622
|
+
- spec/controllers/blacklight/search_helper_spec.rb
|
620
623
|
- spec/controllers/bookmarks_controller_spec.rb
|
621
624
|
- spec/controllers/catalog_controller_spec.rb
|
622
625
|
- spec/controllers/saved_searches_controller_spec.rb
|
@@ -646,47 +649,42 @@ test_files:
|
|
646
649
|
- spec/helpers/render_constraints_helper_spec.rb
|
647
650
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
648
651
|
- spec/helpers/url_helper_spec.rb
|
649
|
-
- spec/lib/blacklight/catalog/component_configuration_spec.rb
|
650
|
-
- spec/lib/blacklight/configurable_spec.rb
|
651
|
-
- spec/lib/blacklight/configuration_spec.rb
|
652
|
-
- spec/lib/blacklight/document/cache_key_spec.rb
|
653
|
-
- spec/lib/blacklight/document/dublin_core_spec.rb
|
654
|
-
- spec/lib/blacklight/document/email_spec.rb
|
655
|
-
- spec/lib/blacklight/document/sms_spec.rb
|
656
|
-
- spec/lib/blacklight/document_spec.rb
|
657
|
-
- spec/lib/blacklight/facet_paginator_spec.rb
|
658
|
-
- spec/lib/blacklight/facet_spec.rb
|
659
652
|
- spec/lib/blacklight/routes_spec.rb
|
660
|
-
- spec/lib/blacklight/search_builder_spec.rb
|
661
|
-
- spec/lib/blacklight/search_fields_spec.rb
|
662
|
-
- spec/lib/blacklight/search_helper_spec.rb
|
663
|
-
- spec/lib/blacklight/solr/document/more_like_this_spec.rb
|
664
|
-
- spec/lib/blacklight/solr/document_spec.rb
|
665
|
-
- spec/lib/blacklight/solr/facet_paginator_spec.rb
|
666
|
-
- spec/lib/blacklight/solr/request_spec.rb
|
667
|
-
- spec/lib/blacklight/solr/search_builder_spec.rb
|
668
653
|
- spec/lib/blacklight/solr_helper_spec.rb
|
669
|
-
- spec/lib/blacklight/
|
670
|
-
- spec/lib/blacklight/solr_response/facets_spec.rb
|
671
|
-
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
672
|
-
- spec/lib/blacklight/solr_response/group_spec.rb
|
673
|
-
- spec/lib/blacklight/solr_response_spec.rb
|
674
|
-
- spec/lib/blacklight/user_spec.rb
|
654
|
+
- spec/lib/blacklight/utils_spec.rb
|
675
655
|
- spec/lib/blacklight_spec.rb
|
676
|
-
- spec/lib/document_presenter_spec.rb
|
677
656
|
- spec/lib/tasks/blacklight_task_spec.rb
|
678
|
-
- spec/
|
657
|
+
- spec/models/blacklight/configurable_spec.rb
|
658
|
+
- spec/models/blacklight/configuration_spec.rb
|
659
|
+
- spec/models/blacklight/document/cache_key_spec.rb
|
660
|
+
- spec/models/blacklight/document/dublin_core_spec.rb
|
661
|
+
- spec/models/blacklight/document/email_spec.rb
|
662
|
+
- spec/models/blacklight/document/sms_spec.rb
|
663
|
+
- spec/models/blacklight/document_spec.rb
|
664
|
+
- spec/models/blacklight/facet_paginator_spec.rb
|
665
|
+
- spec/models/blacklight/search_builder_spec.rb
|
666
|
+
- spec/models/blacklight/solr/document/more_like_this_spec.rb
|
667
|
+
- spec/models/blacklight/solr/document_spec.rb
|
668
|
+
- spec/models/blacklight/solr/facet_paginator_spec.rb
|
669
|
+
- spec/models/blacklight/solr/repository_spec.rb
|
670
|
+
- spec/models/blacklight/solr/request_spec.rb
|
671
|
+
- spec/models/blacklight/solr/response/facets_spec.rb
|
672
|
+
- spec/models/blacklight/solr/response/group_response_spec.rb
|
673
|
+
- spec/models/blacklight/solr/response/group_spec.rb
|
674
|
+
- spec/models/blacklight/solr/response_spec.rb
|
675
|
+
- spec/models/blacklight/solr/search_builder_spec.rb
|
676
|
+
- spec/models/blacklight/user_spec.rb
|
679
677
|
- spec/models/bookmark_spec.rb
|
680
678
|
- spec/models/record_mailer_spec.rb
|
681
679
|
- spec/models/search_spec.rb
|
682
680
|
- spec/models/solr_document_spec.rb
|
681
|
+
- spec/presenters/document_presenter_spec.rb
|
683
682
|
- spec/routing/catalog_routing_spec.rb
|
684
683
|
- spec/routing/routes_spec.rb
|
685
684
|
- spec/spec.opts
|
686
685
|
- spec/spec_helper.rb
|
687
686
|
- spec/support/features.rb
|
688
687
|
- spec/support/features/session_helpers.rb
|
689
|
-
- spec/support/include_text.rb
|
690
688
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
691
689
|
- spec/views/_user_util_links.html.erb_spec.rb
|
692
690
|
- spec/views/catalog/_constraints.html.erb_spec.rb
|