Skip to content

Commit

Permalink
Ensure blocked deep pagination options are not shown
Browse files Browse the repository at this point in the history
Fixes #4467
  • Loading branch information
thatbudakguy committed Oct 29, 2024
1 parent f225eea commit 87538a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class CatalogController < ApplicationController
#config.per_page = [10,20,50,100]
config.default_per_page = 20

# restrict available pagination options because we block deep pagination
config.default_pagination_options = { theme: 'blacklight', left: 3, right: 0 }

## Default parameters to send on single-document requests to Solr. These settings are the Blackligt defaults (see SolrHelper#solr_doc_params) or
## parameters included in the Blacklight-jetty document requestHandler.
#
Expand Down
4 changes: 0 additions & 4 deletions config/initializers/blacklight_initialize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@
}
end
end

# Needed until https://github.com/projectblacklight/blacklight/pull/3094 is merged and backported to 7.x,
# then we can configure in CatalogController
Blacklight::Engine.config.blacklight.default_pagination_options = { theme: 'blacklight', left: 3, right: 0 }

0 comments on commit 87538a4

Please sign in to comment.