Skip to content

Add more explanation about index_range configuration #3607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/generators/blacklight/templates/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ class <%= controller_name.classify %>Controller < ApplicationController
# :show may be set to false if you don't want the facet to be drawn in the
# facet bar
#
# set :index_range to true if you want the facet pagination view to have facet prefix-based navigation
# Set :index_range to true if you want the facet pagination view to have facet prefix-based navigation.
# (useful when user clicks "more" on a large facet and wants to navigate alphabetically across a large set of results)
# :index_range can be an array or range of prefixes that will be used to create the navigation (note: It is case sensitive when searching values)
# This control only displays when the user has selected "A-Z Sort" (You make make this the default by setting "sort: 'index'"
# in the facet config)

config.add_facet_field 'format', label: 'Format'
config.add_facet_field 'pub_date_ssim', label: 'Publication Year', single: true
Expand Down