blacklight 5.7.2 → 5.8.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 +4 -4
- data/.travis.yml +1 -3
- data/Gemfile +1 -4
- data/VERSION +1 -1
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +38 -1
- data/app/assets/stylesheets/blacklight/_facets.css.scss +10 -0
- data/app/assets/stylesheets/blacklight/_layout.css.scss +6 -0
- data/app/controllers/bookmarks_controller.rb +3 -163
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +18 -186
- data/app/helpers/blacklight/catalog_helper_behavior.rb +36 -2
- data/app/helpers/blacklight/component_helper_behavior.rb +77 -0
- data/app/helpers/blacklight/configuration_helper_behavior.rb +30 -21
- data/app/helpers/blacklight/render_partials_helper.rb +185 -0
- data/app/helpers/blacklight/url_helper_behavior.rb +24 -3
- data/app/helpers/component_helper.rb +3 -0
- data/app/views/_user_util_links.html.erb +2 -15
- data/app/views/blacklight/nav/_bookmark.html.erb +4 -0
- data/app/views/blacklight/nav/_saved_searches.html.erb +1 -0
- data/app/views/blacklight/nav/_search_history.html.erb +1 -0
- data/app/views/bookmarks/_tools.html.erb +6 -9
- data/app/views/bookmarks/index.html.erb +1 -1
- data/app/views/catalog/_bookmark_control.html.erb +8 -8
- data/app/views/catalog/_constraints_element.html.erb +1 -1
- data/app/views/catalog/_document_action.html.erb +4 -0
- data/app/views/catalog/_email_form.html.erb +1 -1
- data/app/views/catalog/_facet_limit.html.erb +1 -1
- data/app/views/catalog/_index_header_default.html.erb +5 -6
- data/app/views/catalog/_per_page_widget.html.erb +3 -1
- data/app/views/catalog/_results_pagination.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +5 -8
- data/app/views/catalog/_show_more_like_this.html.erb +2 -2
- data/app/views/catalog/_show_tools.html.erb +5 -34
- data/app/views/catalog/_sms_form.html.erb +1 -1
- data/app/views/catalog/_sort_and_per_page.html.erb +2 -6
- data/app/views/catalog/_sort_widget.html.erb +1 -1
- data/app/views/catalog/_zero_results.html.erb +2 -2
- data/app/views/catalog/citation.js.erb +1 -1
- data/app/views/catalog/email_sent.html.erb +2 -9
- data/app/views/catalog/email_success.html.erb +9 -0
- data/app/views/catalog/sms_sent.html.erb +2 -9
- data/app/views/catalog/sms_success.html.erb +9 -0
- data/app/views/kaminari/blacklight/_gap.html.erb +1 -1
- data/app/views/kaminari/blacklight/_page.html.erb +5 -1
- data/app/views/shared/_header_navbar.html.erb +1 -1
- data/config/locales/blacklight.en.yml +1 -1
- data/config/locales/blacklight.es.yml +1 -1
- data/config/locales/blacklight.fr.yml +1 -1
- data/config/locales/blacklight.pt-BR.yml +1 -1
- data/lib/blacklight.rb +3 -0
- data/lib/blacklight/base.rb +0 -1
- data/lib/blacklight/bookmarks.rb +135 -0
- data/lib/blacklight/catalog.rb +58 -77
- data/lib/blacklight/catalog/component_configuration.rb +99 -0
- data/lib/blacklight/configuration.rb +82 -4
- data/lib/blacklight/configuration/tool_config.rb +4 -0
- data/lib/blacklight/controller.rb +5 -1
- data/lib/blacklight/document_presenter.rb +17 -8
- data/lib/blacklight/request_builders.rb +136 -4
- data/lib/blacklight/routes.rb +5 -0
- data/lib/blacklight/solr_helper.rb +90 -208
- data/lib/blacklight/solr_repository.rb +69 -0
- data/lib/blacklight/token_based_user.rb +58 -0
- data/lib/blacklight/utils.rb +13 -1
- data/lib/generators/blacklight/install_generator.rb +6 -7
- data/spec/controllers/alternate_controller_spec.rb +19 -0
- data/spec/controllers/catalog_controller_spec.rb +89 -4
- data/spec/features/alternate_controller_spec.rb +0 -1
- data/spec/features/bookmarks_spec.rb +31 -6
- data/spec/features/search_results_spec.rb +11 -0
- data/spec/features/search_spec.rb +5 -0
- data/spec/helpers/blacklight_helper_spec.rb +49 -8
- data/spec/helpers/catalog_helper_spec.rb +56 -8
- data/spec/helpers/configuration_helper_spec.rb +5 -5
- data/spec/helpers/url_helper_spec.rb +15 -8
- data/spec/lib/blacklight/catalog/component_configuration_spec.rb +29 -0
- data/spec/lib/blacklight/configuration_spec.rb +15 -0
- data/spec/lib/blacklight/solr_helper_spec.rb +44 -104
- data/spec/lib/blacklight/solr_repository_spec.rb +113 -0
- data/spec/lib/utils_spec.rb +27 -0
- data/spec/views/_user_util_links.html.erb_spec.rb +6 -3
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +8 -2
- data/spec/views/catalog/_show_tools.html.erb_spec.rb +82 -0
- data/spec/views/catalog/_sort_and_per_page.html.erb_spec.rb +15 -1
- data/tasks/blacklight.rake +25 -1
- metadata +24 -2
@@ -0,0 +1,113 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Blacklight::SolrRepository do
|
4
|
+
|
5
|
+
let :blacklight_config do
|
6
|
+
CatalogController.blacklight_config.deep_copy
|
7
|
+
end
|
8
|
+
|
9
|
+
subject do
|
10
|
+
Blacklight::SolrRepository.new blacklight_config
|
11
|
+
end
|
12
|
+
|
13
|
+
let :mock_response do
|
14
|
+
{ response: { docs: [document]}}
|
15
|
+
end
|
16
|
+
|
17
|
+
let :document do
|
18
|
+
{}
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#find" do
|
22
|
+
it "should use the document-specific solr path" do
|
23
|
+
blacklight_config.document_solr_path = 'abc'
|
24
|
+
blacklight_config.solr_path = 'xyz'
|
25
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('abc', anything).and_return(mock_response)
|
26
|
+
expect(subject.find("123")).to be_a_kind_of Blacklight::SolrResponse
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should use the default solr path" do
|
30
|
+
blacklight_config.solr_path = 'xyz'
|
31
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('xyz', anything).and_return(mock_response)
|
32
|
+
expect(subject.find("123")).to be_a_kind_of Blacklight::SolrResponse
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should use a default :qt param" do
|
36
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('select', hash_including(params: { id: '123', qt: 'document'})).and_return(mock_response)
|
37
|
+
expect(subject.find("123", {})).to be_a_kind_of Blacklight::SolrResponse
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should use the provided :qt param" do
|
41
|
+
blacklight_config.document_solr_request_handler = 'xyz'
|
42
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('select', hash_including(params: { id: '123', qt: 'abc'})).and_return(mock_response)
|
43
|
+
expect(subject.find("123", {qt: 'abc'})).to be_a_kind_of Blacklight::SolrResponse
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "#search" do
|
48
|
+
it "should use the search-specific solr path" do
|
49
|
+
blacklight_config.solr_path = 'xyz'
|
50
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('xyz', anything).and_return(mock_response)
|
51
|
+
expect(subject.search({})).to be_a_kind_of Blacklight::SolrResponse
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should use the default solr path" do
|
55
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('select', anything).and_return(mock_response)
|
56
|
+
expect(subject.search({})).to be_a_kind_of Blacklight::SolrResponse
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should use a default :qt param" do
|
60
|
+
blacklight_config.qt = 'xyz'
|
61
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('select', hash_including(params: { qt: 'xyz'})).and_return(mock_response)
|
62
|
+
expect(subject.search({})).to be_a_kind_of Blacklight::SolrResponse
|
63
|
+
end
|
64
|
+
|
65
|
+
it "should use the provided :qt param" do
|
66
|
+
blacklight_config.qt = 'xyz'
|
67
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive).with('select', hash_including(params: { qt: 'abc'})).and_return(mock_response)
|
68
|
+
expect(subject.search({qt: 'abc'})).to be_a_kind_of Blacklight::SolrResponse
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe "#send_and_receive" do
|
73
|
+
describe "http_method configuration" do
|
74
|
+
describe "using default" do
|
75
|
+
|
76
|
+
it "defaults to get" do
|
77
|
+
expect(blacklight_config.http_method).to eq :get
|
78
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive) do |path, params|
|
79
|
+
expect(path).to eq 'select'
|
80
|
+
expect(params[:method]).to eq :get
|
81
|
+
expect(params[:params]).to include(:q)
|
82
|
+
end.and_return({'response'=>{'docs'=>[]}})
|
83
|
+
subject.search(:q => @all_docs_query)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe "setting to post" do
|
88
|
+
let (:blacklight_config) {config = Blacklight::Configuration.new; config.http_method=:post; config}
|
89
|
+
|
90
|
+
it "keep value set to post" do
|
91
|
+
expect(blacklight_config.http_method).to eq :post
|
92
|
+
allow(subject.blacklight_solr).to receive(:send_and_receive) do |path, params|
|
93
|
+
expect(path).to eq 'select'
|
94
|
+
expect(params[:method]).to eq :post
|
95
|
+
expect(params[:data]).to include(:q)
|
96
|
+
end.and_return({'response'=>{'docs'=>[]}})
|
97
|
+
subject.search(:q => @all_docs_query)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe "http_method configuration", integration: true do
|
104
|
+
let (:blacklight_config) {config = Blacklight::Configuration.new; config.http_method=:post; config}
|
105
|
+
|
106
|
+
it "should send a post request to solr and get a response back" do
|
107
|
+
response = subject.search(:q => @all_docs_query)
|
108
|
+
expect(response.docs.length).to be >= 1
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
|
113
|
+
end
|
data/spec/lib/utils_spec.rb
CHANGED
@@ -92,5 +92,32 @@ describe 'Blacklight::Utils' do
|
|
92
92
|
expect(subject.to_json).to eq ({a: 1, b:2}).to_json
|
93
93
|
end
|
94
94
|
end
|
95
|
+
|
96
|
+
describe "#deep_dup" do
|
97
|
+
subject { Blacklight::OpenStructWithHashAccess.new a: 1, b: { c: 1} }
|
98
|
+
|
99
|
+
it "should duplicate nested hashes" do
|
100
|
+
copy = subject.deep_dup
|
101
|
+
copy.a = 2
|
102
|
+
copy.b[:c] = 2
|
103
|
+
|
104
|
+
expect(subject.a).to eq 1
|
105
|
+
expect(subject.b[:c]).to eq 1
|
106
|
+
expect(copy.a).to eq 2
|
107
|
+
expect(copy.b[:c]).to eq 2
|
108
|
+
end
|
109
|
+
|
110
|
+
it "should preserve the current class" do
|
111
|
+
expect(Blacklight::NestedOpenStructWithHashAccess.new(Blacklight::NestedOpenStructWithHashAccess).deep_dup).to be_a_kind_of Blacklight::NestedOpenStructWithHashAccess
|
112
|
+
end
|
113
|
+
|
114
|
+
it "should preserve the default proc" do
|
115
|
+
nested = Blacklight::NestedOpenStructWithHashAccess.new Hash
|
116
|
+
|
117
|
+
copy = nested.deep_dup
|
118
|
+
copy.a[:b] = 1
|
119
|
+
expect(copy.a[:b]).to eq 1
|
120
|
+
end
|
121
|
+
end
|
95
122
|
end
|
96
123
|
end
|
@@ -3,15 +3,18 @@ require 'spec_helper'
|
|
3
3
|
describe "_user_util_links" do
|
4
4
|
|
5
5
|
let :blacklight_config do
|
6
|
-
Blacklight::Configuration.new
|
6
|
+
Blacklight::Configuration.new.configure do |config|
|
7
|
+
config.navbar.partials = { bookmark: Blacklight::Configuration::ToolConfig.new(partial: 'blacklight/nav/bookmark', if: :render_bookmarks_control?) }
|
8
|
+
end
|
9
|
+
|
7
10
|
end
|
8
11
|
|
9
12
|
it "should render the correct bookmark count" do
|
10
13
|
count = rand(99)
|
11
14
|
allow(view).to receive(:blacklight_config).and_return(blacklight_config)
|
12
15
|
allow(view).to receive(:render_bookmarks_control?).and_return true
|
13
|
-
allow(view).to receive(:has_user_authentication_provider?).
|
14
|
-
allow(view).to receive_message_chain(:current_or_guest_user, :bookmarks, :count).and_return(count)
|
16
|
+
allow(view).to receive(:has_user_authentication_provider?).and_return false
|
17
|
+
allow(view).to receive_message_chain(:current_or_guest_user, :bookmarks, :count).and_return(count)
|
15
18
|
render :partial => "user_util_links"
|
16
19
|
expect(rendered).to have_selector('#bookmarks_nav span[data-role=bookmark-counter]', text: "#{count}")
|
17
20
|
end
|
@@ -4,12 +4,18 @@ require 'spec_helper'
|
|
4
4
|
|
5
5
|
describe "/catalog/_show_sidebar.html.erb" do
|
6
6
|
|
7
|
-
|
7
|
+
let(:blacklight_config) do
|
8
|
+
Blacklight::Configuration.new do |config|
|
9
|
+
config.index.title_field = 'title_display'
|
10
|
+
end
|
11
|
+
end
|
8
12
|
|
9
|
-
|
13
|
+
before(:each) do
|
14
|
+
allow(view).to receive(:blacklight_config).and_return(blacklight_config)
|
10
15
|
allow(view).to receive(:has_user_authentication_provider?).and_return(false)
|
11
16
|
allow(view).to receive(:current_search_session).and_return nil
|
12
17
|
allow(view).to receive(:search_session).and_return({})
|
18
|
+
allow(view).to receive(:document_actions).and_return([])
|
13
19
|
end
|
14
20
|
|
15
21
|
it "should show more-like-this titles in the sidebar" do
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "catalog/_show_tools.html.erb" do
|
4
|
+
let :document do
|
5
|
+
SolrDocument.new :id => 'xyz', :format => 'a'
|
6
|
+
end
|
7
|
+
|
8
|
+
let :blacklight_config do
|
9
|
+
Blacklight::Configuration.new
|
10
|
+
end
|
11
|
+
|
12
|
+
before do
|
13
|
+
assign :response, double(:params => {})
|
14
|
+
assign :document, document
|
15
|
+
allow(view).to receive(:blacklight_config).and_return blacklight_config
|
16
|
+
allow(view).to receive(:has_user_authentication_provider?).and_return false
|
17
|
+
end
|
18
|
+
|
19
|
+
describe "document actions" do
|
20
|
+
|
21
|
+
let :document_actions do
|
22
|
+
blacklight_config.show.document_actions
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
it "should render a document action" do
|
27
|
+
allow(view).to receive(:some_action_test_path).with(id: document).and_return "x"
|
28
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action'
|
29
|
+
render partial: 'catalog/show_tools'
|
30
|
+
expect(rendered).to have_link "Some action", href: "x"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should use the provided label" do
|
34
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
35
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new label: "Some label", partial: 'document_action'
|
36
|
+
render partial: 'catalog/show_tools'
|
37
|
+
expect(rendered).to have_selector '.some_action', text: "Some label"
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should evaluate a document action's if configurations" do
|
41
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
42
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new if: false, partial: 'document_action'
|
43
|
+
render partial: 'catalog/show_tools'
|
44
|
+
expect(rendered).not_to have_selector '.some_action', text: "Some action"
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should evaluate a document action's if configuration with a proc" do
|
48
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
49
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', if: Proc.new { |config, doc| doc.id == "xyz" }
|
50
|
+
render partial: 'catalog/show_tools'
|
51
|
+
expect(rendered).not_to have_selector '.some_action', text: "Some action"
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should evaluate a document action's unless configurations" do
|
55
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
56
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', unless: true
|
57
|
+
render partial: 'catalog/show_tools'
|
58
|
+
expect(rendered).not_to have_selector '.some_action', text: "Some action"
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should allow the tool to have a custom id" do
|
62
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
63
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', id: "some_action"
|
64
|
+
render partial: 'catalog/show_tools'
|
65
|
+
expect(rendered).to have_selector '#some_action', text: "Some action"
|
66
|
+
end
|
67
|
+
|
68
|
+
it "should default to modal behavior" do
|
69
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
70
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action'
|
71
|
+
render partial: 'catalog/show_tools'
|
72
|
+
expect(rendered).to have_selector '.some_action > a[data-ajax-modal="trigger"]', text: "Some action"
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should allow configuration to opt out of modal behavior" do
|
76
|
+
allow(view).to receive(:some_action_test_path).and_return "x"
|
77
|
+
document_actions[:some_action] = Blacklight::Configuration::ToolConfig.new partial: 'document_action', modal: false
|
78
|
+
render partial: 'catalog/show_tools'
|
79
|
+
expect(rendered).not_to have_selector '.some_action > a[data-ajax-modal="trigger"]', text: "Some action"
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -7,10 +7,14 @@ describe "catalog/_sort_and_per_page" do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
before do
|
10
|
+
blacklight_config.add_results_collection_tool(:sort_widget)
|
11
|
+
blacklight_config.add_results_collection_tool(:per_page_widget)
|
12
|
+
blacklight_config.add_results_collection_tool(:view_type_group)
|
10
13
|
allow(view).to receive_messages(blacklight_config: blacklight_config)
|
11
14
|
end
|
12
15
|
|
13
16
|
it "should render the pagination, sort, per page and view type controls" do
|
17
|
+
assign(:response, double("SolrResponse", limit_value: 1))
|
14
18
|
stub_template "catalog/_paginate_compact.html.erb" => "paginate_compact"
|
15
19
|
stub_template "catalog/_sort_widget.html.erb" => "sort_widget"
|
16
20
|
stub_template "catalog/_per_page_widget.html.erb" => "per_page_widget"
|
@@ -22,4 +26,14 @@ describe "catalog/_sort_and_per_page" do
|
|
22
26
|
expect(rendered).to match /view_type_group/
|
23
27
|
end
|
24
28
|
|
25
|
-
|
29
|
+
it "should not render the pagination controls with bad limit values" do
|
30
|
+
assign(:response, double("SolrResponse", limit_value: 0))
|
31
|
+
stub_template "catalog/_paginate_compact.html.erb" => "paginate_compact"
|
32
|
+
stub_template "catalog/_sort_widget.html.erb" => "sort_widget"
|
33
|
+
stub_template "catalog/_per_page_widget.html.erb" => "per_page_widget"
|
34
|
+
stub_template "catalog/_view_type_group.html.erb" => "view_type_group"
|
35
|
+
render
|
36
|
+
expect(rendered).not_to match /paginate_compact/
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
data/tasks/blacklight.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.
|
1
|
+
ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.2.zip"
|
2
2
|
|
3
3
|
require 'jettywrapper'
|
4
4
|
require 'engine_cart/rake_task'
|
@@ -40,4 +40,28 @@ namespace :blacklight do
|
|
40
40
|
desc "Create the test rails app"
|
41
41
|
task :generate => ['engine_cart:generate'] do
|
42
42
|
end
|
43
|
+
|
44
|
+
task :server do
|
45
|
+
if File.exists? 'spec/internal'
|
46
|
+
within_test_app do
|
47
|
+
system "bundle update"
|
48
|
+
end
|
49
|
+
else
|
50
|
+
Rake::Task['engine_cart:generate'].invoke
|
51
|
+
end
|
52
|
+
|
53
|
+
unless File.exists? 'jetty'
|
54
|
+
Rake::Task['jetty:clean'].invoke
|
55
|
+
end
|
56
|
+
|
57
|
+
jetty_params = Jettywrapper.load_config
|
58
|
+
jetty_params[:startup_wait]= 60
|
59
|
+
|
60
|
+
Jettywrapper.wrap(jetty_params) do
|
61
|
+
within_test_app do
|
62
|
+
system "rake solr:marc:index_test_data"
|
63
|
+
system "bundle exec rails s"
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
43
67
|
end
|
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.8.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: 2014-
|
20
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -288,16 +288,19 @@ files:
|
|
288
288
|
- app/controllers/search_history_controller.rb
|
289
289
|
- app/helpers/blacklight/blacklight_helper_behavior.rb
|
290
290
|
- app/helpers/blacklight/catalog_helper_behavior.rb
|
291
|
+
- app/helpers/blacklight/component_helper_behavior.rb
|
291
292
|
- app/helpers/blacklight/configuration_helper_behavior.rb
|
292
293
|
- app/helpers/blacklight/facets_helper_behavior.rb
|
293
294
|
- app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb
|
294
295
|
- app/helpers/blacklight/render_constraints_helper_behavior.rb
|
296
|
+
- app/helpers/blacklight/render_partials_helper.rb
|
295
297
|
- app/helpers/blacklight/search_history_constraints_helper_behavior.rb
|
296
298
|
- app/helpers/blacklight/url_helper_behavior.rb
|
297
299
|
- app/helpers/blacklight_configuration_helper.rb
|
298
300
|
- app/helpers/blacklight_helper.rb
|
299
301
|
- app/helpers/blacklight_url_helper.rb
|
300
302
|
- app/helpers/catalog_helper.rb
|
303
|
+
- app/helpers/component_helper.rb
|
301
304
|
- app/helpers/facets_helper.rb
|
302
305
|
- app/helpers/hash_as_hidden_fields_helper.rb
|
303
306
|
- app/helpers/render_constraints_helper.rb
|
@@ -308,6 +311,9 @@ files:
|
|
308
311
|
- app/models/solr_document.rb
|
309
312
|
- app/views/_flash_msg.html.erb
|
310
313
|
- app/views/_user_util_links.html.erb
|
314
|
+
- app/views/blacklight/nav/_bookmark.html.erb
|
315
|
+
- app/views/blacklight/nav/_saved_searches.html.erb
|
316
|
+
- app/views/blacklight/nav/_search_history.html.erb
|
311
317
|
- app/views/bookmarks/_tools.html.erb
|
312
318
|
- app/views/bookmarks/index.html.erb
|
313
319
|
- app/views/catalog/_bookmark_control.html.erb
|
@@ -316,6 +322,7 @@ files:
|
|
316
322
|
- app/views/catalog/_constraints_element.html.erb
|
317
323
|
- app/views/catalog/_did_you_mean.html.erb
|
318
324
|
- app/views/catalog/_document.html.erb
|
325
|
+
- app/views/catalog/_document_action.html.erb
|
319
326
|
- app/views/catalog/_document_list.html.erb
|
320
327
|
- app/views/catalog/_email_form.html.erb
|
321
328
|
- app/views/catalog/_facet_layout.html.erb
|
@@ -353,6 +360,7 @@ files:
|
|
353
360
|
- app/views/catalog/citation.js.erb
|
354
361
|
- app/views/catalog/email.html.erb
|
355
362
|
- app/views/catalog/email_sent.html.erb
|
363
|
+
- app/views/catalog/email_success.html.erb
|
356
364
|
- app/views/catalog/facet.html.erb
|
357
365
|
- app/views/catalog/index.atom.builder
|
358
366
|
- app/views/catalog/index.html.erb
|
@@ -364,6 +372,7 @@ files:
|
|
364
372
|
- app/views/catalog/show.refworks.erb
|
365
373
|
- app/views/catalog/sms.html.erb
|
366
374
|
- app/views/catalog/sms_sent.html.erb
|
375
|
+
- app/views/catalog/sms_success.html.erb
|
367
376
|
- app/views/kaminari/blacklight/_first_page.html.erb
|
368
377
|
- app/views/kaminari/blacklight/_gap.html.erb
|
369
378
|
- app/views/kaminari/blacklight/_last_page.html.erb
|
@@ -395,7 +404,9 @@ files:
|
|
395
404
|
- db/migrate/20140320000000_add_polymorphic_type_to_bookmarks.rb
|
396
405
|
- lib/blacklight.rb
|
397
406
|
- lib/blacklight/base.rb
|
407
|
+
- lib/blacklight/bookmarks.rb
|
398
408
|
- lib/blacklight/catalog.rb
|
409
|
+
- lib/blacklight/catalog/component_configuration.rb
|
399
410
|
- lib/blacklight/catalog/search_context.rb
|
400
411
|
- lib/blacklight/configurable.rb
|
401
412
|
- lib/blacklight/configuration.rb
|
@@ -404,6 +415,7 @@ files:
|
|
404
415
|
- lib/blacklight/configuration/search_field.rb
|
405
416
|
- lib/blacklight/configuration/solr_field.rb
|
406
417
|
- lib/blacklight/configuration/sort_field.rb
|
418
|
+
- lib/blacklight/configuration/tool_config.rb
|
407
419
|
- lib/blacklight/configuration/view_config.rb
|
408
420
|
- lib/blacklight/controller.rb
|
409
421
|
- lib/blacklight/document_presenter.rb
|
@@ -426,6 +438,7 @@ files:
|
|
426
438
|
- lib/blacklight/solr/facet_paginator.rb
|
427
439
|
- lib/blacklight/solr/request.rb
|
428
440
|
- lib/blacklight/solr_helper.rb
|
441
|
+
- lib/blacklight/solr_repository.rb
|
429
442
|
- lib/blacklight/solr_response.rb
|
430
443
|
- lib/blacklight/solr_response/facets.rb
|
431
444
|
- lib/blacklight/solr_response/group.rb
|
@@ -434,6 +447,7 @@ files:
|
|
434
447
|
- lib/blacklight/solr_response/pagination_methods.rb
|
435
448
|
- lib/blacklight/solr_response/response.rb
|
436
449
|
- lib/blacklight/solr_response/spelling.rb
|
450
|
+
- lib/blacklight/token_based_user.rb
|
437
451
|
- lib/blacklight/user.rb
|
438
452
|
- lib/blacklight/utils.rb
|
439
453
|
- lib/blacklight/version.rb
|
@@ -451,6 +465,7 @@ files:
|
|
451
465
|
- lib/generators/blacklight/test_support_generator.rb
|
452
466
|
- lib/railties/blacklight.rake
|
453
467
|
- solr/sample_solr_documents.yml
|
468
|
+
- spec/controllers/alternate_controller_spec.rb
|
454
469
|
- spec/controllers/application_controller_spec.rb
|
455
470
|
- spec/controllers/bookmarks_controller_spec.rb
|
456
471
|
- spec/controllers/catalog_controller_spec.rb
|
@@ -478,6 +493,7 @@ files:
|
|
478
493
|
- spec/helpers/render_constraints_helper_spec.rb
|
479
494
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
480
495
|
- spec/helpers/url_helper_spec.rb
|
496
|
+
- spec/lib/blacklight/catalog/component_configuration_spec.rb
|
481
497
|
- spec/lib/blacklight/configurable_spec.rb
|
482
498
|
- spec/lib/blacklight/configuration_spec.rb
|
483
499
|
- spec/lib/blacklight/facet_paginator_spec.rb
|
@@ -490,6 +506,7 @@ files:
|
|
490
506
|
- spec/lib/blacklight/solr/document_spec.rb
|
491
507
|
- spec/lib/blacklight/solr/request_spec.rb
|
492
508
|
- spec/lib/blacklight/solr_helper_spec.rb
|
509
|
+
- spec/lib/blacklight/solr_repository_spec.rb
|
493
510
|
- spec/lib/blacklight/solr_response/facets_spec.rb
|
494
511
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
495
512
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
@@ -524,6 +541,7 @@ files:
|
|
524
541
|
- spec/views/catalog/_search_header.erb_spec.rb
|
525
542
|
- spec/views/catalog/_show_default.erb_spec.rb
|
526
543
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
544
|
+
- spec/views/catalog/_show_tools.html.erb_spec.rb
|
527
545
|
- spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
|
528
546
|
- spec/views/catalog/_thumbnail_default.erb_spec.rb
|
529
547
|
- spec/views/catalog/_view_type_group.html.erb_spec.rb
|
@@ -560,6 +578,7 @@ specification_version: 4
|
|
560
578
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
561
579
|
index.
|
562
580
|
test_files:
|
581
|
+
- spec/controllers/alternate_controller_spec.rb
|
563
582
|
- spec/controllers/application_controller_spec.rb
|
564
583
|
- spec/controllers/bookmarks_controller_spec.rb
|
565
584
|
- spec/controllers/catalog_controller_spec.rb
|
@@ -587,6 +606,7 @@ test_files:
|
|
587
606
|
- spec/helpers/render_constraints_helper_spec.rb
|
588
607
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
589
608
|
- spec/helpers/url_helper_spec.rb
|
609
|
+
- spec/lib/blacklight/catalog/component_configuration_spec.rb
|
590
610
|
- spec/lib/blacklight/configurable_spec.rb
|
591
611
|
- spec/lib/blacklight/configuration_spec.rb
|
592
612
|
- spec/lib/blacklight/facet_paginator_spec.rb
|
@@ -599,6 +619,7 @@ test_files:
|
|
599
619
|
- spec/lib/blacklight/solr/document_spec.rb
|
600
620
|
- spec/lib/blacklight/solr/request_spec.rb
|
601
621
|
- spec/lib/blacklight/solr_helper_spec.rb
|
622
|
+
- spec/lib/blacklight/solr_repository_spec.rb
|
602
623
|
- spec/lib/blacklight/solr_response/facets_spec.rb
|
603
624
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
604
625
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
@@ -633,6 +654,7 @@ test_files:
|
|
633
654
|
- spec/views/catalog/_search_header.erb_spec.rb
|
634
655
|
- spec/views/catalog/_show_default.erb_spec.rb
|
635
656
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
657
|
+
- spec/views/catalog/_show_tools.html.erb_spec.rb
|
636
658
|
- spec/views/catalog/_sort_and_per_page.html.erb_spec.rb
|
637
659
|
- spec/views/catalog/_thumbnail_default.erb_spec.rb
|
638
660
|
- spec/views/catalog/_view_type_group.html.erb_spec.rb
|