Turnitin Module - not allowing non-numeric grades

Turnitin Module - not allowing non-numeric grades

by Charlie Williams -
Number of replies: 0

Hi,

We have started using Turnitin integration on our site and it's working fine.  However, we have some tutors who would like to grade as referral, pass, merit, distinction, which we have set up on the system.

Looking at the code, the Turnitin module generates its own code for the form

unset($options);
        for ($i=0;$i<=100;$i++) {
            $options[$i]=$i;
        }
        $mform->addElement('select', 'grade', get_string('overallgrade', 'turnitintool'), $options);
        turnitintool_modform_help_icon('grade', 'overallgrade', 'turnitintool', $mform);
        $mform->setDefault('grade', 100);

While the moodle assignment uses the system wide code

        $mform->addElement('modgrade', 'grade', get_string('grade'));
        $mform->setDefault('grade', 100);

Is there any reason why I can't swap these bits of code?

Many thanks

Average of ratings: -