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

Add Book Chapter Search Area

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Book, Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Run unit tests
      2. Setup Solr searching
      3. Create a course with a student in it
      4. Create a book
      5. Create a chapter with "Chapter1" in the content box
      6. Create a chapter with "Chapter2" in the content box
      7. Hide chapter 2
      8. Index site content
      9. Search for Chapter1, make sure that you get a result for Chapter 1, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course.
      10. Search for Chapter2, make sure that you get a result for Chapter 2, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course.
      11. Login as student
      12. Search for Chapter1, make sure that you get a result for Chapter 1, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course.
      13. Search for Chapter2, make sure you get no result
      14. Back as a teacher, edit Chapter 2, and set the content to Chapter2Edit
      15. Index using the scheduled task php admin/tool/task/cli/schedule_task.php --execute="\\core\\task
        search_index_task"
        , make sure it shows 1 document indexed
      16. Search for Chapter2Edit and make sure that you get a result for Chapter 2
      Show
      Run unit tests Setup Solr searching Create a course with a student in it Create a book Create a chapter with "Chapter1" in the content box Create a chapter with "Chapter2" in the content box Hide chapter 2 Index site content Search for Chapter1, make sure that you get a result for Chapter 1, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course. Search for Chapter2, make sure that you get a result for Chapter 2, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course. Login as student Search for Chapter1, make sure that you get a result for Chapter 1, and that the link takes you to that chapter. The "in context" link should take you to the Book, and course should take you to the course. Search for Chapter2, make sure you get no result Back as a teacher, edit Chapter 2, and set the content to Chapter2Edit Index using the scheduled task php admin/tool/task/cli/schedule_task.php --execute="\\core\\task search_index_task" , make sure it shows 1 document indexed Search for Chapter2Edit and make sure that you get a result for Chapter 2
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53612-master

      Description

      We don't currently index the contents of books, but we do of pages.

        Attachments

          Activity

            People

            • Assignee:
              emerrill Eric Merrill
              Reporter:
              emerrill Eric Merrill
              Peer reviewer:
              David Monllaó
              Integrator:
              Dan Poltawski
              Tester:
              John Okely
              Participants:
              Component watchers:
              David Jones, Adrian Greeve, Mihail Geshoski, Peter Dias, Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16