pulibrary / static-tables

Collection of Searchable Library Data Sets
https://library.princeton.edu/marquand_catalogs/
MIT License
0 stars 0 forks source link

Allow Select Filters to have a different label vs. value #111

Closed sandbergja closed 5 months ago

sandbergja commented 5 months ago

Before this commit, options_generator arrow functions generated arrays of strings. However, sometimes (as with the Faculty and Professional Staff index), we will need the Select Filter to display a different value than the actual value to filter on. So this commit makes the options_generator return an array of 2-element arrays, representing the filter value and the display value.

Helps with #34