-
Improvement
-
Resolution: Fixed
-
Minor
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-62869-include-all-courses-mycourse-fix-new -
Moodle Global Search functionality currently allows users to search for content in either only courses the user is enrolled in, or in all courses the user can enrol in. The option to which method applies is set via a Moodle administration setting.
We would like to have another admin option to support searching for all courses in Moodle (the same way it happens in /course/search.php) Following features should be implemented as part of this change:
- Add a new Moodle Global Search administration setting “Include all courses” (checkbox)
- When this option is enabled Global Search results returned to the user will include name and summary for those courses the user cannot access
- Add an API flag to core Moodle to allow plugins to declare if they support this additional functionality
- Update Moodle core as required to support the required functionality
Example:
- I can not access course 1, but a new setting “Include all courses” is enabled
- I search for "course 1", as long as other site settings allow us to see "course 1" (like if it is listed in course/index.php) we can list "course 1" and it's summary
- I search for "activity 1", we can not list "activity 1" nor "course 1" (even if we just show the course name and description)
This proposed work will be sponsored by abias and Ulm Uni. Catalyst to carry out the work.