Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71115

Global search should only take over the front page search when it has equivalent functionality

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.10.2, 4.0
    • 4.0
    • Global search
    • MOODLE_310_STABLE, MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Prerequisites

      1. Login as admin
      2. Navigate to Site administration > Front page > Front page settings
      3. Add Course search box to Front page items when logged in
      4. Navigate to Site administration > Advanced features
      5. Set Enable global search to On

      Global search on, default settings

      1. Login as admin
      2. Navigate to Site administration > Plugins > Search > Search areas
      3. Ensure that the Courses search area is enabled
      4. Navigate to Site administration > Plugins > Search > Manage global search
      5. Set the following settings:
        • Select search engine: Simple search
        • Include all visible courses: Off
      6. Verify that Used for front page course search is No
      7. Navigate to Site home
      8. Type something into Search courses and press Enter
      9. Verify that the page url contains /course/search.php

      Global search on, course search area disabled

      1. Login as admin
      2. Navigate to Site administration > Plugins > Search > Search areas
      3. Ensure that the Courses search area is disabled
      4. Navigate to Site administration > Plugins > Search > Manage global search
      5. Set the following settings:
        • Select search engine: Simple search
        • Include all visible courses: On
      6. Verify that Used for front page course search is No
      7. Navigate to Site home
      8. Type something into Search courses and press Enter
      9. Verify that the page url contains /course/search.php

      Global search on, Include visible courses

      1. Login as admin
      2. Navigate to Site administration > Plugins > Search > Search areas
      3. Ensure that the Courses search area is enabled
      4. Navigate to Site administration > Plugins > Search > Manage global search
      5. Set the following settings:
        • Select search engine: Simple search
        • Include all visible courses: On
      6. Verify that Used for front page course search is Yes
      7. Navigate to Site home
      8. Type something into Search courses and press Enter
      9. Verify that the page url contains /search/index.php

      Status link functionality

      1. Login as admin
      2. Navigate to Site administration > Plugins > Search > Manage global search
      3. Follow the Used for front page course search link
      4. Verify that the Include all visible courses setting is displayed

      Global search off

      1. Login as admin
      2. Navigate to Site administration > Advanced features
      3. Set Enable global search to Off
      4. Save the settings
      5. Navigate to Site administration > Plugins > Search > Manage global search
      6. Verify that Used for front page course search is No
      7. Navigate to Site home
      8. Type something into Search courses and press Enter
      9. Verify that the page url contains /course/search.php
      Show
      Prerequisites Login as admin Navigate to Site administration > Front page > Front page settings Add Course search box to Front page items when logged in Navigate to Site administration > Advanced features Set Enable global search to On Global search on, default settings Login as admin Navigate to Site administration > Plugins > Search > Search areas Ensure that the Courses search area is enabled Navigate to Site administration > Plugins > Search > Manage global search Set the following settings: Select search engine: Simple search Include all visible courses: Off Verify that Used for front page course search is No Navigate to Site home Type something into Search courses and press Enter Verify that the page url contains /course/search.php Global search on, course search area disabled Login as admin Navigate to Site administration > Plugins > Search > Search areas Ensure that the Courses search area is disabled Navigate to Site administration > Plugins > Search > Manage global search Set the following settings: Select search engine: Simple search Include all visible courses: On Verify that Used for front page course search is No Navigate to Site home Type something into Search courses and press Enter Verify that the page url contains /course/search.php Global search on, Include visible courses Login as admin Navigate to Site administration > Plugins > Search > Search areas Ensure that the Courses search area is enabled Navigate to Site administration > Plugins > Search > Manage global search Set the following settings: Select search engine: Simple search Include all visible courses: On Verify that Used for front page course search is Yes Navigate to Site home Type something into Search courses and press Enter Verify that the page url contains /search/index.php Status link functionality Login as admin Navigate to Site administration > Plugins > Search > Manage global search Follow the Used for front page course search link Verify that the Include all visible courses setting is displayed Global search off Login as admin Navigate to Site administration > Advanced features Set Enable global search to Off Save the settings Navigate to Site administration > Plugins > Search > Manage global search Verify that Used for front page course search is No Navigate to Site home Type something into Search courses and press Enter Verify that the page url contains /course/search.php

    Description

      MDL-60916 changed Moodle so that course search was replaced by global search when it is enabled.

      The front page course search will display courses that the user has the capability to view the details of even if they are not enrolled on them or do not have the capability to enrol on them.

      However global search may not always be a suitable replacement for the course search functionality, for example when:

      • The courses search area is disabled as it will then not return any courses at all
      • When Include all visible courses is off and Searchable courses is set to Search within enrolled courses only then only courses the user is enrolled on will be returned.

      Global search should probably only replace the front page search when it's functionality is equivalent.

      Scenario Old course search GS - Courses disabled GS - Include visible off, Search within enrolled courses only GS - Search within all courses the user can access GS - Include visible on
      User is enrolled on the course
      User not enrolled on course, can access it (as guest, or because of other capabilities)
      User not enrolled on the course, cannot access it, but can see it in a category

      The scenarios where the front page course search are useful in the following scenarios:

      1. As an administrator I need to find a course I am not enrolled on to assist another user with a query they have had (and I only have a course name) - In this case GS with Courses enabled and Search within all courses the user can access is probably fine)
      2. As a Student I wish to find an interesting course to self enrol on (In this case Global search would possibly need Include visible on, unless all courses that were self-enrollable also had guest access enabled)

      Attachments

        1. MDL-71115_Test Passed.png
          MDL-71115_Test Passed.png
          408 kB
        2. new-option.png
          new-option.png
          47 kB
        3. screenshot-1.png
          screenshot-1.png
          22 kB

        Issue Links

          Activity

            People

              nmagill Neill Magill
              nmagill Neill Magill
              Joseph Baxter Joseph Baxter
              Ilya Tregubov Ilya Tregubov
              Gladys Basiana Gladys Basiana
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 10 minutes
                  2h 10m