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.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.travis.yml +22 -12
  4. data/Gemfile +3 -40
  5. data/LICENSE +1 -2
  6. data/README.md +1 -2
  7. data/Rakefile +0 -4
  8. data/VERSION +1 -1
  9. data/app/assets/images/blacklight/logo.png +0 -0
  10. data/app/assets/javascripts/blacklight/ajax_modal.js +190 -0
  11. data/app/assets/javascripts/blacklight/blacklight.js +7 -17
  12. data/app/assets/javascripts/blacklight/checkbox_submit.js +1 -1
  13. data/app/assets/stylesheets/blacklight/{_blacklight_base.scss → _blacklight_base.css.scss} +0 -21
  14. data/app/assets/stylesheets/blacklight/_bookmark.css.scss +4 -0
  15. data/app/assets/stylesheets/blacklight/_catalog.css.scss +192 -0
  16. data/app/assets/stylesheets/blacklight/_facets.css.scss +141 -0
  17. data/app/assets/stylesheets/blacklight/{_group.scss → _group.css.scss} +1 -1
  18. data/app/assets/stylesheets/blacklight/_header.css.scss +44 -0
  19. data/app/assets/stylesheets/blacklight/_layout.css.scss +5 -0
  20. data/app/assets/stylesheets/blacklight/{_modal.scss → _modal.css.scss} +7 -7
  21. data/app/assets/stylesheets/blacklight/_search_history.css.scss +20 -0
  22. data/app/assets/stylesheets/blacklight/{blacklight.scss → blacklight.css.scss} +0 -0
  23. data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +14 -0
  24. data/app/controllers/bookmarks_controller.rb +0 -4
  25. data/app/controllers/feedback_controller.rb +0 -4
  26. data/app/helpers/blacklight/blacklight_helper_behavior.rb +45 -155
  27. data/app/helpers/blacklight/catalog_helper_behavior.rb +8 -41
  28. data/app/helpers/blacklight/facets_helper_behavior.rb +20 -43
  29. data/app/helpers/blacklight/hash_as_hidden_fields_helper_behavior.rb +2 -9
  30. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +9 -14
  31. data/app/helpers/blacklight/search_history_constraints_helper_behavior.rb +6 -6
  32. data/app/views/_flash_msg.html.erb +9 -2
  33. data/app/views/_user_util_links.html.erb +29 -15
  34. data/app/views/bookmarks/_tools.html.erb +4 -7
  35. data/app/views/bookmarks/index.html.erb +3 -2
  36. data/app/views/catalog/_citation.html.erb +1 -1
  37. data/app/views/catalog/_constraints.html.erb +1 -1
  38. data/app/views/catalog/_constraints_element.html.erb +12 -8
  39. data/app/views/catalog/_did_you_mean.html.erb +2 -2
  40. data/app/views/catalog/_document_header.html.erb +3 -3
  41. data/app/views/catalog/_email_form.html.erb +10 -10
  42. data/app/views/catalog/_facet_layout.html.erb +11 -3
  43. data/app/views/catalog/_facet_limit.html.erb +7 -7
  44. data/app/views/catalog/_facet_pagination.html.erb +8 -7
  45. data/app/views/catalog/_facet_pivot.html.erb +3 -1
  46. data/app/views/catalog/_facets.html.erb +12 -9
  47. data/app/views/catalog/_paginate_compact.html.erb +1 -7
  48. data/app/views/catalog/_per_page_widget.html.erb +5 -8
  49. data/app/views/catalog/_previous_next_doc.html.erb +11 -9
  50. data/app/views/catalog/_refworks_form.html.erb +3 -4
  51. data/app/views/catalog/_results_pagination.html.erb +1 -1
  52. data/app/views/catalog/_search_form.html.erb +16 -14
  53. data/app/views/catalog/_show_sidebar.html.erb +7 -9
  54. data/app/views/catalog/_show_tools.html.erb +13 -7
  55. data/app/views/catalog/_sms_form.html.erb +8 -8
  56. data/app/views/catalog/_sort_and_per_page.html.erb +4 -6
  57. data/app/views/catalog/_sort_widget.html.erb +5 -6
  58. data/app/views/catalog/email.html.erb +1 -1
  59. data/app/views/catalog/facet.html.erb +2 -8
  60. data/app/views/catalog/index.html.erb +11 -6
  61. data/app/views/catalog/show.html.erb +5 -5
  62. data/app/views/catalog/sms.html.erb +1 -1
  63. data/app/views/catalog/sms_sent.html.erb +1 -1
  64. data/app/views/feedback/complete.html.erb +2 -2
  65. data/app/views/feedback/show.html.erb +1 -1
  66. data/app/views/kaminari/blacklight/_paginator.html.erb +1 -1
  67. data/app/views/kaminari/blacklight_compact/_paginator.html.erb +25 -5
  68. data/app/views/layouts/blacklight.html.erb +23 -23
  69. data/app/views/saved_searches/index.html.erb +2 -2
  70. data/app/views/search_history/index.html.erb +5 -7
  71. data/app/views/shared/_header_navbar.html.erb +23 -23
  72. data/blacklight.gemspec +10 -13
  73. data/config/locales/blacklight.en.yml +1 -12
  74. data/config/locales/blacklight.fr.yml +1 -12
  75. data/gemfiles/rails3.gemfile +21 -0
  76. data/gemfiles/rails4.gemfile +20 -0
  77. data/lib/blacklight.rb +0 -8
  78. data/lib/blacklight/base.rb +0 -2
  79. data/lib/blacklight/catalog.rb +6 -32
  80. data/lib/blacklight/catalog/search_context.rb +8 -48
  81. data/lib/blacklight/configurable.rb +2 -1
  82. data/lib/blacklight/configuration.rb +1 -2
  83. data/lib/blacklight/configuration/facet_field.rb +0 -2
  84. data/lib/blacklight/engine.rb +3 -3
  85. data/lib/blacklight/legacy_controller_methods.rb +1 -64
  86. data/lib/blacklight/rails/routes.rb +17 -0
  87. data/lib/blacklight/routes.rb +46 -40
  88. data/lib/blacklight/solr.rb +1 -0
  89. data/lib/blacklight/solr/document.rb +21 -42
  90. data/lib/blacklight/solr/facet_paginator.rb +30 -54
  91. data/lib/blacklight/solr/request.rb +45 -0
  92. data/lib/blacklight/solr_helper.rb +16 -53
  93. data/lib/blacklight/solr_response.rb +0 -6
  94. data/lib/blacklight/user.rb +2 -7
  95. data/lib/blacklight/utils.rb +1 -9
  96. data/lib/generators/blacklight/assets_generator.rb +0 -14
  97. data/lib/generators/blacklight/blacklight_generator.rb +17 -14
  98. data/lib/generators/blacklight/templates/blacklight.css.scss +3 -0
  99. data/lib/generators/blacklight/templates/catalog_controller.rb +4 -1
  100. data/lib/railties/blacklight.rake +3 -1
  101. data/solr/sample_solr_documents.yml +641 -0
  102. data/spec/controllers/application_controller_spec.rb +5 -21
  103. data/spec/controllers/bookmarks_controller_spec.rb +11 -11
  104. data/spec/controllers/catalog_controller_spec.rb +122 -119
  105. data/spec/controllers/search_history_controller_spec.rb +8 -8
  106. data/spec/features/alternate_controller_spec.rb +5 -5
  107. data/spec/features/facets_spec.rb +9 -0
  108. data/spec/features/record_view_spec.rb +1 -1
  109. data/spec/features/search_filters_spec.rb +97 -41
  110. data/spec/features/search_results_spec.rb +14 -17
  111. data/spec/features/search_sort_spec.rb +1 -1
  112. data/spec/helpers/blacklight_helper_spec.rb +170 -285
  113. data/spec/helpers/catalog_helper_spec.rb +57 -96
  114. data/spec/helpers/facets_helper_spec.rb +130 -152
  115. data/spec/helpers/hash_as_hidden_fields_spec.rb +9 -15
  116. data/spec/helpers/render_constraints_helper_spec.rb +5 -5
  117. data/spec/helpers/search_history_constraints_helper_spec.rb +21 -21
  118. data/spec/lib/blacklight/routes_spec.rb +25 -0
  119. data/spec/lib/blacklight/solr/request_spec.rb +37 -0
  120. data/spec/lib/blacklight/solr_response/group_response_spec.rb +2 -2
  121. data/spec/lib/blacklight_configurable_spec.rb +16 -16
  122. data/spec/lib/blacklight_configuration_spec.rb +132 -132
  123. data/spec/lib/blacklight_email_spec.rb +4 -4
  124. data/spec/lib/blacklight_sms_spec.rb +4 -4
  125. data/spec/lib/blacklight_solr_document_dublin_core_spec.rb +6 -6
  126. data/spec/lib/blacklight_solr_document_more_like_this_spec.rb +4 -4
  127. data/spec/lib/blacklight_solr_document_spec.rb +36 -36
  128. data/spec/lib/blacklight_solr_response_spec.rb +43 -48
  129. data/spec/lib/blacklight_spec.rb +6 -14
  130. data/spec/lib/blacklight_user_spec.rb +5 -9
  131. data/spec/lib/facet_paginator_spec.rb +59 -51
  132. data/spec/lib/search_fields_spec.rb +13 -13
  133. data/spec/lib/solr_helper_spec.rb +258 -304
  134. data/spec/lib/tasks/blacklight_task_spec.rb +1 -1
  135. data/spec/lib/utils_spec.rb +16 -46
  136. data/spec/models/bookmark_spec.rb +6 -7
  137. data/spec/models/record_mailer_spec.rb +16 -16
  138. data/spec/models/search_spec.rb +8 -8
  139. data/spec/models/solr_document_spec.rb +6 -77
  140. data/spec/routing/catalog_routing_spec.rb +16 -10
  141. data/spec/spec_helper.rb +7 -7
  142. data/spec/support/assert_difference.rb +2 -2
  143. data/spec/support/features.rb +0 -11
  144. data/spec/support/features/session_helpers.rb +3 -3
  145. data/spec/support/include_text.rb +2 -2
  146. data/spec/test_app_templates/Gemfile.extra +10 -2
  147. data/spec/test_app_templates/lib/generators/test_app_generator.rb +12 -18
  148. data/spec/views/catalog/_constraints_element.html.erb_spec.rb +13 -13
  149. data/spec/views/catalog/_document.html.erb_spec.rb +1 -1
  150. data/spec/views/catalog/_document_list.html.erb_spec.rb +1 -1
  151. data/spec/views/catalog/_facets.html.erb_spec.rb +13 -14
  152. data/spec/views/catalog/_index_default.erb_spec.rb +21 -21
  153. data/spec/views/catalog/_search_header.erb_spec.rb +1 -1
  154. data/spec/views/catalog/_show_default.erb_spec.rb +21 -21
  155. data/spec/views/catalog/_show_sidebar.erb_spec.rb +7 -7
  156. data/spec/views/catalog/_thumbnail_default.erb_spec.rb +3 -3
  157. data/spec/views/catalog/index.atom.builder_spec.rb +29 -29
  158. data/spec/views/catalog/index.html.erb_spec.rb +6 -7
  159. data/tasks/blacklight.rake +8 -2
  160. metadata +84 -180
  161. data/app/assets/javascripts/blacklight/css_dropdowns.js +0 -10
  162. data/app/assets/javascripts/blacklight/facet_expand_contract.js +0 -41
  163. data/app/assets/javascripts/blacklight/lightbox_dialog.js +0 -70
  164. data/app/assets/javascripts/blacklight/select_submit.js +0 -27
  165. data/app/assets/javascripts/blacklight/zebra_stripe.js +0 -13
  166. data/app/assets/javascripts/improved-modal/bootstrap-modal.js +0 -355
  167. data/app/assets/javascripts/improved-modal/bootstrap-modalmanager.js +0 -370
  168. data/app/assets/stylesheets/blacklight/_bookmark.scss +0 -33
  169. data/app/assets/stylesheets/blacklight/_catalog.scss +0 -255
  170. data/app/assets/stylesheets/blacklight/_dropdown.scss +0 -57
  171. data/app/assets/stylesheets/blacklight/_facets.scss +0 -197
  172. data/app/assets/stylesheets/blacklight/_footer.scss +0 -0
  173. data/app/assets/stylesheets/blacklight/_header.scss +0 -53
  174. data/app/assets/stylesheets/blacklight/_layout.scss +0 -10
  175. data/app/assets/stylesheets/blacklight/_mixins.scss +0 -0
  176. data/app/assets/stylesheets/blacklight/_print.scss +0 -0
  177. data/app/assets/stylesheets/blacklight/_responsive.scss +0 -3
  178. data/app/assets/stylesheets/blacklight/_search_history.scss +0 -42
  179. data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +0 -49
  180. data/app/assets/stylesheets/blacklight/responsive_partials/_catalog.scss +0 -5
  181. data/app/assets/stylesheets/blacklight/responsive_partials/_facets.scss +0 -37
  182. data/app/assets/stylesheets/blacklight/responsive_partials/_header.scss +0 -30
  183. data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
  184. data/app/helpers/blacklight/html_head_helper_behavior.rb +0 -118
  185. data/app/helpers/html_head_helper.rb +0 -3
  186. data/app/views/catalog/_bookmark_form.html.erb +0 -7
  187. data/app/views/catalog/_marc_view.html.erb +0 -32
  188. data/app/views/catalog/librarian_view.html.erb +0 -10
  189. data/config/routes.rb +0 -17
  190. data/doc/Atom-Responses.md +0 -90
  191. data/doc/Blacklight-3.0-Release-Notes-And-Upgrade-Guide.md +0 -107
  192. data/doc/Blacklight-3.2-Release-Notes-and-Upgrade-Guide.md +0 -191
  193. data/doc/Blacklight-3.3-release-notes-and-upgrade-guide.md +0 -37
  194. data/doc/Blacklight-3.4-release-notes-and-upgrade-guide.md +0 -27
  195. data/doc/Blacklight-3.5-release-notes-and-upgrade-guide.md +0 -44
  196. data/doc/Blacklight-3.6-release-notes-and-upgrade-guide.md +0 -25
  197. data/doc/Blacklight-3.7-release-notes-and-upgrade-guide.md +0 -80
  198. data/doc/Blacklight-3.8-release-notes-and-upgrade-guide.md +0 -11
  199. data/doc/Blacklight-4.0-release-notes-and-upgrade-guide.md +0 -135
  200. data/doc/Blacklight-4.1-release-notes-and-upgrade-guide.md +0 -17
  201. data/doc/Blacklight-4.2-release-notes-and-upgrade-guide.md +0 -25
  202. data/doc/Blacklight-4.3-release-notes-and-upgrade-guide.md +0 -21
  203. data/doc/Blacklight-4.4-release-notes-and-upgrade-guide.md +0 -41
  204. data/doc/Blacklight-Add-ons.md +0 -28
  205. data/doc/Blacklight-configuration.md +0 -411
  206. data/doc/Blacklight-on-Heroku.md +0 -135
  207. data/doc/Code4Lib-2014.md +0 -48
  208. data/doc/Community-principles.md +0 -44
  209. data/doc/Configuring-and-Customizing-Blacklight.md +0 -271
  210. data/doc/Configuring-rails-routes.md +0 -13
  211. data/doc/Contributing-to-Blacklight.md +0 -25
  212. data/doc/Examples.md +0 -94
  213. data/doc/Extending-or-Modifying-Blacklight-Search-Behavior.md +0 -141
  214. data/doc/FAQs.md +0 -1
  215. data/doc/Home.md +0 -80
  216. data/doc/How-to-release-a-version.md +0 -29
  217. data/doc/Indexing-your-data-into-solr.md +0 -32
  218. data/doc/Integration-with-Rails-Footnotes.md +0 -20
  219. data/doc/Internationalization.md +0 -32
  220. data/doc/JSON-API.md +0 -17
  221. data/doc/Pagination.md +0 -51
  222. data/doc/Providing-your-own-view-templates.md +0 -109
  223. data/doc/Quickstart.md +0 -115
  224. data/doc/README_SOLR.md +0 -245
  225. data/doc/Release-Notes-And-Upgrade-Guides.md +0 -20
  226. data/doc/Roadmap.md +0 -43
  227. data/doc/Sunspot-for-indexing.md +0 -46
  228. data/doc/Theming.md +0 -64
  229. data/doc/User-Authentication.md +0 -60
  230. data/doc/testing.md +0 -57
  231. data/lib/SolrMarc.jar +0 -0
  232. data/lib/blacklight/mash.rb +0 -19
  233. data/lib/blacklight/solr/document/marc.rb +0 -71
  234. data/lib/blacklight/solr/document/marc_export.rb +0 -590
  235. data/lib/generators/blacklight/marc_generator.rb +0 -66
  236. data/lib/generators/blacklight/templates/blacklight.scss +0 -4
  237. data/lib/generators/blacklight/templates/config/SolrMarc/config-test.properties +0 -37
  238. data/lib/generators/blacklight/templates/config/SolrMarc/config.properties +0 -37
  239. data/lib/generators/blacklight/templates/config/SolrMarc/index.properties +0 -97
  240. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/dewey.bsh +0 -47
  241. data/lib/generators/blacklight/templates/config/SolrMarc/index_scripts/format.bsh +0 -126
  242. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/README_MAPS +0 -1
  243. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/callnumber_map.properties +0 -407
  244. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/composition_era_map.properties +0 -56
  245. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/country_map.properties +0 -379
  246. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/format_map.properties +0 -50
  247. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/instrument_map.properties +0 -101
  248. data/lib/generators/blacklight/templates/config/SolrMarc/translation_maps/language_map.properties +0 -490
  249. data/lib/railties/solr_marc.rake +0 -162
  250. data/spec/data/test_data.utf8.mrc +0 -1
  251. data/spec/features/librarian_view_spec.rb +0 -13
  252. data/spec/helpers/html_head_helper_spec.rb +0 -164
  253. data/spec/lib/blacklight_solr_document_marc_spec.rb +0 -89
  254. data/spec/lib/marc_export_spec.rb +0 -746
  255. data/spec/lib/tasks/solr_marc_task_spec.rb +0 -60
  256. data/spec/requests/alternate_controller_spec.rb +0 -16
  257. data/spec/routing/routes_spec.rb +0 -20
  258. data/spec/views/catalog/_constraints.html.erb_spec.rb +0 -33
  259. data/spec/views/catalog/_paginate_compact.html.erb_spec.rb +0 -49
  260. data/test_support/data/test_data.utf8.mrc +0 -1
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
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
- allow(view).to receive(:blacklight_config).and_return(CatalogController.blacklight_config)
15
- allow(view).to receive(:has_user_authentication_provider?).and_return(false)
16
- allow(view).to receive(:current_search_session).and_return nil
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
- allow(@document).to receive(:more_like_this).and_return([SolrDocument.new({ 'id' => '2', 'title_display' => 'Title of MLT Document' })])
21
+ @document.stub(:more_like_this).and_return([SolrDocument.new({ 'id' => '2', 'title_display' => 'Title of MLT Document' })])
22
22
  render
23
- expect(rendered).to include_text("More Like This")
24
- expect(rendered).to include_text("Title of MLT Document")
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
- allow(view).to receive(:render_grouped_response?).and_return false
22
- allow(view).to receive(:blacklight_config).and_return(blacklight_config)
23
- allow(view).to receive(:current_search_session).and_return nil
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 File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
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
- allow(view).to receive(:blacklight_config).and_return(@config)
34
- allow(view).to receive(:search_field_options_for_select).and_return([])
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
- expect(rendered).to have_selector("link[rel=self]")
45
- expect(rendered).to have_selector("link[rel=next]")
46
- expect(rendered).to have_selector("link[rel=previous]")
47
- expect(rendered).to have_selector("link[rel=first]")
48
- expect(rendered).to have_selector("link[rel=last]")
49
- expect(rendered).to have_selector("link[rel='alternate'][type='text/html']")
50
- expect(rendered).to have_selector("link[rel=search][type='application/opensearchdescription+xml']")
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
- expect(@response_xml.elements["/feed/opensearch:totalResults"].text).to eq("30")
56
- expect(@response_xml.elements["/feed/opensearch:startIndex"].text).to eq("10")
57
- expect(@response_xml.elements["/feed/opensearch:itemsPerPage"].text).to eq("10")
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
- expect(@response_xml.elements.to_a("/feed/opensearch:itemsPerPage").length).to eq(1)
62
+ @response_xml.elements.to_a("/feed/opensearch:itemsPerPage").length.should == 1
63
63
  query_el = @response_xml.elements["/feed/opensearch:Query"]
64
- expect(query_el).not_to be_nil
65
- expect(query_el.attributes["role"]).to eq("request")
66
- expect(query_el.attributes["searchTerms"]).to eq("")
67
- expect(query_el.attributes["startPage"]).to eq("2")
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
- expect(rendered).to have_selector("entry", :count => 10)
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
- expect(rendered).to have_selector("entry > title")
76
+ rendered.should have_selector("entry > title")
77
77
  end
78
78
  it "should have an updated" do
79
- expect(rendered).to have_selector("entry > updated")
79
+ rendered.should have_selector("entry > updated")
80
80
  end
81
81
  it "should have html link" do
82
- expect(rendered).to have_selector("entry > link[rel=alternate][type='text/html']")
82
+ rendered.should have_selector("entry > link[rel=alternate][type='text/html']")
83
83
  end
84
84
  it "should have an id" do
85
- expect(rendered).to have_selector("entry > id")
85
+ rendered.should have_selector("entry > id")
86
86
  end
87
87
  it "should have a summary" do
88
- expect(rendered).to have_selector("entry > summary")
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
- expect(@entry.elements["author/name"]).not_to be_nil
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
- expect(@entry.elements["author/name"]).to be_nil
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
- expect(@entry.to_s).to have_selector("link[rel=alternate][type='application/marc']")
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
- expect(@entry.to_s).to have_selector("content")
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
- expect(@entry.to_s).not_to have_selector("content[type='application/marc']")
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
- allow(view).to receive(:blacklight_config).and_return(Blacklight::Configuration.new)
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
- allow(view).to receive(:blacklight_config).and_return(Blacklight::Configuration.new)
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
- allow(view).to receive(:blacklight_config).and_return(Blacklight::Configuration.new)
24
- allow(view).to receive(:has_search_parameters?).and_return(true)
25
- allow(view).to receive(:extra_head_content).and_return([])
26
- allow(view).to receive(:render_opensearch_response_metadata).and_return("")
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
@@ -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
- task :ci => 'jetty:clean' do
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.9.0
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: 2018-10-01 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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: marc
57
+ name: kaminari
52
58
  requirement: !ruby/object:Gem::Requirement
53
59
  requirements:
54
- - - ">="
60
+ - - ~>
55
61
  - !ruby/object:Gem::Version
56
- version: 0.4.3
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: '1.1'
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: kaminari
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.13'
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.13'
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: 2.2.0
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: '2.4'
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.1'
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.1'
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: rspec-rails
141
+ name: blacklight_marc
148
142
  requirement: !ruby/object:Gem::Requirement
149
143
  requirements:
150
- - - "~>"
144
+ - - '='
151
145
  - !ruby/object:Gem::Version
152
- version: '3.0'
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: '3.0'
153
+ version: 0.0.6
160
154
  - !ruby/object:Gem::Dependency
161
- name: rspec-its
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: '2.0'
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: '2.0'
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
- - ".gitignore"
212
- - ".gitmodules"
213
- - ".rspec"
214
- - ".travis.yml"
215
- - ".yardopts"
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/javascripts/blacklight/select_submit.js
241
- - app/assets/javascripts/blacklight/zebra_stripe.js
242
- - app/assets/javascripts/improved-modal/bootstrap-modal.js
243
- - app/assets/javascripts/improved-modal/bootstrap-modalmanager.js
244
- - app/assets/stylesheets/blacklight/_blacklight_base.scss
245
- - app/assets/stylesheets/blacklight/_bookmark.scss
246
- - app/assets/stylesheets/blacklight/_catalog.scss
247
- - app/assets/stylesheets/blacklight/_dropdown.scss
248
- - app/assets/stylesheets/blacklight/_facets.scss
249
- - app/assets/stylesheets/blacklight/_footer.scss
250
- - app/assets/stylesheets/blacklight/_group.scss
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
- - config/routes.rb
370
- - doc/Atom-Responses.md
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/mash.rb
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
- - lib/railties/solr_marc.rake
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/librarian_view_spec.rb
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: '0'
491
+ version: 1.3.1
581
492
  requirements: []
582
- rubyforge_project: blacklight
583
- rubygems_version: 2.6.11
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/librarian_view_spec.rb
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