oat-sa / extension-lti-test-review
Extension for reviewing passed tests, with the display of actual and correct answers.
Installs: 5 154
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 44
Forks: 0
Open Issues: 1
Language:JavaScript
Type:tao-extension
Requires
- oat-sa/extension-tao-delivery: >=15.0.0
- oat-sa/extension-tao-delivery-rdf: >=14.0.0
- oat-sa/extension-tao-lti: >=15.4.1
- oat-sa/extension-tao-ltideliveryprovider: >=12.0.0
- oat-sa/extension-tao-outcome: >=13.0.0
- oat-sa/extension-tao-outcomeui: >=11.0.0
- oat-sa/extension-tao-proctoring: >=20.0.0
- oat-sa/extension-tao-testqti: >=48.1.0
- oat-sa/extension-tao-testqti-previewer: >=3.0.0
- oat-sa/generis: >=15.22
- oat-sa/oatbox-extension-installer: ~1.1||dev-master
- oat-sa/tao-core: >=51.2.0
- dev-master
- v3.9.4
- v3.9.3
- v3.9.2
- v3.9.1
- v3.9.0
- v3.8.2.2
- v3.8.2.1
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0.1
- v3.7.0
- v3.6.0
- v3.5.1
- v3.5.0
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.2.0
- v2.1.1.1
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.18.2
- v1.18.1
- v1.18.0
- v1.17.0.2
- v1.17.0.1
- v1.17.0
- v1.16.2
- v1.16.1
- v1.16.0
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.1
- v1.12.2
- v1.12.1
- v1.12.0
- v1.6.1
- v1.6.0
- v1.2.0
- v0.5.0
- v0.2.0
- dev-develop
- dev-release-3.8.2.2
- dev-feature/sonarqube-integration
- dev-fix/TR-3557/review-panel-not-visible-on-ipad
- dev-fix/update-autoRelease-action-with-bot-user
- dev-release-3.7.0.1
- dev-hotfix/AUT-2995/add-brazilian-portuguese-language
- dev-fix/INF-183_grading_progress_status
- dev-feature/AUT-3065
- dev-release-3.7.2
- dev-fix/INF-187/missing-flag-is-externally-graded
- dev-fix/INF-187/item-review-icons-fixed-when-externnaly-scored
- dev-release-2.1.1.1
- dev-feature/TR-3072/generate-translations
- dev-release/1.17.0.2
- dev-release-2.0.2
- dev-release/v1.17.0.1
- dev-remove-jenkinsfile
- dev-fix/BOSA-2-wrong-skipped-status-for-items-with-response
- dev-feature/TAO-8492/review_next_prev-init
This package is auto-updated.
Last update: 2024-10-24 11:23:40 UTC
README
Extension for reviewing passed tests, with the display of actual and correct answers, as well as the number of points for each answer.
Usage
Run composer require "oat-sa/extension-lti-test-review"
for including the code to the project. Install the extension using extension manager or with CLI: php tao/scripts/installExtension.php ltiTestReview
.
LTI calls
To launch the review of a specific delivery execution, use the following endpoint:
https://YOUR_DOMAIN/ltiTestReview/ReviewTool/launch?execution=YOUR_DELIVERY_EXECUTION_URI
The above endpoint without execution
parameter (https://YOUR_DOMAIN/ltiTestReview/ReviewTool/launch
) will use the lis_result_sourcedid
field from launch data to determine delivery execution.
To launch the review of the latest delivery execution for a user, use the following endpoint:
https://YOUR_DOMAIN/ltiTestReview/ReviewTool/launch1p3?delivery=YOUR_DELIVERY_URI
The user id should be provided in the for_user
claim:
{ "https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiSubmissionReviewRequest", "https://purl.imsglobal.org/spec/lti/claim/for_user": { "user_id": "<string>" } }
Requested for review delivery execution can be specified by resource_link_id
claim
(will be launched the latest delivery execution specified by user_id
, delivery_id
and resource_link_id
)
{ "https://purl.imsglobal.org/spec/lti/claim/resource_link": { "id": "unique_Id" } }
For backwards compatibility, the following endpoint allows to select an exact delivery execution, whose id must be provided in a custom claim:
https://YOUR_DOMAIN/ltiTestReview/ReviewTool/launch1p3
{ "https://purl.imsglobal.org/spec/lti/claim/custom": { "execution": "<delivery_execution_id>" } }
LTI options
Various modes are available to review a test. By default the simplest mode is applied, showing only the test as it was passed, with the student's responses and no score.
The following custom parameters control the mode:
When you use the IMS emulator you must remove the prefix custom_
.
Default values
By default the options show_score
and show_correct
are turned off. To turn them on by default you may change the platform configuration, in the file config/ltiTestReview/DeliveryExecutionFinderService.conf.php
:
return new oat\ltiTestReview\models\DeliveryExecutionFinderService([ 'show_score' => false, 'show_correct' => false ]);
Note: This will set the default value of these options for the whole platform. If you enable them by default, you can still disable them using LTI custom parameters.
The default values for custom_review_layout
and custom_section_titles
and custom_item_tooltip
are read from config/ltiTestReview/ReviewPanel.conf.php
:
return new oat\oatbox\config\ConfigurationService(array( 'config' => array( 'reviewLayout' => 'default', 'displaySectionTitles' => true, 'displayItemTooltip' => false ) ));
Note: This will set the default value of these options for the whole platform. If you enable them by default, you can still disable them using LTI custom parameters.