From 6dd5c0346d74b262a4d9704572c3b5e1b24733a3 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Wed, 12 Feb 2014 14:37:54 -0800 Subject: [PATCH] Use common facet rendering behavior on facet sidebar and facet action rendering --- .../stylesheets/blacklight/_facets.css.scss | 3 +- app/views/catalog/_facet_limit.html.erb | 6 ++-- app/views/catalog/_facet_pagination.html.erb | 1 - app/views/catalog/facet.html.erb | 13 +------- lib/blacklight/catalog.rb | 8 ++++- lib/blacklight/facet.rb | 8 +++++ lib/blacklight/solr_helper.rb | 26 +++++++++------- lib/blacklight/solr_response/facets.rb | 26 +++++++++++++--- spec/controllers/catalog_controller_spec.rb | 3 ++ spec/views/catalog/_facets.html.erb_spec.rb | 2 +- spec/views/catalog/facet.html.erb_spec.rb | 30 +++++++++++++++++++ 11 files changed, 92 insertions(+), 34 deletions(-) create mode 100644 spec/views/catalog/facet.html.erb_spec.rb diff --git a/app/assets/stylesheets/blacklight/_facets.css.scss b/app/assets/stylesheets/blacklight/_facets.css.scss index 8d9f3615b8..4f1e76366f 100644 --- a/app/assets/stylesheets/blacklight/_facets.css.scss +++ b/app/assets/stylesheets/blacklight/_facets.css.scss @@ -83,7 +83,8 @@ } -ul.facet_extended_list +/* deprecated in Blacklight 5.x */ +ul.facet_extended_list, .facet_extended_list ul { @extend .list-unstyled; diff --git a/app/views/catalog/_facet_limit.html.erb b/app/views/catalog/_facet_limit.html.erb index 9ee17bf255..e0d6b56d5c 100644 --- a/app/views/catalog/_facet_limit.html.erb +++ b/app/views/catalog/_facet_limit.html.erb @@ -1,7 +1,5 @@