-
Improvement
-
Resolution: Fixed
-
Minor
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-60913-search-tabs-master -
Currently all results delivered by Global Search are displayed on a single page. All result types are mixed in together. It is proposed that the results page is refactored to deliver results in 3 tabs. The default tab will show results from courses, the second will show users that match the search criteria and the third tab will show courses themselves.
See attached wire-frames for examples.
This proposed work will be sponsored by abias and Ulm Uni. Catalyst to carry out the work.
Broad tasks that need to implement:
- Update core search renderer and template to support tabs
- Update paged_search method in manager class to handle the three tabbed categories, including returning a complex object of the results
- Update each Solr and Elastic execute_query (and associated methods) to return results split into 3 categories
- Split search results into 3 ordered individual lists for each tab
- Alter export_for_template method in document class to accommodate icons and different results types for each tab.
It should also be noted that the extended aim here is to replace /course/search.php on sites that have Global search enabled and deliver course results via Global search instead. This is to deliver a unified search interface in moodle