blacklight icon indicating copy to clipboard operation
blacklight copied to clipboard

Add a configuration option for home page facets

Open tampakis opened this issue 5 years ago • 2 comments

Several institutions have a limited set of facets that appear on their home page (primarily because of performance issues). Add an option in the catalog controller to set which facets will appear on the homepage (default all).

tampakis avatar Oct 09 '19 21:10 tampakis

I believe this could be handled with something like this:

  config.add_facet_field 'format_facet', if: Proc.new {|context, _config, _opts| context.current_page?(main_app.root_path) }

cjcolvar avatar Oct 05 '22 20:10 cjcolvar

We also touch on some approaches in the customizing blacklight workshop:

https://workshop.projectblacklight.org/v8.0.0.alpha/extending-catalog-controller/ https://workshop.projectblacklight.org/v8.0.0.alpha/dynamic-catalog-configuration-using-before_actions/

cbeer avatar Oct 05 '22 21:10 cbeer