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

Define a renderer for book

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2, 2.8.1, 3.7
    • Fix Version/s: None
    • Component/s: Book
    • Labels:
    • Testing Instructions:
      Hide

      Test in Boost and Clean.

      Make sure the patch didn't cause any regressions and the Book pages/features work as expected (as previously). In to make sure that everything works as expected it would be nice if the following MDLQA tests are re-tested:

      https://tracker.moodle.org/browse/MDLQA-12812

      https://tracker.moodle.org/browse/MDLQA-10701

      https://tracker.moodle.org/browse/MDLQA-8123

      https://tracker.moodle.org/browse/MDLQA-7483

      https://tracker.moodle.org/browse/MDLQA-6256

      Additional test: 

      1. Log in as Admin.
      2. Create Course1
      3. Create a several Book resources
      4. Create several chapters and sub-chapters.
      5. Go to the course books index page (/mod/book/index.php?id=COURSEID1)
        • make sure all of the Book instances for the particular Course are properly displayed in the table.
      6. Create a new Course2 without any book resources.
      7. Go to the course books index page (/mod/book/index.php?id=COURSEID2)
        • make sure a notice is displayed stating that the course does not contain any book resources.
      Show
      Test in Boost and Clean. Make sure the patch didn't cause any regressions and the Book pages/features work as expected (as previously). In to make sure that everything works as expected it would be nice if the following MDLQA tests are re-tested: https://tracker.moodle.org/browse/MDLQA-12812 https://tracker.moodle.org/browse/MDLQA-10701 https://tracker.moodle.org/browse/MDLQA-8123 https://tracker.moodle.org/browse/MDLQA-7483 https://tracker.moodle.org/browse/MDLQA-6256 Additional test:  Log in as Admin. Create Course1 Create a several Book resources Create several chapters and sub-chapters. Go to the course books index page (/mod/book/index.php?id=COURSEID1) make sure all of the Book instances for the particular Course are properly displayed in the table . Create a new Course2 without any book resources. Go to the course books index page (/mod/book/index.php?id=COURSEID2) make sure a notice is displayed stating that the course does not contain any book resources.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_28_STABLE, MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-35441-master-2

      Description

      It will be great if we can define a renderer template for book.
      Specially book/tool/index.php needs a cleanup and it will be good if the renderer codes be reused there.

        Attachments

        1. renderer.php
          4 kB
        2. view.php
          6 kB

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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