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

Courses page should optionally display shortname

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Course
    • Labels:
      None
    • Testing Instructions:
      Hide

      1) On a default Moodle install with some courses, view the /course/ page.

      • Verify that the courses shown on this page do not show the short name.
        2) Go to the edit version of the page from admin Courses / Add/edit courses and click into a category.
      • Verify that the courses shown on this page do not show the short name.
        3) Visit the admin settings Appearance / Courses
        4) Change the option 'Display shortname' to tick the box and save.
        5) Return to /course/
      • Verify that each course shown on the page now is in the format 'CF101 Introduction to filesharing' (both shortname and fullname).
        6) Go to the edit version of the page from admin Courses / Add/edit courses and click into a category.
      • Verify that each course shown on the page now is in the format 'CF101 Introduction to filesharing' (both shortname and fullname).
      Show
      1) On a default Moodle install with some courses, view the /course/ page. Verify that the courses shown on this page do not show the short name. 2) Go to the edit version of the page from admin Courses / Add/edit courses and click into a category. Verify that the courses shown on this page do not show the short name. 3) Visit the admin settings Appearance / Courses 4) Change the option 'Display shortname' to tick the box and save. 5) Return to /course/ Verify that each course shown on the page now is in the format 'CF101 Introduction to filesharing' (both shortname and fullname). 6) Go to the edit version of the page from admin Courses / Add/edit courses and click into a category. Verify that each course shown on the page now is in the format 'CF101 Introduction to filesharing' (both shortname and fullname).
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-29719-master

      Description

      The /course/ page in Moodle only displays course full names.

      For example, if you have a course where the shortname is CF101 and the full name is 'Introduction to creative file sharing', then the /course/ page will only display 'Introduction to creative file sharing'.

      In the OU system each course has a name (=fullname) and a code (=shortname). Staff need to be able to refer to courses by the code.

      There are two workarounds:

      1) We could include the course code in the fullname, so that the shortname is 'CF101' and the fullname is 'CF101 Introduction to creative filesharing'. This would work and may well be what is intended by the Moodle use of the names, but seems like unnecessary duplication (and it doesn't work right with other parts of our system where we display these two things separately).

      2) Users can use the search facility to find courses instead of the list. This does work to search shortnames.

      However, it would be a lot better for us if we could display the shortname alongside the fullname (as in, they are going to make me do this one way or another)

      I propose a new feature as follows:

      1) Rename the existing settings page 'Appearance > Course contacts' to 'Appearance > Courses'

      2) Add new checkbox option to this page: 'Display shortname', 'Include shortname as well as fullname on course lists'. $CFG->courselistshortnames=1/0.

      3) Change course/index.php (both the 'view' and 'edit' modes) so that, if this option is turned on, the shortname is displayed before the fullname, separated by a space, in the existing column/location. ('CF101 Introduction to filesharing' from example above)

      There may also be other places where the system shows lists of multiple courses; if this is implemented I will attempt to find them.

      Opinions on this, suggestions of different place to put the settings, etc., are welcome. As it is simple, I will implement it (initial version at least) and provide screenshots shortly.

        Gliffy Diagrams

          Attachments

          1. basic.png
            basic.png
            36 kB
          2. categories.png
            categories.png
            38 kB
          3. editing.png
            editing.png
            49 kB
          4. search.png
            search.png
            34 kB
          5. settings.png
            settings.png
            83 kB

            Issue Links

              Activity

                People

                • Votes:
                  6 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    5/Dec/11