Commit Graph

3 Commits

Author SHA1 Message Date
Ben Busby
b97933d147 Modified opensearch template and autocomplete route
- Changed opensearch suggestions to use POST request
- Added generic data fallback for autocomplete requests
- Moved auto form submit to only occur when clicking on specific result
2020-05-24 13:27:36 -06:00
Ben Busby
137b0ef8db Added header template for autocomplete on results view
New header template adds full control over search field on desktop and
mobile, which now allows for autocomplete suggestions on the
results page

Also fixed autocomplete results format, since opensearch requires a
suggestions response of [<original query>, [<suggestion array>]]
2020-05-23 17:20:33 -06:00
Ben Busby
1d0c63c217 Basic autocomplete functionality added
Still need to add support to the opensearch xml template, but otherwise
the main page functionality is working as expected

Adds new route '/autocomplete' that accepts a string query for both GET and POST requests, and returns an array of suggestions

Adds GET and POST tests for autocomplete search as well
2020-05-23 15:38:37 -06:00