Open saracarl opened 7 years ago
After a bit of research, I think select2 might be easier to implement. You can acquire a list of the contributors included by the facet using map - for future reference, the code would be something like: <%[:contributors].each do |filter_name|%> <%filter = @search.filter(filter_name)%>
My current thought is to use a type-ahead/ jQuery autocomplete functionality, so that you can type in the first few letters of the authors name and have options based on that. The select2 javascript library is another option if the jQuery-ui autocomplete widget doesn't work out.