Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy past of "contentType":"Single Choice Set" keep same subContentId for the question #112

Open
lexflex64 opened this issue Oct 13, 2022 · 0 comments

Comments

@lexflex64
Copy link

Hi,
I created two single questions and duplicated the first one.
We see that the questions have identical subContentIds.
You can see it in the h5p in the zip file or in the json part below.
The "subContentId":"00e2e13c-6645-4c43-90ee-5a7b7004f648"and "subContentId":"cd6d4ee0-6660-4b75-88b3-ef60f12280c0" are duplicated.
I get the info with xAPIevents and I can't link the results to the right question of the H5P.

{ "showCoverPage":false, "bookCover":{ }, "chapters":[ { "params":{ "content":[ { "content":{ "params":{ "choices":[ { "subContentId":"00e2e13c-6645-4c43-90ee-5a7b7004f648", "question":"<p><strong>Test 1<\/strong><\/p>\n\n<p>je l'ai mis en gras et j'ai fait un saut \u00e0 la ligne<\/p>\n", "answers":[ "<p>1<\/p>\n", "<p>2<\/p>\n" ] }, { "subContentId":"cd6d4ee0-6660-4b75-88b3-ef60f12280c0", "question":"<p>Test 2<\/p>\n", "answers":[ "<p>3<\/p>\n", "<p>4<\/p>\n" ] } ], "overallFeedback":[ { "from":0, "to":100 } ], "behaviour":{ "autoContinue":true, "timeoutCorrect":2000, "timeoutWrong":3000, "soundEffectsEnabled":true, "enableRetry":true, "enableSolutionsButton":true, "passPercentage":100 }, "l10n":{} }, "library":"H5P.SingleChoiceSet 1.11", "metadata":{ "contentType":"Single Choice Set", "license":"U", "title":"Test 1 Test2" }, "subContentId":"09239be2-c87d-4a86-bbc5-aa12ca00e199" }, "useSeparator":"auto" }, { "content":{ "params":{ "choices":[ { "subContentId":"4997e068-334f-4fc4-8397-628e926e7e59", "question":"<p>Test 3<\/p>\n", "answers":[ "<p>5<\/p>\n", "<p>6<\/p>\n", "<p>7<\/p>\n" ] }, { "subContentId":"ff125b6b-5231-4cbc-87d9-96fe8a1b69ba", "question":"<p>Test 4<\/p>\n", "answers":[ "<p>8<\/p>\n", "<p>9<\/p>\n", "<p>10<\/p>\n" ] } ], "overallFeedback":[], "behaviour":{}, "l10n":{} }, "library":"H5P.SingleChoiceSet 1.11", "metadata":{}, "subContentId":"cc47e9d1-80b4-4f32-b5ad-f50952c04ef2" }, "useSeparator":"auto" }, { "content":{ "params":{ "choices":[ { "subContentId":"00e2e13c-6645-4c43-90ee-5a7b7004f648", "question":"<p>Test 1 copi\u00e9 coll\u00e9<\/p>\n", "answers":[ "<p>1<\/p>\n", "<p>2<\/p>\n" ] }, { "subContentId":"cd6d4ee0-6660-4b75-88b3-ef60f12280c0", "question":"<p>Test 2 copi\u00e9 coll\u00e9<\/p>\n", "answers":[ "<p>3<\/p>\n", "<p>4<\/p>\n" ] } ], "overallFeedback":[], "behaviour":{}, "l10n":{ "nextButtonLabel":"Question suivante", "showSolutionButtonLabel":"Voir la solution", "retryButtonLabel":"Correction", "solutionViewTitle":"Recommencer", "correctText":"Correct !", "incorrectText":"Incorrect !", "muteButtonLabel":"Couper les retours sons", "closeButtonLabel":"Fermer", "slideOfTotal":"Diapositive :num sur :total", "scoreBarLabel":"Vous avez :num points sur un total de :total", "solutionListQuestionNumber":"Question :num", "a11yShowSolution":"Show the solution. The task will be marked with its correct solution.", "a11yRetry":"Retry the task. Reset all responses and start the task over again." } }, "library":"H5P.SingleChoiceSet 1.11", "metadata":{}, "subContentId":"714fa895-6950-4f4d-a806-b938f8fdbeef" }, "useSeparator":"auto" } ] }, "library":"H5P.Column 1.15", "subContentId":"c78cdf0d-309e-4d1f-86f4-87911495f7a2", "metadata":{} } ],

test-single-choice-set-70.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant