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

Drag-drop questions: Allow answer to have filtered content (Mathjax, Multilang ...)

Details

    • MOODLE_402_STABLE
    • MDL-78662-master
    • Hide

                 

      Scenario 1: Preview question page

      Setup :

      • Go to Site administration -> Filter -> Manage filters
      • Set Mathjax Active "On" and Apply to "Content and headings"               

      Drag and drop into text question type:

      • Preview the question in the question bank
      • We should see the answer with the mathjax equation displayed
      • Drag-drop the item with mathjax to answer

      Expected:

      • The system supports MathJax notation and recognizes the equation during and after attempting
      • The drag-drop item with Mathjax has the same size as other items in the same group.
      • Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
      • It should work as a normal item. We can drag it to answer.

       

      Drag and drop markers question type:

      • Tick on the MathJax checkbox and press Save Changes to enable the filter.
      • Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questions-THC-Q6 Drag Drop Marker-20231124-0303.xml
      • Preview the question in the question bank
      • We should see the drag-drop with the mathjax equation displayed
      • Drag-drop the item with mathjax to answer

      Expected: 

      • The system supports MathJax notation and recognizes the equation during and after attempting
      • The drag-drop item with Mathjax has the same size as other items in the same group.
      • Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
      • It should work as a normal item. We can drag it to answer.

       

      Drag and drop onto image question type:

      • Tick on the MathJax checkbox and press Save Changes to enable the filter.
      • Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questions-THC-Q09 DandD onto images-20231124-0305.xml
      • Preview the question in the question bank
      • We should see the drag-drop with the mathjax equation displayed
      • Drag-drop the item with mathjax to answer

      Expected: 

      • The system supports MathJax notation and recognizes the equation during and after attempting
      • The drag-drop item with Mathjax has the same size as other items in the same group.
      • Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
      • It should work as a normal item. We can drag it to answer.

       

      Scenario 2: Add those questions above to a quiz

      • Attempt the quiz
      • Answer the question by drag-drop items.

      Expected: 

      • The system supports MathJax notation and recognizes the equation during and after attempting
      • The drag-drop item with Mathjax has the same size as other items in the same group.
      • Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape)
      • It should work as a normal item. We can drag it to answer.

      Scenario 3: Multilang filter:

      1. Enable the multilang filter for content and headings.
      2. Install at least one other language, to make test cases work, you need Russian.
      3. Have the site language set to English.
      4. Install the https://moodle.org/plugins/filter_multilang2 plugin.
      5. In a course, go to question bank and import the attached file [^questions-quiz1-MDL-61286-20221214-1556.xml].

      Check preview

      1. In the question bank go to the new imported category MDL-61286 that contains the imported questions.
      2. In the action list select preview on the first question.
      3. In the peview window check that you only see the labels in English.
      4. Drag and drop the correct answers into the spaces and click "Submit and finish" button.
      5. You should see the message "Your answer is correct."
      6. Open the Preview section and click the button "Start again with these options".
      7. When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter.
      8. In the peview window check that you only see the labels in Russian.
      9. Drag and drop the correct answers into the spaces and click "Отправить и завершить" button.
      10. You should see the message "Your answer is correct."
      11. Edit the URL field and add &lang=en at the end of that URL and hit enter.
      12. You see again the submitted data in English. Click the button "Close preview".
      13. Go back to step 2 and continue with the next question.
      Show
                  Scenario 1: Preview question page Setup : Go to Site administration -> Filter -> Manage filters Set Mathjax Active "On" and Apply to "Content and headings"                Drag and drop into text question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag-drop into-text question with a Mathjax equation in the answer or import this question to question bank questions-THC-Q8 Drag Drop into text-20231124-0305.xml Preview the question in the question bank We should see the answer with the mathjax equation displayed Drag-drop the item with mathjax to answer Expected: The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer.   Drag and drop markers question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questions-THC-Q6 Drag Drop Marker-20231124-0303.xml Preview the question in the question bank We should see the drag-drop with the mathjax equation displayed Drag-drop the item with mathjax to answer Expected:  The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer.   Drag and drop onto image question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questions-THC-Q09 DandD onto images-20231124-0305.xml Preview the question in the question bank We should see the drag-drop with the mathjax equation displayed Drag-drop the item with mathjax to answer Expected:  The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer.   Scenario 2: Add those questions above to a quiz Attempt the quiz Answer the question by drag-drop items. Expected:  The system supports MathJax notation and recognizes the equation during and after attempting The drag-drop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the drag-drop box (The equation is displayed in the middle of the drag-drop shape) It should work as a normal item. We can drag it to answer. Scenario 3: Multilang filter: Enable the multilang filter for content and headings. Install at least one other language, to make test cases work, you need Russian. Have the site language set to English. Install the  https://moodle.org/plugins/filter_multilang2  plugin. In a course, go to question bank and import the attached file  [^questions-quiz1-MDL-61286-20221214-1556.xml] . Check preview In the question bank go to the new imported category  MDL-61286  that contains the imported questions. In the action list select preview on the first question. In the peview window check that you only see the labels in English. Drag and drop the correct answers into the spaces and click "Submit and finish" button. You should see the message "Your answer is correct." Open the Preview section and click the button "Start again with these options". When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter. In the peview window check that you only see the labels in Russian. Drag and drop the correct answers into the spaces and click "Отправить и завершить" button. You should see the message "Your answer is correct." Edit the URL field and add &lang=en at the end of that URL and hit enter. You see again the submitted data in English. Click the button "Close preview". Go back to step 2 and continue with the next question.

    Description

      As a question author, I want to be able to use TeX in Drag and Drop Word into Sentence questions so that I have a greater range of question types when I use equations.
      We don't support TeX currently - it displays the input as shown below. 

      Attachments

        Issue Links

          Activity

            People

              vuvanhieu143 Hieu Vu
              vuvanhieu143 Hieu Vu
              Tim Hunt Tim Hunt
              Votes:
              2 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 45 minutes
                  1h 45m

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.