Skip to content

Commit

Permalink
Merge pull request #73 from turnitin/release_v2020092301
Browse files Browse the repository at this point in the history
Release notes for v2020092301
  • Loading branch information
dwinn authored Sep 23, 2020
2 parents a08e736 + 1e77658 commit 15a573f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 7 deletions.
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
### Date: 2020-September-23
### Release: v2020092301

#### :zap: What's new

---

#### Support for Moodle Quizzes

Turnitin will be usable as a part of a Moodle quiz when Moodle releases the feature. When enabled for your account, simply add an essay question as one of the quiz questions. A similarity report will be generated when the student submits the quiz. Track this release on the [Moodle Tracker](https://tracker.moodle.org/browse/MDL-32226).

#### Privacy API declartion now includes the submission’s contents

The [Moodle Privacy API](https://docs.moodle.org/dev/Privacy_API) helps plugins report what user data a plugin uses so they cna make informed decisions about their personal information. As a part of the Privacy API declartion, we will now includethe contents of the submission to fully support the Privacy APIs goals.

Thanks to [thepurpleblob](https://github.com/turnitin/moodle-mod_turnitintooltwo/issues/464) for the catch!

#### Permission to use the Turnitin Integrity plugin can be limited to individual instructors

Two new permission settings can now be configured that will allow you to specify certain users who have access to the Turnitin Integrity plugin. This can be used to limit use to certain departments or schools within your organization.

You are now able to choose if a user is able to Enable Turnitin Integrity for an assignment, and choose if they are able to view any generated similarity reports.

You can take advantage of this new setting by navigation to Site Administration > Users > Permissions > Check system permissions for the user your wish to give access to.

#### Support for Korean, Japanese, Chinese (Traditional), and Chinese (Simplified)

Our interface has been fully localized into four new languages. Check out our help site for full step-by-step guides in these languages too

#### :wrench: Fixes and enhancements

---

#### EULA screen is now not blank after accepting the Turnitin EULA

Rather than seeing a blank screen, we’ll now show you a simple message confirming that you have accepted our EULA when navigating to <Your Moodle Instance’s URL>/plagiarism/turnitinsim/eula.php?cmd=displayeula

#### Turnitin will only show on activity types we support

Turnitin only supports Moodle assignments, forums, and workshops (and quizzes once released by Moodle!). However, it was possible that the option to enable Turnitin would show on the settings page for activity types we don't support.

To help clear up any confusion, the option to enable Turnitin will now only show on activity types we support.

---

### Date: 2020-July-21
### Release: v2020072101

Expand Down
1 change: 0 additions & 1 deletion classes/submission.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@ public static function get_submission_details($linkarray) {
return $DB->get_record('plagiarism_turnitinsim_sub', array('userid' => $linkarray['userid'],
'cm' => $linkarray['cmid'], 'identifier' => $identifier, 'quizanswer' => $quizanswer));


}

/**
Expand Down
4 changes: 2 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function xmldb_plagiarism_turnitinsim_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2020061202, 'plagiarism', 'turnitinsim');
}

if ($oldversion < 2020090801) {
if ($oldversion < 2020092301) {
(new handle_deprecation)->unset_turnitinsim_use();

$table = new xmldb_table('plagiarism_turnitinsim_sub');
Expand All @@ -301,7 +301,7 @@ function xmldb_plagiarism_turnitinsim_upgrade($oldversion) {
$DB->set_field('plagiarism_turnitinsim_sub', 'quizanswer', 0);
}

upgrade_plugin_savepoint(true, 2020090801, 'plagiarism', 'turnitinsim');
upgrade_plugin_savepoint(true, 2020092301, 'plagiarism', 'turnitinsim');
}

return true;
Expand Down
7 changes: 4 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public function get_links($linkarray) {
context_module::instance($cm->id)
);


// Get the user ID for a quiz submission as it does not exist in the linkarray.
if (!empty($linkarray['file']) && $cm->modname == "quiz") {
$linkarray['userid'] = $DB->get_record(
Expand Down Expand Up @@ -243,9 +242,11 @@ public function get_links($linkarray) {
$submission = new plagiarism_turnitinsim_submission(new plagiarism_turnitinsim_request(), $plagiarismfile->id);
}

// If the user is a student and they are not allowed to view reports, and they have accepted the EULA then return empty output.
// If the user is a student and they are not allowed to view reports,
// and they have accepted the EULA then return empty output.
$plagiarismsettings = $this->get_settings($cm->id);
if (!$instructor && empty($plagiarismsettings->accessstudents) && $submission->getstatus() !== TURNITINSIM_SUBMISSION_STATUS_EULA_NOT_ACCEPTED) {
if (!$instructor && empty($plagiarismsettings->accessstudents) &&
$submission->getstatus() !== TURNITINSIM_SUBMISSION_STATUS_EULA_NOT_ACCEPTED) {
return $output;
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2020090801;
$plugin->version = 2020092301;
$plugin->release = "v1.2";
$plugin->requires = 2017051500;
$plugin->component = 'plagiarism_turnitinsim';
Expand Down

0 comments on commit 15a573f

Please sign in to comment.