Skip to content
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

date range filter #6

Open
kstapelfeldt opened this issue Aug 31, 2021 · 4 comments
Open

date range filter #6

kstapelfeldt opened this issue Aug 31, 2021 · 4 comments
Assignees

Comments

@kstapelfeldt
Copy link
Member

kstapelfeldt commented Aug 31, 2021

available via a block (like pretty one on special.library.unlv.edu)

https://www.drupal.org/project/facets

@kylehuynh205 kylehuynh205 self-assigned this Sep 9, 2021
@kylehuynh205
Copy link
Contributor

kylehuynh205 commented Sep 21, 2021

How to setup the submodule facet_range_widget:

TO DO:

  • The widget isn't currently working with Ajax enabled view.

@kylehuynh205
Copy link
Contributor

kylehuynh205 commented Sep 30, 2021

Working Demo: https://core.digital.utsc.utoronto.ca/advanced-search

Note:

Range Slider Widget is only work Integer field only, so, to apply for use cases:

  • For Islandora content type, there are already ETDF fields, so in Solr config, in /admin/config/search/search-api/index/default_solr_index_islandora_lite/fields/ set the field's TYPE as Integer:

image

In the Processor tab:

Screen Shot 2021-09-30 at 3 23 56 PM

image

@kstapelfeldt
Copy link
Member Author

kstapelfeldt commented Jun 8, 2022

Decided not to use the slider. Our current date approach is different; we are using a form, but the form still requires validation stuff done (for example, a user can enter a negative date)

@kylehuynh205
Copy link
Contributor

Validation has been added for:

  • Enter negative number
  • Enter a "To" number more than "From" number

With the commit:
digitalutsc/facets_year_range@b27b305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants