blacklight 5.0.3 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/Gemfile +9 -9
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/app/assets/stylesheets/blacklight/_facets.css.scss +2 -1
- data/app/controllers/bookmarks_controller.rb +0 -1
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +3 -3
- data/app/helpers/blacklight/catalog_helper_behavior.rb +5 -1
- data/app/helpers/blacklight/configuration_helper_behavior.rb +60 -0
- data/app/helpers/blacklight/facets_helper_behavior.rb +3 -5
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +1 -1
- data/app/helpers/blacklight/url_helper_behavior.rb +24 -19
- data/app/views/catalog/_facet_layout.html.erb +1 -1
- data/app/views/catalog/_facet_limit.html.erb +2 -4
- data/app/views/catalog/_facet_pagination.html.erb +0 -1
- data/app/views/catalog/facet.html.erb +2 -13
- data/blacklight.gemspec +3 -3
- data/gemfiles/rails3.gemfile +19 -5
- data/gemfiles/rails4.gemfile +17 -5
- data/lib/blacklight/catalog.rb +55 -10
- data/lib/blacklight/configuration.rb +6 -1
- data/lib/blacklight/configuration/fields.rb +38 -4
- data/lib/blacklight/controller.rb +10 -1
- data/lib/blacklight/facet.rb +8 -0
- data/lib/blacklight/solr_helper.rb +53 -25
- data/lib/blacklight/solr_response/facets.rb +22 -4
- data/spec/controllers/catalog_controller_spec.rb +59 -2
- data/spec/features/alternate_controller_spec.rb +3 -3
- data/spec/features/record_view_spec.rb +1 -1
- data/spec/helpers/blacklight_helper_spec.rb +5 -5
- data/spec/helpers/catalog_helper_spec.rb +20 -7
- data/spec/helpers/configuration_helper_spec.rb +42 -0
- data/spec/helpers/facets_helper_spec.rb +5 -12
- data/spec/helpers/render_constraints_helper_spec.rb +4 -1
- data/spec/helpers/url_helper_spec.rb +37 -49
- data/spec/lib/blacklight/configuration_spec.rb +53 -1
- data/spec/lib/blacklight/solr_helper_spec.rb +37 -4
- data/spec/test_app_templates/Gemfile.extra +21 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +5 -0
- data/spec/test_app_templates/lib/tasks/blacklight_test_app.rake +14 -0
- data/spec/views/catalog/_constraints.html.erb_spec.rb +2 -2
- data/spec/views/catalog/_facet_layout.html.erb_spec.rb +3 -1
- data/spec/views/catalog/_facets.html.erb_spec.rb +42 -40
- data/spec/views/catalog/facet.html.erb_spec.rb +30 -0
- metadata +23 -33
- data/spec/views/catalog/opensearch.xml.builder_spec.rb +0 -10
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe 'catalog/opensearch.xml.builder' do
|
4
|
-
it "should render an OpenSearch description document" do
|
5
|
-
render
|
6
|
-
doc = Nokogiri::XML.parse(rendered)
|
7
|
-
doc.remove_namespaces!
|
8
|
-
expect(doc.xpath('/OpenSearchDescription').length).to eq 1
|
9
|
-
end
|
10
|
-
end
|