blacklight 4.9.0 → 5.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +22 -12
- data/Gemfile +3 -40
- data/LICENSE +1 -2
- data/README.md +1 -2
- data/Rakefile +0 -4
- data/VERSION +1 -1
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/blacklight/ajax_modal.js +190 -0
- data/app/assets/javascripts/blacklight/blacklight.js +7 -17
- data/app/assets/javascripts/blacklight/checkbox_submit.js +1 -1
- data/app/assets/stylesheets/blacklight/{_blacklight_base.scss → _blacklight_base.css.scss} +0 -21
- data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +192 -0
- data/app/assets/stylesheets/blacklight/_facets.css.scss +141 -0
- data/app/assets/stylesheets/blacklight/{_group.scss → _group.css.scss} +1 -1
- data/app/assets/stylesheets/blacklight/_header.css.scss +44 -0
- data/app/assets/stylesheets/blacklight/_layout.css.scss +5 -0
- data/app/assets/stylesheets/blacklight/{_modal.scss → _modal.css.scss} +7 -7
- data/app/assets/stylesheets/blacklight/_search_history.css.scss +20 -0
- data/app/assets/stylesheets/blacklight/{blacklight.scss → blacklight.css.scss} +0 -0
- data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +14 -0
- data/app/controllers/bookmarks_controller.rb +0 -4
- data/app/controllers/feedback_controller.rb +0 -4
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +45 -155
- data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -41
- data/app/helpers/blacklight/facets_helper_behavior.rb +20 -43
- data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +2 -9
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -14
- data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +6 -6
- data/app/views/_flash_msg.html.erb +9 -2
- data/app/views/_user_util_links.html.erb +29 -15
- data/app/views/bookmarks/_tools.html.erb +4 -7
- data/app/views/bookmarks/index.html.erb +3 -2
- data/app/views/catalog/_citation.html.erb +1 -1
- data/app/views/catalog/_constraints.html.erb +1 -1
- data/app/views/catalog/_constraints_element.html.erb +12 -8
- data/app/views/catalog/_did_you_mean.html.erb +2 -2
- data/app/views/catalog/_document_header.html.erb +3 -3
- data/app/views/catalog/_email_form.html.erb +10 -10
- data/app/views/catalog/_facet_layout.html.erb +11 -3
- data/app/views/catalog/_facet_limit.html.erb +7 -7
- data/app/views/catalog/_facet_pagination.html.erb +8 -7
- data/app/views/catalog/_facet_pivot.html.erb +3 -1
- data/app/views/catalog/_facets.html.erb +12 -9
- data/app/views/catalog/_paginate_compact.html.erb +1 -7
- data/app/views/catalog/_per_page_widget.html.erb +5 -8
- data/app/views/catalog/_previous_next_doc.html.erb +11 -9
- data/app/views/catalog/_refworks_form.html.erb +3 -4
- data/app/views/catalog/_results_pagination.html.erb +1 -1
- data/app/views/catalog/_search_form.html.erb +16 -14
- data/app/views/catalog/_show_sidebar.html.erb +7 -9
- data/app/views/catalog/_show_tools.html.erb +13 -7
- data/app/views/catalog/_sms_form.html.erb +8 -8
- data/app/views/catalog/_sort_and_per_page.html.erb +4 -6
- data/app/views/catalog/_sort_widget.html.erb +5 -6
- data/app/views/catalog/email.html.erb +1 -1
- data/app/views/catalog/facet.html.erb +2 -8
- data/app/views/catalog/index.html.erb +11 -6
- data/app/views/catalog/show.html.erb +5 -5
- data/app/views/catalog/sms.html.erb +1 -1
- data/app/views/catalog/sms_sent.html.erb +1 -1
- data/app/views/feedback/complete.html.erb +2 -2
- data/app/views/feedback/show.html.erb +1 -1
- data/app/views/kaminari/blacklight/_paginator.html.erb +1 -1
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +25 -5
- data/app/views/layouts/blacklight.html.erb +23 -23
- data/app/views/saved_searches/index.html.erb +2 -2
- data/app/views/search_history/index.html.erb +5 -7
- data/app/views/shared/_header_navbar.html.erb +23 -23
- data/blacklight.gemspec +10 -13
- data/config/locales/blacklight.en.yml +1 -12
- data/config/locales/blacklight.fr.yml +1 -12
- data/gemfiles/rails3.gemfile +21 -0
- data/gemfiles/rails4.gemfile +20 -0
- data/lib/blacklight.rb +0 -8
- data/lib/blacklight/base.rb +0 -2
- data/lib/blacklight/catalog.rb +6 -32
- data/lib/blacklight/catalog/search_context.rb +8 -48
- data/lib/blacklight/configurable.rb +2 -1
- data/lib/blacklight/configuration.rb +1 -2
- data/lib/blacklight/configuration/facet_field.rb +0 -2
- data/lib/blacklight/engine.rb +3 -3
- data/lib/blacklight/legacy_controller_methods.rb +1 -64
- data/lib/blacklight/rails/routes.rb +17 -0
- data/lib/blacklight/routes.rb +46 -40
- data/lib/blacklight/solr.rb +1 -0
- data/lib/blacklight/solr/document.rb +21 -42
- data/lib/blacklight/solr/facet_paginator.rb +30 -54
- data/lib/blacklight/solr/request.rb +45 -0
- data/lib/blacklight/solr_helper.rb +16 -53
- data/lib/blacklight/solr_response.rb +0 -6
- data/lib/blacklight/user.rb +2 -7
- data/lib/blacklight/utils.rb +1 -9
- data/lib/generators/blacklight/assets_generator.rb +0 -14
- data/lib/generators/blacklight/blacklight_generator.rb +17 -14
- data/lib/generators/blacklight/templates/blacklight.css.scss +3 -0
- data/lib/generators/blacklight/templates/catalog_controller.rb +4 -1
- data/lib/railties/blacklight.rake +3 -1
- data/solr/sample_solr_documents.yml +641 -0
- data/spec/controllers/application_controller_spec.rb +5 -21
- data/spec/controllers/bookmarks_controller_spec.rb +11 -11
- data/spec/controllers/catalog_controller_spec.rb +122 -119
- data/spec/controllers/search_history_controller_spec.rb +8 -8
- data/spec/features/alternate_controller_spec.rb +5 -5
- data/spec/features/facets_spec.rb +9 -0
- data/spec/features/record_view_spec.rb +1 -1
- data/spec/features/search_filters_spec.rb +97 -41
- data/spec/features/search_results_spec.rb +14 -17
- data/spec/features/search_sort_spec.rb +1 -1
- data/spec/helpers/blacklight_helper_spec.rb +170 -285
- data/spec/helpers/catalog_helper_spec.rb +57 -96
- data/spec/helpers/facets_helper_spec.rb +130 -152
- data/spec/helpers/hash_as_hidden_fields_spec.rb +9 -15
- data/spec/helpers/render_constraints_helper_spec.rb +5 -5
- data/spec/helpers/search_history_constraints_helper_spec.rb +21 -21
- data/spec/lib/blacklight/routes_spec.rb +25 -0
- data/spec/lib/blacklight/solr/request_spec.rb +37 -0
- data/spec/lib/blacklight/solr_response/group_response_spec.rb +2 -2
- data/spec/lib/blacklight_configurable_spec.rb +16 -16
- data/spec/lib/blacklight_configuration_spec.rb +132 -132
- data/spec/lib/blacklight_email_spec.rb +4 -4
- data/spec/lib/blacklight_sms_spec.rb +4 -4
- data/spec/lib/blacklight_solr_document_dublin_core_spec.rb +6 -6
- data/spec/lib/blacklight_solr_document_more_like_this_spec.rb +4 -4
- data/spec/lib/blacklight_solr_document_spec.rb +36 -36
- data/spec/lib/blacklight_solr_response_spec.rb +43 -48
- data/spec/lib/blacklight_spec.rb +6 -14
- data/spec/lib/blacklight_user_spec.rb +5 -9
- data/spec/lib/facet_paginator_spec.rb +59 -51
- data/spec/lib/search_fields_spec.rb +13 -13
- data/spec/lib/solr_helper_spec.rb +258 -304
- data/spec/lib/tasks/blacklight_task_spec.rb +1 -1
- data/spec/lib/utils_spec.rb +16 -46
- data/spec/models/bookmark_spec.rb +6 -7
- data/spec/models/record_mailer_spec.rb +16 -16
- data/spec/models/search_spec.rb +8 -8
- data/spec/models/solr_document_spec.rb +6 -77
- data/spec/routing/catalog_routing_spec.rb +16 -10
- data/spec/spec_helper.rb +7 -7
- data/spec/support/assert_difference.rb +2 -2
- data/spec/support/features.rb +0 -11
- data/spec/support/features/session_helpers.rb +3 -3
- data/spec/support/include_text.rb +2 -2
- data/spec/test_app_templates/Gemfile.extra +10 -2
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -18
- data/spec/views/catalog/_constraints_element.html.erb_spec.rb +13 -13
- data/spec/views/catalog/_document.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_document_list.html.erb_spec.rb +1 -1
- data/spec/views/catalog/_facets.html.erb_spec.rb +13 -14
- data/spec/views/catalog/_index_default.erb_spec.rb +21 -21
- data/spec/views/catalog/_search_header.erb_spec.rb +1 -1
- data/spec/views/catalog/_show_default.erb_spec.rb +21 -21
- data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -7
- data/spec/views/catalog/_thumbnail_default.erb_spec.rb +3 -3
- data/spec/views/catalog/index.atom.builder_spec.rb +29 -29
- data/spec/views/catalog/index.html.erb_spec.rb +6 -7
- data/tasks/blacklight.rake +8 -2
- metadata +84 -180
- data/app/assets/javascripts/blacklight/css_dropdowns.js +0 -10
- data/app/assets/javascripts/blacklight/facet_expand_contract.js +0 -41
- data/app/assets/javascripts/blacklight/lightbox_dialog.js +0 -70
- data/app/assets/javascripts/blacklight/select_submit.js +0 -27
- data/app/assets/javascripts/blacklight/zebra_stripe.js +0 -13
- data/app/assets/javascripts/improved-modal/bootstrap-modal.js +0 -355
- data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +0 -370
- data/app/assets/stylesheets/blacklight/_bookmark.scss +0 -33
- data/app/assets/stylesheets/blacklight/_catalog.scss +0 -255
- data/app/assets/stylesheets/blacklight/_dropdown.scss +0 -57
- data/app/assets/stylesheets/blacklight/_facets.scss +0 -197
- data/app/assets/stylesheets/blacklight/_footer.scss +0 -0
- data/app/assets/stylesheets/blacklight/_header.scss +0 -53
- data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
- data/app/assets/stylesheets/blacklight/_mixins.scss +0 -0
- data/app/assets/stylesheets/blacklight/_print.scss +0 -0
- data/app/assets/stylesheets/blacklight/_responsive.scss +0 -3
- data/app/assets/stylesheets/blacklight/_search_history.scss +0 -42
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -49
- data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss +0 -5
- data/app/assets/stylesheets/blacklight/responsive_partials/_facets.scss +0 -37
- data/app/assets/stylesheets/blacklight/responsive_partials/_header.scss +0 -30
- data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
- data/app/helpers/blacklight/html_head_helper_behavior.rb +0 -118
- data/app/helpers/html_head_helper.rb +0 -3
- data/app/views/catalog/_bookmark_form.html.erb +0 -7
- data/app/views/catalog/_marc_view.html.erb +0 -32
- data/app/views/catalog/librarian_view.html.erb +0 -10
- data/config/routes.rb +0 -17
- data/doc/Atom-Responses.md +0 -90
- data/doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md +0 -107
- data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +0 -191
- data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +0 -37
- data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +0 -27
- data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +0 -44
- data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +0 -25
- data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +0 -80
- data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
- data/doc/Blacklight-4.0-release-notes-and-upgrade-guide.md +0 -135
- data/doc/Blacklight-4.1-release-notes-and-upgrade-guide.md +0 -17
- data/doc/Blacklight-4.2-release-notes-and-upgrade-guide.md +0 -25
- data/doc/Blacklight-4.3-release-notes-and-upgrade-guide.md +0 -21
- data/doc/Blacklight-4.4-release-notes-and-upgrade-guide.md +0 -41
- data/doc/Blacklight-Add-ons.md +0 -28
- data/doc/Blacklight-configuration.md +0 -411
- data/doc/Blacklight-on-Heroku.md +0 -135
- data/doc/Code4Lib-2014.md +0 -48
- data/doc/Community-principles.md +0 -44
- data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
- data/doc/Configuring-rails-routes.md +0 -13
- data/doc/Contributing-to-Blacklight.md +0 -25
- data/doc/Examples.md +0 -94
- data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
- data/doc/FAQs.md +0 -1
- data/doc/Home.md +0 -80
- data/doc/How-to-release-a-version.md +0 -29
- data/doc/Indexing-your-data-into-solr.md +0 -32
- data/doc/Integration-with-Rails-Footnotes.md +0 -20
- data/doc/Internationalization.md +0 -32
- data/doc/JSON-API.md +0 -17
- data/doc/Pagination.md +0 -51
- data/doc/Providing-your-own-view-templates.md +0 -109
- data/doc/Quickstart.md +0 -115
- data/doc/README_SOLR.md +0 -245
- data/doc/Release-Notes-And-Upgrade-Guides.md +0 -20
- data/doc/Roadmap.md +0 -43
- data/doc/Sunspot-for-indexing.md +0 -46
- data/doc/Theming.md +0 -64
- data/doc/User-Authentication.md +0 -60
- data/doc/testing.md +0 -57
- data/lib/SolrMarc.jar +0 -0
- data/lib/blacklight/mash.rb +0 -19
- data/lib/blacklight/solr/document/marc.rb +0 -71
- data/lib/blacklight/solr/document/marc_export.rb +0 -590
- data/lib/generators/blacklight/marc_generator.rb +0 -66
- data/lib/generators/blacklight/templates/blacklight.scss +0 -4
- data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +0 -37
- data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +0 -37
- data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +0 -97
- data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
- data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +0 -1
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +0 -379
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +0 -50
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
- data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +0 -490
- data/lib/railties/solr_marc.rake +0 -162
- data/spec/data/test_data.utf8.mrc +0 -1
- data/spec/features/librarian_view_spec.rb +0 -13
- data/spec/helpers/html_head_helper_spec.rb +0 -164
- data/spec/lib/blacklight_solr_document_marc_spec.rb +0 -89
- data/spec/lib/marc_export_spec.rb +0 -746
- data/spec/lib/tasks/solr_marc_task_spec.rb +0 -60
- data/spec/requests/alternate_controller_spec.rb +0 -16
- data/spec/routing/routes_spec.rb +0 -20
- data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
- data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -49
- data/test_support/data/test_data.utf8.mrc +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
require
|
2
|
+
require 'spec_helper'
|
3
3
|
|
4
4
|
# spec for sidebar partial in catalog show view
|
5
5
|
|
@@ -11,16 +11,16 @@ describe "/catalog/_show_sidebar.html.erb" do
|
|
11
11
|
|
12
12
|
before(:each) do
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
view.stub(:blacklight_config).and_return(CatalogController.blacklight_config)
|
15
|
+
view.stub(:has_user_authentication_provider?).and_return(false)
|
16
|
+
view.stub(:current_search_session).and_return nil
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should show more-like-this titles in the sidebar" do
|
20
20
|
@document = SolrDocument.new :id => 1, :title_s => 'abc', :format => 'default'
|
21
|
-
|
21
|
+
@document.stub(:more_like_this).and_return([SolrDocument.new({ 'id' => '2', 'title_display' => 'Title of MLT Document' })])
|
22
22
|
render
|
23
|
-
|
24
|
-
|
23
|
+
rendered.should include_text("More Like This")
|
24
|
+
rendered.should include_text("Title of MLT Document")
|
25
25
|
end
|
26
26
|
end
|
@@ -18,9 +18,9 @@ describe "catalog/_thumbnail_default" do
|
|
18
18
|
|
19
19
|
before do
|
20
20
|
assign :response, double(:params => {})
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
view.stub(:render_grouped_response?).and_return false
|
22
|
+
view.stub(:blacklight_config).and_return(blacklight_config)
|
23
|
+
view.stub(:current_search_session).and_return nil
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should render the thumbnail if the document has one" do
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
require
|
2
|
+
require 'spec_helper'
|
3
3
|
|
4
4
|
describe "catalog/index" do
|
5
5
|
|
@@ -30,8 +30,8 @@ describe "catalog/index" do
|
|
30
30
|
# but okay.
|
31
31
|
|
32
32
|
params.merge!( @params )
|
33
|
-
|
34
|
-
|
33
|
+
view.stub(:blacklight_config).and_return(@config)
|
34
|
+
view.stub(:search_field_options_for_select).and_return([])
|
35
35
|
|
36
36
|
render :template => 'catalog/index', :formats => [:atom]
|
37
37
|
|
@@ -41,51 +41,51 @@ describe "catalog/index" do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it "should have contextual information" do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
rendered.should have_selector("link[rel=self]")
|
45
|
+
rendered.should have_selector("link[rel=next]")
|
46
|
+
rendered.should have_selector("link[rel=previous]")
|
47
|
+
rendered.should have_selector("link[rel=first]")
|
48
|
+
rendered.should have_selector("link[rel=last]")
|
49
|
+
rendered.should have_selector("link[rel='alternate'][type='text/html']")
|
50
|
+
rendered.should have_selector("link[rel=search][type='application/opensearchdescription+xml']")
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should get paging data correctly from response" do
|
54
54
|
# Can't use have_tag for namespaced elements, sorry.
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
@response_xml.elements["/feed/opensearch:totalResults"].text.should == "30"
|
56
|
+
@response_xml.elements["/feed/opensearch:startIndex"].text.should == "10"
|
57
|
+
@response_xml.elements["/feed/opensearch:itemsPerPage"].text.should == "10"
|
58
58
|
end
|
59
59
|
|
60
60
|
it "should include an opensearch Query role=request" do
|
61
61
|
|
62
|
-
|
62
|
+
@response_xml.elements.to_a("/feed/opensearch:itemsPerPage").length.should == 1
|
63
63
|
query_el = @response_xml.elements["/feed/opensearch:Query"]
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
64
|
+
query_el.should_not be_nil
|
65
|
+
query_el.attributes["role"].should == "request"
|
66
|
+
query_el.attributes["searchTerms"].should == ""
|
67
|
+
query_el.attributes["startPage"].should == "2"
|
68
68
|
end
|
69
69
|
|
70
70
|
it "should have ten entries" do
|
71
|
-
|
71
|
+
rendered.should have_selector("entry", :count => 10)
|
72
72
|
end
|
73
73
|
|
74
74
|
describe "entries" do
|
75
75
|
it "should have a title" do
|
76
|
-
|
76
|
+
rendered.should have_selector("entry > title")
|
77
77
|
end
|
78
78
|
it "should have an updated" do
|
79
|
-
|
79
|
+
rendered.should have_selector("entry > updated")
|
80
80
|
end
|
81
81
|
it "should have html link" do
|
82
|
-
|
82
|
+
rendered.should have_selector("entry > link[rel=alternate][type='text/html']")
|
83
83
|
end
|
84
84
|
it "should have an id" do
|
85
|
-
|
85
|
+
rendered.should have_selector("entry > id")
|
86
86
|
end
|
87
87
|
it "should have a summary" do
|
88
|
-
|
88
|
+
rendered.should have_selector("entry > summary")
|
89
89
|
end
|
90
90
|
|
91
91
|
describe "with an author" do
|
@@ -93,7 +93,7 @@ describe "catalog/index" do
|
|
93
93
|
@entry = @response_xml.elements.to_a("/feed/entry")[0]
|
94
94
|
end
|
95
95
|
it "should have author tag" do
|
96
|
-
|
96
|
+
@entry.elements["author/name"].should_not be_nil
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
@@ -102,7 +102,7 @@ describe "catalog/index" do
|
|
102
102
|
@entry = @response_xml.elements.to_a("/feed/entry")[1]
|
103
103
|
end
|
104
104
|
it "should not have an author tag" do
|
105
|
-
|
105
|
+
@entry.elements["author/name"].should be_nil
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
@@ -113,10 +113,10 @@ describe "catalog/index" do
|
|
113
113
|
@entry = @response_xml.elements.to_a("/feed/entry")[0]
|
114
114
|
end
|
115
115
|
it "should include a link rel tag" do
|
116
|
-
|
116
|
+
@entry.to_s.should have_selector("link[rel=alternate][type='application/marc']")
|
117
117
|
end
|
118
118
|
it "should have content embedded" do
|
119
|
-
|
119
|
+
@entry.to_s.should have_selector("content")
|
120
120
|
end
|
121
121
|
end
|
122
122
|
describe "for an entry with NO content available" do
|
@@ -124,7 +124,7 @@ describe "catalog/index" do
|
|
124
124
|
@entry = @response_xml.elements.to_a("/feed/entry")[5]
|
125
125
|
end
|
126
126
|
it "should include content" do
|
127
|
-
|
127
|
+
@entry.to_s.should_not have_selector("content[type='application/marc']")
|
128
128
|
end
|
129
129
|
end
|
130
130
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe "catalog/index.html.erb" do
|
4
4
|
it "should render the sidebar and content panes" do
|
5
|
-
|
5
|
+
view.stub(:blacklight_config).and_return(Blacklight::Configuration.new)
|
6
6
|
render
|
7
7
|
expect(rendered).to match /id="sidebar"/
|
8
8
|
expect(rendered).to match /id="content"/
|
@@ -11,7 +11,7 @@ describe "catalog/index.html.erb" do
|
|
11
11
|
it "should render the search_sidebar partial " do
|
12
12
|
stub_template "catalog/_search_sidebar.html.erb" => "sidebar_content"
|
13
13
|
|
14
|
-
|
14
|
+
view.stub(:blacklight_config).and_return(Blacklight::Configuration.new)
|
15
15
|
render
|
16
16
|
expect(rendered).to match /sidebar_content/
|
17
17
|
end
|
@@ -20,11 +20,10 @@ describe "catalog/index.html.erb" do
|
|
20
20
|
stub_template "catalog/_results_pagination.html.erb" => ""
|
21
21
|
stub_template "catalog/_search_header.html.erb" => "header_content"
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
assign(:response, double(:empty? => true))
|
23
|
+
view.stub(:blacklight_config).and_return(Blacklight::Configuration.new)
|
24
|
+
view.stub(:has_search_parameters?).and_return(true)
|
25
|
+
view.stub(:render_opensearch_response_metadata).and_return("")
|
26
|
+
view.stub(:response_has_no_search_results?).and_return(true)
|
28
27
|
render
|
29
28
|
expect(rendered).to match /header_content/
|
30
29
|
end
|
data/tasks/blacklight.rake
CHANGED
@@ -3,7 +3,13 @@ ZIP_URL = "https://github.com/projectblacklight/blacklight-jetty/archive/v4.0.0.
|
|
3
3
|
require 'jettywrapper'
|
4
4
|
require 'engine_cart/rake_task'
|
5
5
|
|
6
|
-
|
6
|
+
require 'rspec/core/rake_task'
|
7
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
8
|
+
t.pattern = 'spec/**/*_spec.rb'
|
9
|
+
end
|
10
|
+
|
11
|
+
desc "Run test suite"
|
12
|
+
task :ci => 'blacklight:clean' do
|
7
13
|
ENV['environment'] = "test"
|
8
14
|
jetty_params = Jettywrapper.load_config
|
9
15
|
jetty_params[:startup_wait]= 60
|
@@ -32,7 +38,7 @@ namespace :blacklight do
|
|
32
38
|
end
|
33
39
|
|
34
40
|
desc "Clean out the test rails app"
|
35
|
-
task :clean => ['engine_cart:clean'] do
|
41
|
+
task :clean => ['engine_cart:clean', 'jetty:clean'] do
|
36
42
|
end
|
37
43
|
|
38
44
|
desc "Create the test rails app"
|
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:
|
4
|
+
version: 5.0.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,186 +17,180 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
|
-
date:
|
20
|
+
date: 2014-01-10 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
24
24
|
requirement: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 3.2.6
|
29
|
+
- - <
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '5'
|
29
32
|
type: :runtime
|
30
33
|
prerelease: false
|
31
34
|
version_requirements: !ruby/object:Gem::Requirement
|
32
35
|
requirements:
|
33
|
-
- -
|
36
|
+
- - '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 3.2.6
|
39
|
+
- - <
|
34
40
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
41
|
+
version: '5'
|
36
42
|
- !ruby/object:Gem::Dependency
|
37
43
|
name: nokogiri
|
38
44
|
requirement: !ruby/object:Gem::Requirement
|
39
45
|
requirements:
|
40
|
-
- -
|
46
|
+
- - ~>
|
41
47
|
- !ruby/object:Gem::Version
|
42
48
|
version: '1.6'
|
43
49
|
type: :runtime
|
44
50
|
prerelease: false
|
45
51
|
version_requirements: !ruby/object:Gem::Requirement
|
46
52
|
requirements:
|
47
|
-
- -
|
53
|
+
- - ~>
|
48
54
|
- !ruby/object:Gem::Version
|
49
55
|
version: '1.6'
|
50
56
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
57
|
+
name: kaminari
|
52
58
|
requirement: !ruby/object:Gem::Requirement
|
53
59
|
requirements:
|
54
|
-
- -
|
60
|
+
- - ~>
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
57
|
-
- - "<"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '1.1'
|
62
|
+
version: '0.13'
|
60
63
|
type: :runtime
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.4.3
|
67
|
-
- - "<"
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0.13'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rsolr
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.0.6
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.6
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: sass-rails
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - '>='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0
|
90
|
+
version: '0'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0
|
97
|
+
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: bootstrap-sass
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ~>
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
-
- - "<"
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: '2.4'
|
104
|
+
version: '3.0'
|
108
105
|
type: :runtime
|
109
106
|
prerelease: false
|
110
107
|
version_requirements: !ruby/object:Gem::Requirement
|
111
108
|
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 2.2.0
|
115
|
-
- - "<"
|
109
|
+
- - ~>
|
116
110
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
111
|
+
version: '3.0'
|
118
112
|
- !ruby/object:Gem::Dependency
|
119
113
|
name: deprecation
|
120
114
|
requirement: !ruby/object:Gem::Requirement
|
121
115
|
requirements:
|
122
|
-
- -
|
116
|
+
- - '>='
|
123
117
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
118
|
+
version: '0'
|
125
119
|
type: :runtime
|
126
120
|
prerelease: false
|
127
121
|
version_requirements: !ruby/object:Gem::Requirement
|
128
122
|
requirements:
|
129
|
-
- -
|
123
|
+
- - '>='
|
130
124
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0
|
125
|
+
version: '0'
|
132
126
|
- !ruby/object:Gem::Dependency
|
133
127
|
name: jettywrapper
|
134
128
|
requirement: !ruby/object:Gem::Requirement
|
135
129
|
requirements:
|
136
|
-
- -
|
130
|
+
- - '>='
|
137
131
|
- !ruby/object:Gem::Version
|
138
132
|
version: 1.4.1
|
139
133
|
type: :development
|
140
134
|
prerelease: false
|
141
135
|
version_requirements: !ruby/object:Gem::Requirement
|
142
136
|
requirements:
|
143
|
-
- -
|
137
|
+
- - '>='
|
144
138
|
- !ruby/object:Gem::Version
|
145
139
|
version: 1.4.1
|
146
140
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
141
|
+
name: blacklight_marc
|
148
142
|
requirement: !ruby/object:Gem::Requirement
|
149
143
|
requirements:
|
150
|
-
- -
|
144
|
+
- - '='
|
151
145
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
146
|
+
version: 0.0.6
|
153
147
|
type: :development
|
154
148
|
prerelease: false
|
155
149
|
version_requirements: !ruby/object:Gem::Requirement
|
156
150
|
requirements:
|
157
|
-
- -
|
151
|
+
- - '='
|
158
152
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
153
|
+
version: 0.0.6
|
160
154
|
- !ruby/object:Gem::Dependency
|
161
|
-
name: rspec-
|
155
|
+
name: rspec-rails
|
162
156
|
requirement: !ruby/object:Gem::Requirement
|
163
157
|
requirements:
|
164
|
-
- -
|
158
|
+
- - '>='
|
165
159
|
- !ruby/object:Gem::Version
|
166
160
|
version: '0'
|
167
161
|
type: :development
|
168
162
|
prerelease: false
|
169
163
|
version_requirements: !ruby/object:Gem::Requirement
|
170
164
|
requirements:
|
171
|
-
- -
|
165
|
+
- - '>='
|
172
166
|
- !ruby/object:Gem::Version
|
173
167
|
version: '0'
|
174
168
|
- !ruby/object:Gem::Dependency
|
175
169
|
name: engine_cart
|
176
170
|
requirement: !ruby/object:Gem::Requirement
|
177
171
|
requirements:
|
178
|
-
- -
|
172
|
+
- - '>='
|
179
173
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
174
|
+
version: 0.1.0
|
181
175
|
type: :development
|
182
176
|
prerelease: false
|
183
177
|
version_requirements: !ruby/object:Gem::Requirement
|
184
178
|
requirements:
|
185
|
-
- -
|
179
|
+
- - '>='
|
186
180
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
181
|
+
version: 0.1.0
|
188
182
|
- !ruby/object:Gem::Dependency
|
189
183
|
name: equivalent-xml
|
190
184
|
requirement: !ruby/object:Gem::Requirement
|
191
185
|
requirements:
|
192
|
-
- -
|
186
|
+
- - '>='
|
193
187
|
- !ruby/object:Gem::Version
|
194
188
|
version: '0'
|
195
189
|
type: :development
|
196
190
|
prerelease: false
|
197
191
|
version_requirements: !ruby/object:Gem::Requirement
|
198
192
|
requirements:
|
199
|
-
- -
|
193
|
+
- - '>='
|
200
194
|
- !ruby/object:Gem::Version
|
201
195
|
version: '0'
|
202
196
|
description: Blacklight is an open source Solr user interface discovery platform.
|
@@ -208,11 +202,11 @@ executables: []
|
|
208
202
|
extensions: []
|
209
203
|
extra_rdoc_files: []
|
210
204
|
files:
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
205
|
+
- .gitignore
|
206
|
+
- .gitmodules
|
207
|
+
- .rspec
|
208
|
+
- .travis.yml
|
209
|
+
- .yardopts
|
216
210
|
- Gemfile
|
217
211
|
- LICENSE
|
218
212
|
- README.md
|
@@ -228,39 +222,24 @@ files:
|
|
228
222
|
- app/assets/images/blacklight/separator.gif
|
229
223
|
- app/assets/images/blacklight/start_over.gif
|
230
224
|
- app/assets/images/favicon.ico
|
225
|
+
- app/assets/javascripts/blacklight/ajax_modal.js
|
231
226
|
- app/assets/javascripts/blacklight/autofocus.js
|
232
227
|
- app/assets/javascripts/blacklight/blacklight.js
|
233
228
|
- app/assets/javascripts/blacklight/bookmark_toggle.js
|
234
229
|
- app/assets/javascripts/blacklight/checkbox_submit.js
|
235
230
|
- app/assets/javascripts/blacklight/core.js
|
236
|
-
- app/assets/javascripts/blacklight/css_dropdowns.js
|
237
|
-
- app/assets/javascripts/blacklight/facet_expand_contract.js
|
238
|
-
- app/assets/javascripts/blacklight/lightbox_dialog.js
|
239
231
|
- app/assets/javascripts/blacklight/search_context.js
|
240
|
-
- app/assets/
|
241
|
-
- app/assets/
|
242
|
-
- app/assets/
|
243
|
-
- app/assets/
|
244
|
-
- app/assets/stylesheets/blacklight/
|
245
|
-
- app/assets/stylesheets/blacklight/
|
246
|
-
- app/assets/stylesheets/blacklight/
|
247
|
-
- app/assets/stylesheets/blacklight/
|
248
|
-
- app/assets/stylesheets/blacklight/
|
249
|
-
- app/assets/stylesheets/blacklight/
|
250
|
-
- app/assets/stylesheets/blacklight/
|
251
|
-
- app/assets/stylesheets/blacklight/_header.scss
|
252
|
-
- app/assets/stylesheets/blacklight/_layout.scss
|
253
|
-
- app/assets/stylesheets/blacklight/_mixins.scss
|
254
|
-
- app/assets/stylesheets/blacklight/_modal.scss
|
255
|
-
- app/assets/stylesheets/blacklight/_print.scss
|
256
|
-
- app/assets/stylesheets/blacklight/_responsive.scss
|
257
|
-
- app/assets/stylesheets/blacklight/_search_history.scss
|
258
|
-
- app/assets/stylesheets/blacklight/blacklight.scss
|
259
|
-
- app/assets/stylesheets/blacklight/blacklight_defaults.scss
|
260
|
-
- app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss
|
261
|
-
- app/assets/stylesheets/blacklight/responsive_partials/_facets.scss
|
262
|
-
- app/assets/stylesheets/blacklight/responsive_partials/_header.scss
|
263
|
-
- app/assets/stylesheets/improved-modal/bootstrap-modal.css
|
232
|
+
- app/assets/stylesheets/blacklight/_blacklight_base.css.scss
|
233
|
+
- app/assets/stylesheets/blacklight/_bookmark.css.scss
|
234
|
+
- app/assets/stylesheets/blacklight/_catalog.css.scss
|
235
|
+
- app/assets/stylesheets/blacklight/_facets.css.scss
|
236
|
+
- app/assets/stylesheets/blacklight/_group.css.scss
|
237
|
+
- app/assets/stylesheets/blacklight/_header.css.scss
|
238
|
+
- app/assets/stylesheets/blacklight/_layout.css.scss
|
239
|
+
- app/assets/stylesheets/blacklight/_modal.css.scss
|
240
|
+
- app/assets/stylesheets/blacklight/_search_history.css.scss
|
241
|
+
- app/assets/stylesheets/blacklight/blacklight.css.scss
|
242
|
+
- app/assets/stylesheets/blacklight/blacklight_defaults.css.scss
|
264
243
|
- app/controllers/bookmarks_controller.rb
|
265
244
|
- app/controllers/catalog_controller.rb
|
266
245
|
- app/controllers/feedback_controller.rb
|
@@ -270,14 +249,12 @@ files:
|
|
270
249
|
- app/helpers/blacklight/catalog_helper_behavior.rb
|
271
250
|
- app/helpers/blacklight/facets_helper_behavior.rb
|
272
251
|
- app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb
|
273
|
-
- app/helpers/blacklight/html_head_helper_behavior.rb
|
274
252
|
- app/helpers/blacklight/render_constraints_helper_behavior.rb
|
275
253
|
- app/helpers/blacklight/search_history_constraints_helper_behavior.rb
|
276
254
|
- app/helpers/blacklight_helper.rb
|
277
255
|
- app/helpers/catalog_helper.rb
|
278
256
|
- app/helpers/facets_helper.rb
|
279
257
|
- app/helpers/hash_as_hidden_fields_helper.rb
|
280
|
-
- app/helpers/html_head_helper.rb
|
281
258
|
- app/helpers/render_constraints_helper.rb
|
282
259
|
- app/helpers/search_history_constraints_helper.rb
|
283
260
|
- app/models/bookmark.rb
|
@@ -288,7 +265,6 @@ files:
|
|
288
265
|
- app/views/bookmarks/_tools.html.erb
|
289
266
|
- app/views/bookmarks/index.html.erb
|
290
267
|
- app/views/catalog/_bookmark_control.html.erb
|
291
|
-
- app/views/catalog/_bookmark_form.html.erb
|
292
268
|
- app/views/catalog/_citation.html.erb
|
293
269
|
- app/views/catalog/_constraints.html.erb
|
294
270
|
- app/views/catalog/_constraints_element.html.erb
|
@@ -306,7 +282,6 @@ files:
|
|
306
282
|
- app/views/catalog/_home.html.erb
|
307
283
|
- app/views/catalog/_home_text.html.erb
|
308
284
|
- app/views/catalog/_index_default.html.erb
|
309
|
-
- app/views/catalog/_marc_view.html.erb
|
310
285
|
- app/views/catalog/_opensearch_response_metadata.html.erb
|
311
286
|
- app/views/catalog/_paginate_compact.html.erb
|
312
287
|
- app/views/catalog/_per_page_widget.html.erb
|
@@ -334,7 +309,6 @@ files:
|
|
334
309
|
- app/views/catalog/index.atom.builder
|
335
310
|
- app/views/catalog/index.html.erb
|
336
311
|
- app/views/catalog/index.rss.builder
|
337
|
-
- app/views/catalog/librarian_view.html.erb
|
338
312
|
- app/views/catalog/opensearch.json.erb
|
339
313
|
- app/views/catalog/opensearch.xml.builder
|
340
314
|
- app/views/catalog/send_email_record.erb
|
@@ -366,49 +340,8 @@ files:
|
|
366
340
|
- config/jetty.yml
|
367
341
|
- config/locales/blacklight.en.yml
|
368
342
|
- config/locales/blacklight.fr.yml
|
369
|
-
-
|
370
|
-
-
|
371
|
-
- doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md
|
372
|
-
- doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md
|
373
|
-
- doc/Blacklight-3.3-release-notes-and-upgrade-guide.md
|
374
|
-
- doc/Blacklight-3.4-release-notes-and-upgrade-guide.md
|
375
|
-
- doc/Blacklight-3.5-release-notes-and-upgrade-guide.md
|
376
|
-
- doc/Blacklight-3.6-release-notes-and-upgrade-guide.md
|
377
|
-
- doc/Blacklight-3.7-release-notes-and-upgrade-guide.md
|
378
|
-
- doc/Blacklight-3.8-release-notes-and-upgrade-guide.md
|
379
|
-
- doc/Blacklight-4.0-release-notes-and-upgrade-guide.md
|
380
|
-
- doc/Blacklight-4.1-release-notes-and-upgrade-guide.md
|
381
|
-
- doc/Blacklight-4.2-release-notes-and-upgrade-guide.md
|
382
|
-
- doc/Blacklight-4.3-release-notes-and-upgrade-guide.md
|
383
|
-
- doc/Blacklight-4.4-release-notes-and-upgrade-guide.md
|
384
|
-
- doc/Blacklight-Add-ons.md
|
385
|
-
- doc/Blacklight-configuration.md
|
386
|
-
- doc/Blacklight-on-Heroku.md
|
387
|
-
- doc/Code4Lib-2014.md
|
388
|
-
- doc/Community-principles.md
|
389
|
-
- doc/Configuring-and-Customizing-Blacklight.md
|
390
|
-
- doc/Configuring-rails-routes.md
|
391
|
-
- doc/Contributing-to-Blacklight.md
|
392
|
-
- doc/Examples.md
|
393
|
-
- doc/Extending-or-Modifying-Blacklight-Search-Behavior.md
|
394
|
-
- doc/FAQs.md
|
395
|
-
- doc/Home.md
|
396
|
-
- doc/How-to-release-a-version.md
|
397
|
-
- doc/Indexing-your-data-into-solr.md
|
398
|
-
- doc/Integration-with-Rails-Footnotes.md
|
399
|
-
- doc/Internationalization.md
|
400
|
-
- doc/JSON-API.md
|
401
|
-
- doc/Pagination.md
|
402
|
-
- doc/Providing-your-own-view-templates.md
|
403
|
-
- doc/Quickstart.md
|
404
|
-
- doc/README_SOLR.md
|
405
|
-
- doc/Release-Notes-And-Upgrade-Guides.md
|
406
|
-
- doc/Roadmap.md
|
407
|
-
- doc/Sunspot-for-indexing.md
|
408
|
-
- doc/Theming.md
|
409
|
-
- doc/User-Authentication.md
|
410
|
-
- doc/testing.md
|
411
|
-
- lib/SolrMarc.jar
|
343
|
+
- gemfiles/rails3.gemfile
|
344
|
+
- gemfiles/rails4.gemfile
|
412
345
|
- lib/blacklight.rb
|
413
346
|
- lib/blacklight/base.rb
|
414
347
|
- lib/blacklight/catalog.rb
|
@@ -425,7 +358,7 @@ files:
|
|
425
358
|
- lib/blacklight/exceptions.rb
|
426
359
|
- lib/blacklight/facet.rb
|
427
360
|
- lib/blacklight/legacy_controller_methods.rb
|
428
|
-
- lib/blacklight/
|
361
|
+
- lib/blacklight/rails/routes.rb
|
429
362
|
- lib/blacklight/routes.rb
|
430
363
|
- lib/blacklight/search_fields.rb
|
431
364
|
- lib/blacklight/solr.rb
|
@@ -434,11 +367,10 @@ files:
|
|
434
367
|
- lib/blacklight/solr/document/email.rb
|
435
368
|
- lib/blacklight/solr/document/export.rb
|
436
369
|
- lib/blacklight/solr/document/extensions.rb
|
437
|
-
- lib/blacklight/solr/document/marc.rb
|
438
|
-
- lib/blacklight/solr/document/marc_export.rb
|
439
370
|
- lib/blacklight/solr/document/more_like_this.rb
|
440
371
|
- lib/blacklight/solr/document/sms.rb
|
441
372
|
- lib/blacklight/solr/facet_paginator.rb
|
373
|
+
- lib/blacklight/solr/request.rb
|
442
374
|
- lib/blacklight/solr_helper.rb
|
443
375
|
- lib/blacklight/solr_response.rb
|
444
376
|
- lib/blacklight/solr_response/facets.rb
|
@@ -453,23 +385,10 @@ files:
|
|
453
385
|
- lib/generators/blacklight/assets_generator.rb
|
454
386
|
- lib/generators/blacklight/blacklight_generator.rb
|
455
387
|
- lib/generators/blacklight/jetty_generator.rb
|
456
|
-
- lib/generators/blacklight/marc_generator.rb
|
457
388
|
- lib/generators/blacklight/models_generator.rb
|
458
389
|
- lib/generators/blacklight/templates/alternate_controller.rb
|
459
|
-
- lib/generators/blacklight/templates/blacklight.scss
|
390
|
+
- lib/generators/blacklight/templates/blacklight.css.scss
|
460
391
|
- lib/generators/blacklight/templates/catalog_controller.rb
|
461
|
-
- lib/generators/blacklight/templates/config/SolrMarc/config-test.properties
|
462
|
-
- lib/generators/blacklight/templates/config/SolrMarc/config.properties
|
463
|
-
- lib/generators/blacklight/templates/config/SolrMarc/index.properties
|
464
|
-
- lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh
|
465
|
-
- lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh
|
466
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS
|
467
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties
|
468
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties
|
469
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties
|
470
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties
|
471
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties
|
472
|
-
- lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties
|
473
392
|
- lib/generators/blacklight/templates/config/jetty.yml
|
474
393
|
- lib/generators/blacklight/templates/config/solr.yml
|
475
394
|
- lib/generators/blacklight/templates/migrations/add_user_types_to_bookmarks_searches.rb
|
@@ -481,18 +400,17 @@ files:
|
|
481
400
|
- lib/railties/all_tests.rake
|
482
401
|
- lib/railties/blacklight.rake
|
483
402
|
- lib/railties/blacklight_rspec.rake
|
484
|
-
-
|
403
|
+
- solr/sample_solr_documents.yml
|
485
404
|
- spec/controllers/application_controller_spec.rb
|
486
405
|
- spec/controllers/bookmarks_controller_spec.rb
|
487
406
|
- spec/controllers/catalog_controller_spec.rb
|
488
407
|
- spec/controllers/saved_searches_controller_spec.rb
|
489
408
|
- spec/controllers/search_history_controller_spec.rb
|
490
409
|
- spec/data/sample_docs.yml
|
491
|
-
- spec/data/test_data.utf8.mrc
|
492
410
|
- spec/features/alternate_controller_spec.rb
|
493
411
|
- spec/features/bookmarks_spec.rb
|
494
412
|
- spec/features/did_you_mean_spec.rb
|
495
|
-
- spec/features/
|
413
|
+
- spec/features/facets_spec.rb
|
496
414
|
- spec/features/record_view_spec.rb
|
497
415
|
- spec/features/saved_searches_spec.rb
|
498
416
|
- spec/features/search_filters_spec.rb
|
@@ -505,9 +423,10 @@ files:
|
|
505
423
|
- spec/helpers/catalog_helper_spec.rb
|
506
424
|
- spec/helpers/facets_helper_spec.rb
|
507
425
|
- spec/helpers/hash_as_hidden_fields_spec.rb
|
508
|
-
- spec/helpers/html_head_helper_spec.rb
|
509
426
|
- spec/helpers/render_constraints_helper_spec.rb
|
510
427
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
428
|
+
- spec/lib/blacklight/routes_spec.rb
|
429
|
+
- spec/lib/blacklight/solr/request_spec.rb
|
511
430
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
512
431
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
513
432
|
- spec/lib/blacklight_configurable_spec.rb
|
@@ -515,27 +434,22 @@ files:
|
|
515
434
|
- spec/lib/blacklight_email_spec.rb
|
516
435
|
- spec/lib/blacklight_sms_spec.rb
|
517
436
|
- spec/lib/blacklight_solr_document_dublin_core_spec.rb
|
518
|
-
- spec/lib/blacklight_solr_document_marc_spec.rb
|
519
437
|
- spec/lib/blacklight_solr_document_more_like_this_spec.rb
|
520
438
|
- spec/lib/blacklight_solr_document_spec.rb
|
521
439
|
- spec/lib/blacklight_solr_response_spec.rb
|
522
440
|
- spec/lib/blacklight_spec.rb
|
523
441
|
- spec/lib/blacklight_user_spec.rb
|
524
442
|
- spec/lib/facet_paginator_spec.rb
|
525
|
-
- spec/lib/marc_export_spec.rb
|
526
443
|
- spec/lib/search_fields_spec.rb
|
527
444
|
- spec/lib/solr_helper_spec.rb
|
528
445
|
- spec/lib/tasks/blacklight_task_spec.rb
|
529
|
-
- spec/lib/tasks/solr_marc_task_spec.rb
|
530
446
|
- spec/lib/utils_spec.rb
|
531
447
|
- spec/models/bookmark_spec.rb
|
532
448
|
- spec/models/record_mailer_spec.rb
|
533
449
|
- spec/models/search_spec.rb
|
534
450
|
- spec/models/solr_document_spec.rb
|
535
451
|
- spec/rcov.opts
|
536
|
-
- spec/requests/alternate_controller_spec.rb
|
537
452
|
- spec/routing/catalog_routing_spec.rb
|
538
|
-
- spec/routing/routes_spec.rb
|
539
453
|
- spec/spec.opts
|
540
454
|
- spec/spec_helper.rb
|
541
455
|
- spec/support/assert_difference.rb
|
@@ -545,13 +459,11 @@ files:
|
|
545
459
|
- spec/test_app_templates/Gemfile.extra
|
546
460
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
547
461
|
- spec/test_app_templates/lib/tasks/blacklight_test_app.rake
|
548
|
-
- spec/views/catalog/_constraints.html.erb_spec.rb
|
549
462
|
- spec/views/catalog/_constraints_element.html.erb_spec.rb
|
550
463
|
- spec/views/catalog/_document.html.erb_spec.rb
|
551
464
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
552
465
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
553
466
|
- spec/views/catalog/_index_default.erb_spec.rb
|
554
|
-
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
555
467
|
- spec/views/catalog/_search_header.erb_spec.rb
|
556
468
|
- spec/views/catalog/_show_default.erb_spec.rb
|
557
469
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|
@@ -559,7 +471,6 @@ files:
|
|
559
471
|
- spec/views/catalog/index.atom.builder_spec.rb
|
560
472
|
- spec/views/catalog/index.html.erb_spec.rb
|
561
473
|
- tasks/blacklight.rake
|
562
|
-
- test_support/data/test_data.utf8.mrc
|
563
474
|
homepage: http://projectblacklight.org/
|
564
475
|
licenses:
|
565
476
|
- Apache 2.0
|
@@ -570,17 +481,17 @@ require_paths:
|
|
570
481
|
- lib
|
571
482
|
required_ruby_version: !ruby/object:Gem::Requirement
|
572
483
|
requirements:
|
573
|
-
- -
|
484
|
+
- - '>='
|
574
485
|
- !ruby/object:Gem::Version
|
575
486
|
version: '0'
|
576
487
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
577
488
|
requirements:
|
578
|
-
- -
|
489
|
+
- - '>'
|
579
490
|
- !ruby/object:Gem::Version
|
580
|
-
version:
|
491
|
+
version: 1.3.1
|
581
492
|
requirements: []
|
582
|
-
rubyforge_project:
|
583
|
-
rubygems_version: 2.
|
493
|
+
rubyforge_project:
|
494
|
+
rubygems_version: 2.0.14
|
584
495
|
signing_key:
|
585
496
|
specification_version: 4
|
586
497
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
@@ -592,11 +503,10 @@ test_files:
|
|
592
503
|
- spec/controllers/saved_searches_controller_spec.rb
|
593
504
|
- spec/controllers/search_history_controller_spec.rb
|
594
505
|
- spec/data/sample_docs.yml
|
595
|
-
- spec/data/test_data.utf8.mrc
|
596
506
|
- spec/features/alternate_controller_spec.rb
|
597
507
|
- spec/features/bookmarks_spec.rb
|
598
508
|
- spec/features/did_you_mean_spec.rb
|
599
|
-
- spec/features/
|
509
|
+
- spec/features/facets_spec.rb
|
600
510
|
- spec/features/record_view_spec.rb
|
601
511
|
- spec/features/saved_searches_spec.rb
|
602
512
|
- spec/features/search_filters_spec.rb
|
@@ -609,9 +519,10 @@ test_files:
|
|
609
519
|
- spec/helpers/catalog_helper_spec.rb
|
610
520
|
- spec/helpers/facets_helper_spec.rb
|
611
521
|
- spec/helpers/hash_as_hidden_fields_spec.rb
|
612
|
-
- spec/helpers/html_head_helper_spec.rb
|
613
522
|
- spec/helpers/render_constraints_helper_spec.rb
|
614
523
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
524
|
+
- spec/lib/blacklight/routes_spec.rb
|
525
|
+
- spec/lib/blacklight/solr/request_spec.rb
|
615
526
|
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
616
527
|
- spec/lib/blacklight/solr_response/group_spec.rb
|
617
528
|
- spec/lib/blacklight_configurable_spec.rb
|
@@ -619,27 +530,22 @@ test_files:
|
|
619
530
|
- spec/lib/blacklight_email_spec.rb
|
620
531
|
- spec/lib/blacklight_sms_spec.rb
|
621
532
|
- spec/lib/blacklight_solr_document_dublin_core_spec.rb
|
622
|
-
- spec/lib/blacklight_solr_document_marc_spec.rb
|
623
533
|
- spec/lib/blacklight_solr_document_more_like_this_spec.rb
|
624
534
|
- spec/lib/blacklight_solr_document_spec.rb
|
625
535
|
- spec/lib/blacklight_solr_response_spec.rb
|
626
536
|
- spec/lib/blacklight_spec.rb
|
627
537
|
- spec/lib/blacklight_user_spec.rb
|
628
538
|
- spec/lib/facet_paginator_spec.rb
|
629
|
-
- spec/lib/marc_export_spec.rb
|
630
539
|
- spec/lib/search_fields_spec.rb
|
631
540
|
- spec/lib/solr_helper_spec.rb
|
632
541
|
- spec/lib/tasks/blacklight_task_spec.rb
|
633
|
-
- spec/lib/tasks/solr_marc_task_spec.rb
|
634
542
|
- spec/lib/utils_spec.rb
|
635
543
|
- spec/models/bookmark_spec.rb
|
636
544
|
- spec/models/record_mailer_spec.rb
|
637
545
|
- spec/models/search_spec.rb
|
638
546
|
- spec/models/solr_document_spec.rb
|
639
547
|
- spec/rcov.opts
|
640
|
-
- spec/requests/alternate_controller_spec.rb
|
641
548
|
- spec/routing/catalog_routing_spec.rb
|
642
|
-
- spec/routing/routes_spec.rb
|
643
549
|
- spec/spec.opts
|
644
550
|
- spec/spec_helper.rb
|
645
551
|
- spec/support/assert_difference.rb
|
@@ -649,13 +555,11 @@ test_files:
|
|
649
555
|
- spec/test_app_templates/Gemfile.extra
|
650
556
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
651
557
|
- spec/test_app_templates/lib/tasks/blacklight_test_app.rake
|
652
|
-
- spec/views/catalog/_constraints.html.erb_spec.rb
|
653
558
|
- spec/views/catalog/_constraints_element.html.erb_spec.rb
|
654
559
|
- spec/views/catalog/_document.html.erb_spec.rb
|
655
560
|
- spec/views/catalog/_document_list.html.erb_spec.rb
|
656
561
|
- spec/views/catalog/_facets.html.erb_spec.rb
|
657
562
|
- spec/views/catalog/_index_default.erb_spec.rb
|
658
|
-
- spec/views/catalog/_paginate_compact.html.erb_spec.rb
|
659
563
|
- spec/views/catalog/_search_header.erb_spec.rb
|
660
564
|
- spec/views/catalog/_show_default.erb_spec.rb
|
661
565
|
- spec/views/catalog/_show_sidebar.erb_spec.rb
|