Skip to content

Commit

Permalink
tell blacklight we are still using bootstrap 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Oct 10, 2023
1 parent da2cb9c commit 82af574
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ gem 'jbuilder', '~> 2.5'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false

# note if updating to 5, you should change bootstrap_version config in catalog_controller
gem 'bootstrap', '~> 4.6', '>= 4.6.2'

gem 'sprockets-rails', '>= 3.4.2'
Expand Down
3 changes: 3 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ def active_sort_fields
# We overide to use custom sub-class for Solr HTTP retries
config.repository_class = Scihist::BlacklightSolrRepository

# We need to tell Blacklight we use bootstrap 4, not yet 5
config.bootstrap_version = 4


## Class for converting Blacklight's url parameters to into request parameters for the search index
# config.search_builder_class = ::SearchBuilder
Expand Down

0 comments on commit 82af574

Please sign in to comment.