bobopinna / moodle-mod_reservation

Moodle Reservation activity module
https://moodle.org/plugins/mod_reservation
GNU General Public License v3.0
5 stars 4 forks source link

Query for Reservation to support global search #4

Closed Lina-LI-Na closed 8 years ago

Lina-LI-Na commented 8 years ago

Hi Roberto. Many thanks for providing this plugin to the community; its functionality is really appreciated by our staff and students, and we’re really grateful to you for your efforts to maintain and update it.

On that note, please could I quickly query whether you have any plans to update the plugin to be fully compatible with Moodle v3.1, and its new Global Search feature in particular? To clarify: while we’ve tested the Reservation plugin under v3.1 and all of the core functionality seems to work fine, we’ve found that instances of the activity are not searchable via v3.1’s Global Search feature. Please see the following screenshot for details, which lists all of the available areas that can searched under v3.1 (note that these settings are available via: Site Administration -> Plugins -> Search -> Manage Global Search):

http://imgur.com/lWWQByE

Note also that the above screenshot was taken on a v3.1 system where the Reservation plugin is installed and available. However, as you can see, the Reservation activity is not listed as being available to be searched. Obviously, this is likely to be a significant problem/cause of confusion for users who might want to search for specific instances of the Reservation activity across Moodle.

I’m not a developer, but my understanding is that mod plugins can be made searchable relatively easily via the addition of a new search class within the plugin’s codebase (located at ../classes/search/activity.php). Please see the following for further details:

https://moodle.org/mod/forum/discuss.php?d=334938 https://docs.moodle.org/31/en/Global_search https://docs.moodle.org/dev/Search_API

We really hope this search capability can be added to Reservation as I’m sure it would be a huge benefit to our users (as well as those of other v3.1 systems) and, again, many thanks for all your efforts to develop this plugin and share it with the community.

Best wishes, Lina