Skip to content

Commit

Permalink
fix: Course Cleanup and Import Fixes
Browse files Browse the repository at this point in the history
Copied over from openedx-unsupported/openedx-demo-course-new#4

Co-Authored-By: John Swope <[email protected]>
  • Loading branch information
kdmccormick and jswope00 committed Feb 6, 2024
1 parent dd7602e commit 661f848
Show file tree
Hide file tree
Showing 34 changed files with 120 additions and 76 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions demo-course/course/course/demo_course.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<course advanced_modules="[&quot;edx_sga&quot;, &quot;lti&quot;, &quot;scorm&quot;, &quot;library_content&quot;, &quot;annotatable&quot;, &quot;poll&quot;, &quot;survey&quot;, &quot;ubcpi&quot;, &quot;pdf&quot;, &quot;freetextresponse&quot;, &quot;peer_instruction&quot;]" allow_anonymous="true" allow_anonymous_to_peers="true" cert_html_view_enabled="true" course_image="thumbnail_draft.png" discussions_settings="{&quot;enable_in_context&quot;: true, &quot;enable_graded_units&quot;: false, &quot;unit_level_visibility&quot;: true, &quot;provider_type&quot;: &quot;legacy&quot;, &quot;legacy&quot;: {&quot;group_at_subsection&quot;: false}}" display_name="Open edX Demo Course" enable_subsection_gating="true" graceperiod="" instructor_info="{&quot;instructors&quot;: []}" language="en" learning_info="[]" lti_passports="[&quot;codeboard:codeboard_key_1:codeboard_secret_1234&quot;, &quot;jupyter:811a447706c152588c436ee13addeeb889e7f256033679408737bd5bc4118225:869e9639af7de74929b13ae17ad22e4efb60d9d112143e287589289102e1de00&quot;]" minimum_grade_credit="0.8" self_paced="true" start="2020-01-01T00:00:00+00:00" teams_configuration="{&quot;topics&quot;: [{&quot;description&quot;: &quot;A place to join groups that would like to socialize&quot;, &quot;name&quot;: &quot;Social&quot;, &quot;id&quot;: &quot;social&quot;}, {&quot;description&quot;: &quot;A place to join groups that want to organize around specific study topics&quot;, &quot;name&quot;: &quot;Study&quot;, &quot;id&quot;: &quot;study&quot;}], &quot;max_team_size&quot;: 10}" user_partitions="[{&quot;id&quot;: 18587404, &quot;name&quot;: &quot;Content Groups&quot;, &quot;scheme&quot;: &quot;cohort&quot;, &quot;description&quot;: &quot;The groups in this configuration can be mapped to cohorts in the Instructor Dashboard.&quot;, &quot;parameters&quot;: {}, &quot;groups&quot;: [{&quot;id&quot;: 1819362822, &quot;name&quot;: &quot;Content Group A&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 259161138, &quot;name&quot;: &quot;Test&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 205150518, &quot;name&quot;: &quot;Content Group B&quot;, &quot;version&quot;: 1}], &quot;active&quot;: true, &quot;version&quot;: 3}]">
<course advanced_modules="[&quot;edx_sga&quot;, &quot;lti&quot;, &quot;scorm&quot;, &quot;library_content&quot;, &quot;annotatable&quot;, &quot;poll&quot;, &quot;survey&quot;, &quot;ubcpi&quot;, &quot;pdf&quot;, &quot;freetextresponse&quot;, &quot;peer_instruction&quot;]" allow_anonymous="true" allow_anonymous_to_peers="true" cert_html_view_enabled="true" course_image="thumbnail_draft.png" discussions_settings="{&quot;enable_in_context&quot;: true, &quot;enable_graded_units&quot;: false, &quot;unit_level_visibility&quot;: true, &quot;provider_type&quot;: &quot;legacy&quot;, &quot;legacy&quot;: {&quot;group_at_subsection&quot;: false}}" display_name="Open edX Demo Course" enable_subsection_gating="true" graceperiod="" instructor_info="{&quot;instructors&quot;: []}" language="en" learning_info="[]" lti_passports="[&quot;codeboard:codeboard_key_1:codeboard_secret_1234&quot;, &quot;jupyter:811a447706c152588c436ee13addeeb889e7f256033679408737bd5bc4118225:869e9639af7de74929b13ae17ad22e4efb60d9d112143e287589289102e1de00&quot;]" minimum_grade_credit="0.8" self_paced="true" start="2020-01-01T00:00:00Z" teams_configuration="{&quot;topics&quot;: [{&quot;description&quot;: &quot;A place to join groups that would like to socialize&quot;, &quot;name&quot;: &quot;Social&quot;, &quot;id&quot;: &quot;social&quot;}, {&quot;description&quot;: &quot;A place to join groups that want to organize around specific study topics&quot;, &quot;name&quot;: &quot;Study&quot;, &quot;id&quot;: &quot;study&quot;}], &quot;max_team_size&quot;: 10}" user_partitions="[{&quot;id&quot;: 18587404, &quot;name&quot;: &quot;Content Groups&quot;, &quot;scheme&quot;: &quot;cohort&quot;, &quot;description&quot;: &quot;The groups in this configuration can be mapped to cohorts in the Instructor Dashboard.&quot;, &quot;parameters&quot;: {}, &quot;groups&quot;: [{&quot;id&quot;: 1819362822, &quot;name&quot;: &quot;Content Group A&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 259161138, &quot;name&quot;: &quot;Test&quot;, &quot;version&quot;: 1}, {&quot;id&quot;: 205150518, &quot;name&quot;: &quot;Content Group B&quot;, &quot;version&quot;: 1}], &quot;active&quot;: true, &quot;version&quot;: 3}]">
<chapter url_name="30b3fbb840024953b2d4b2e700a53002"/>
<chapter url_name="35283385dd4947619c558f8bb888a031"/>
<chapter url_name="d6780558bc3042c7ab6dd441a06d3478"/>
<chapter url_name="7281f869d5f44704b56d6fe6ee96d886"/>
<chapter url_name="b17a430abc234382a04e7835b013912d"/>
<chapter url_name="478db06a3afb417d87e26c0eafe5e962"/>
<chapter url_name="f788e33b47b6459f946baba48cebdc0f"/>
<wiki slug="Axim.DemoX.demo_course"/>
</course>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions demo-course/course/html/070a0f09bd944fde8b72d46ce34472c2.html

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions demo-course/course/html/07792b00b8c243cfb734ef8aefb1e7bc.html

This file was deleted.

This file was deleted.

5 changes: 5 additions & 0 deletions demo-course/course/html/1e75b1cb182a41f09ee1a1f77da5198d.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="callout">
<h2><strong>Troubleshooting</strong></h2>
<p>If you <em>don't </em>see two random questions, then the library was likely not imported along with the course. Library objects are separate from course objects, which is one of the reasons why they can be referenced by several different courses. </p>
<p>Not to worry, you can follow the video and the "Try It" section below to import a library, or try creating your own. </p>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html filename="1e75b1cb182a41f09ee1a1f77da5198d"/>
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div class="try-it short-content">
<h3>Try it!</h3>
<p>A content library needs to be created outside of a course and so it cannot be packaged along with this demonstration course. Therefore, a video demonstration is included below that shows the creation of a 6 question bank and a quiz created with a random selection of three of the six questions. Each learner will have a unique "drawing" of the three questions and their order. </p>
<p>If you have staff privileges on this course and you <em>do </em>want to add a randomized content library to this course, we've included the steps to help you do so at the bottom of this page. </p>
<p>Below this callout box are two questions. If you inspect these questions in Studio, you will see that they are randomly pulled from a content library. Not only that, but the questions randomly chosen for you may not be the same as another user in this course. </p>
</div>
5 changes: 3 additions & 2 deletions demo-course/course/html/7b43fdfffd1e4213aa90b9577ba5528a.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

<link rel="stylesheet" type="text/css" href="/static/cm_style_guide_demox.css" />
<script src="/static/feedback.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" type="text/css" href="/static/cm_style_guide_demox.css" />
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
<library_content allow_resetting_children="false" max_count="2" source_library_version=""/>
<library_content allow_resetting_children="false" max_count="2" source_library_id="library-v1:demo+ContentLibrary" source_library_version="65a02a73775dfe9dad8b26d2">
<problem url_name="0895f1b6c0b329e50b90"/>
<problem url_name="fa55e7ce7a529c3aadf2"/>
<problem url_name="73ccaa75b5b6036b48fd"/>
<problem url_name="8a4f31060c1f666f9d75"/>
<problem url_name="c4f36f420bea1c8fb6a8"/>
<problem url_name="861cd64b013d1addc68f"/>
</library_content>
5 changes: 5 additions & 0 deletions demo-course/course/policies/demo_course/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
"self_paced": true,
"start": "2020-01-01T00:00:00Z",
"tabs": [
{
"course_staff_only": false,
"name": "Home",
"type": "course_info"
},
{
"course_staff_only": false,
"name": "Course",
Expand Down
17 changes: 17 additions & 0 deletions demo-course/course/problem/0895f1b6c0b329e50b90.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<problem>
<multiplechoiceresponse>
<label>Which structure is responsible for preventing food from entering the trachea when swallowing?</label>
<choicegroup type="MultipleChoice">
<choice correct="false">A. Bronchi</choice>
<choice correct="true">B. Epiglottis</choice>
<choice correct="false">C. Alveoli</choice>
<choice correct="false">D. Diaphragm</choice>
</choicegroup>
<solution>
<div class="detailed-solution">
<p>Answer: B. Epiglottis</p>
<p>The epiglottis is a flap-like structure that covers the entrance to the trachea when swallowing, preventing food and liquids from entering the airway.</p>
</div>
</solution>
</multiplechoiceresponse>
</problem>
17 changes: 17 additions & 0 deletions demo-course/course/problem/73ccaa75b5b6036b48fd.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<problem>
<multiplechoiceresponse>
<label>Which muscle contracts to help with inhalation during breathing?</label>
<choicegroup type="MultipleChoice">
<choice correct="true">A. Diaphragm</choice>
<choice correct="false">B. Biceps</choice>
<choice correct="false">C. Hamstrings</choice>
<choice correct="false">D. Triceps</choice>
</choicegroup>
<solution>
<div class="detailed-solution">
<p>Answer: A. Diaphragm</p>
<p>The diaphragm contracts during inhalation, increasing the volume of the thoracic cavity and allowing air to be drawn into the lungs.</p>
</div>
</solution>
</multiplechoiceresponse>
</problem>
6 changes: 6 additions & 0 deletions demo-course/course/problem/861cd64b013d1addc68f.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<problem>
<numericalresponse answer="12">
<label>On average, a resting adult takes about _____ breaths per minute.</label>
<formulaequationinput/>
</numericalresponse>
</problem>
17 changes: 17 additions & 0 deletions demo-course/course/problem/8a4f31060c1f666f9d75.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<problem>
<multiplechoiceresponse>
<label>Through which structure does air first enter the respiratory system?</label>
<choicegroup type="MultipleChoice">
<choice correct="true">A. Nostrils</choice>
<choice correct="false">B. Trachea</choice>
<choice correct="false">C. Bronchioles</choice>
<choice correct="false">D. Alveoli</choice>
</choicegroup>
<solution>
<div class="detailed-solution">
<p>Answer: A. Nostrils</p>
<p>Air first enters the respiratory system through the nostrils (or mouth) and then continues down the trachea and into the lungs.</p>
</div>
</solution>
</multiplechoiceresponse>
</problem>
17 changes: 17 additions & 0 deletions demo-course/course/problem/c4f36f420bea1c8fb6a8.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<problem>
<multiplechoiceresponse>
<label>What is the role of the cilia in the respiratory system?</label>
<choicegroup type="MultipleChoice">
<choice correct="false">A. Gas exchange</choice>
<choice correct="false">B. Producing sounds</choice>
<choice correct="true">C. Moving mucus and trapped particles</choice>
<choice correct="false">D. Assisting with the sense of smell</choice>
</choicegroup>
<solution>
<div class="detailed-solution">
<p>Answer: C. Moving mucus and trapped particles</p>
<p>Cilia are tiny hair-like structures that line the airways and move mucus and trapped particles up and out of the respiratory system, helping to keep the airways clear.</p>
</div>
</solution>
</multiplechoiceresponse>
</problem>
17 changes: 17 additions & 0 deletions demo-course/course/problem/fa55e7ce7a529c3aadf2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<problem>
<multiplechoiceresponse>
<label>What is the primary function of the alveoli in the lungs?</label>
<choicegroup type="MultipleChoice">
<choice correct="false">A. Producing mucus</choice>
<choice correct="false">B. Vocalization</choice>
<choice correct="true">C. Gas exchange</choice>
<choice correct="false">D. Humidifying incoming air</choice>
</choicegroup>
<solution>
<div class="detailed-solution">
<p>Answer: C. Gas exchange</p>
<p>The alveoli are tiny sacs in the lungs where oxygen is exchanged for carbon dioxide in the blood.</p>
</div>
</solution>
</multiplechoiceresponse>
</problem>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<vertical display_name="Cohorts">
<html url_name="5dd796da0de64ed782b0ef0e4fa8c2eb"/>
<html url_name="79b901455aba4f8b944a9f735fa00a5b"/>
<html url_name="f5c48d15a4964d18b5ead12c9199915a"/>
<html url_name="7b43fdfffd1e4213aa90b9577ba5528a"/>
</vertical>
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<vertical display_name="Randomized Content">
<html url_name="59c1faa969394e819e67d0c3e31a86e1"/>
<html url_name="5deeaa02f22f4d9fba307ab04cf128fb"/>
<video url_name="90f561aa9dc74324a47c077a583e8397"/>
<library_content url_name="34a4d5e71d974c029cbde1956bd7c820"/>
<html url_name="1e75b1cb182a41f09ee1a1f77da5198d"/>
<video url_name="90f561aa9dc74324a47c077a583e8397"/>
<html url_name="013c611e421e43d6a10857ea388bf510"/>
<html url_name="21d9723b06224af5b5a2cc2edfde7226"/>
<html url_name="dbad3cf2e0b44ce69c3fb14c21ad359e"/>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<video youtube="1.00:kMC9iDosOtY" url_name="5f9918f8cc56430c9051610e1bdc2d3c" display_name="Demo: Content Libraries" edx_video_id="" html5_sources="[]" youtube_id_1_0="kMC9iDosOtY"/>
<video youtube="1.00:kPilJr5GaiI" url_name="5f9918f8cc56430c9051610e1bdc2d3c" display_name="Demo: Content Libraries" edx_video_id="" html5_sources="[]" youtube_id_1_0="kPilJr5GaiI"/>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<video youtube="1.00:aokeN4iqOHI" url_name="d5a54ce52f464acfa7a83ae155712cc3" sub="" transcripts="{&quot;en&quot;: &quot;fdfa686f-8b70-4437-a490-0459cc9f1f2a-en.srt&quot;}" display_name="The Purpose, Power and Reach of the Open edX® Platform" edx_video_id="fdfa686f-8b70-4437-a490-0459cc9f1f2a" html5_sources="[]" youtube_id_1_0="aokeN4iqOHI">
<video youtube="1.00:lVPPPpyUOR4" url_name="d5a54ce52f464acfa7a83ae155712cc3" sub="" transcripts="{&quot;en&quot;: &quot;fdfa686f-8b70-4437-a490-0459cc9f1f2a-en.srt&quot;}" display_name="The Purpose, Power and Reach of the Open edX® Platform" edx_video_id="fdfa686f-8b70-4437-a490-0459cc9f1f2a" html5_sources="[]" youtube_id_1_0="lVPPPpyUOR4">
<video_asset client_video_id="External Video" duration="0.0" image="">
<transcripts>
<transcript language_code="en" file_format="srt" provider="Custom"/>
Expand Down
Binary file modified dist/demo-course.tar.gz
Binary file not shown.

0 comments on commit 661f848

Please sign in to comment.