diff --git a/app/helpers/commonwealth_vlr_engine/facets_helper.rb b/app/helpers/commonwealth_vlr_engine/facets_helper.rb index bcf47f3..3222085 100644 --- a/app/helpers/commonwealth_vlr_engine/facets_helper.rb +++ b/app/helpers/commonwealth_vlr_engine/facets_helper.rb @@ -12,7 +12,7 @@ def render_facet_item(facet_field, item) (controller.action_name == 'index' || controller.action_name == 'facet') && item.value == 'Collections' - if facet_in_params?(facet_field, item.value) + if facet_in_params?(facet_field, facet_value_for_facet_item(item)) render_selected_facet_value(facet_field, item) else render_facet_value(facet_field, item) diff --git a/app/views/blacklight_advanced_search/_facet_limit.html.erb b/app/views/blacklight_advanced_search/_facet_limit.html.erb new file mode 100644 index 0000000..de4560b --- /dev/null +++ b/app/views/blacklight_advanced_search/_facet_limit.html.erb @@ -0,0 +1,16 @@ +
+
+
Any of:
+ +
+ <%# render_facet_limit display_facet, :layout => nil, :partial => advanced_search_facet_partial_name(display_facet) %> +
diff --git a/lib/generators/commonwealth_vlr_engine/localassets_generator.rb b/lib/generators/commonwealth_vlr_engine/localassets_generator.rb index ec64672..0a7fbbd 100644 --- a/lib/generators/commonwealth_vlr_engine/localassets_generator.rb +++ b/lib/generators/commonwealth_vlr_engine/localassets_generator.rb @@ -27,7 +27,7 @@ def assets # similar pattern as Hyrax (https://github.com/samvera/hyrax/commit/0e02c4adf26e74f2d892f575c93789bc166e53ad) # though we hard-code the assets instead of installing with yarn def uv_assets - directory 'public/uv' unless File.exist?('public/uv/uv.js') + directory 'public/uv-v4' unless File.exist?('public/uv-v4/umd/UV.js') end end end