Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36320 META: Move HTML generation from course/lib.php to renderer
  3. MDL-37009

Output course listings throughout the site using renderer

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Test 1:

      1. Create an empty site
      2. Make sure admin can see 'Add course' button on front page (this is fixed in MDL-38592)
      3. Set up course requests: Site Administration -> Courses -> Course requests, add permission 'moodle/course:request' to some user who can not create courses.
      4. Create several courses in Miscellaneous category, ensure all simple actions are where they were before: When manager browses category he can see 'Add course' button, proper user can see 'Request course' button, in top category admin can see 'Courses pending approval' button.
      5. Set language to a RTL language (hebrew) - repeat the previous steps in this test and look for RTL issues.

      Test 2 big site:

      1. You need a site with many courses and categories
      2. You may want to reduce the $CFG->coursesperpage so pagination is displayed more often
      3. Browse all pages listed here and make sure there are no errors:
        http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5#Pages_that_are_affected_by_the_new_renderer_functions

      Test 3 MNET:

      1. Enable MNet, configure two hosts to see each other
      2. make sure you have a student enrolled in some courses on both servers, synchronise enrollments
      3. apply patch suggested in comments in MDL-37027, otherwise list of remote hosts will not be shown at all
      4. as a student login to server1
      5. make sure student can see on the front page the list of his own courses and remote courses form server 2
      6. make sure when student jumps to server2 he can see the server1 on the front page (as a remote host)

      Don't forget to remove the patch from MDL-37027

      Show
      Test 1: Create an empty site Make sure admin can see 'Add course' button on front page (this is fixed in MDL-38592 ) Set up course requests: Site Administration -> Courses -> Course requests, add permission 'moodle/course:request' to some user who can not create courses. Create several courses in Miscellaneous category, ensure all simple actions are where they were before: When manager browses category he can see 'Add course' button, proper user can see 'Request course' button, in top category admin can see 'Courses pending approval' button. Set language to a RTL language (hebrew) - repeat the previous steps in this test and look for RTL issues. Test 2 big site: You need a site with many courses and categories You may want to reduce the $CFG->coursesperpage so pagination is displayed more often Browse all pages listed here and make sure there are no errors: http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5#Pages_that_are_affected_by_the_new_renderer_functions Test 3 MNET: Enable MNet, configure two hosts to see each other make sure you have a student enrolled in some courses on both servers, synchronise enrollments apply patch suggested in comments in MDL-37027 , otherwise list of remote hosts will not be shown at all as a student login to server1 make sure student can see on the front page the list of his own courses and remote courses form server 2 make sure when student jumps to server2 he can see the server1 on the front page (as a remote host) Don't forget to remove the patch from MDL-37027
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-37009-master

      Description

      Output course listings throughout the site using renderers.

      Functions that will be deprecated:

      print_course()
      print_my_moodle()
      print_remote_course()
      print_remote_host()
      print_course_search()

      get_course_category_tree()
      print_whole_category_list()
      print_courses()

      See documentation for upgrade in: http://docs.moodle.org/dev/Courses_lists_upgrade_to_2.5

        Attachments

        1. available_courses.png
          114 kB
          Marina Glancy
        2. categories_only_list_on_frontpage.png
          44 kB
          Marina Glancy
        3. combo_list_on_frontpage.png
          82 kB
          Marina Glancy
        4. course_enrol.png
          85 kB
          Marina Glancy
        5. course_info.png
          81 kB
          Marina Glancy
        6. search_results.png
          115 kB
          Marina Glancy
        7. tagged_courses_(coursesperpage_is_set_to_5).png
          121 kB
          Marina Glancy
        8. x_category_view.png
          86 kB
          Marina Glancy
        9. y_category_view_clicked_on_view_more.png
          93 kB
          Marina Glancy

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13