Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

Handle CTAT 1.1 instances #119

Open darrensiegel opened 1 year ago

darrensiegel commented 1 year ago

The Intro to Stats course contains CTAT activity instances that the digest tool does not handle correctly. While the digest tool will successfully convert the course and create a digest, the ingest in Torus fails during the Oli.Ingest.RewireLinks.rewire/3 step due to the missing CTAT resource.

The course SVN branch is: https://svn.oli.cmu.edu/svn/content/statistics/statistics/trunk.

I believe I've found the instances of these activities in the course content by running:

$ find . -type f -name "*.xml" -exec grep -H "cmu-ctat-tutor_1.1.dtd " {} \; | cut -d":" -f1

Which yields:

./content/ctat_stattutor/m4_cell_phones_1q/x-cmu-ctat-tutor2/ctat2_m4_1q_stattutor.xml
./content/ctat_stattutor/m2_body_image_2q/x-cmu-ctat-tutor2/ctat2_m2_2q_stattutor.xml
./content/ctat_stattutor/m3_depression/x-cmu-ctat-tutor2/ctat2_m3_stattutor.xml
./content/ctat_stattutor/m2_X_body_image/x-cmu-ctat-tutor/ctat_m2_X_stattutor.xml
./content/ctat_stattutor/m6_low_birth_weight/x-cmu-ctat-tutor2/ctat2_m6_stattutor.xml
./content/ctat_stattutor/m5_extra_credit/x-cmu-ctat-tutor2/ctat2_m5_stattutor.xml
./content/ctat_stattutor/m7_auto_premiums/x-cmu-ctat-tutor2/ctat2_m7_stattutor.xml
./content/ctat_stattutor/m2_body_image/x-cmu-ctat-tutor2/ctat2_m2_stattutor.xml
./content/ctat_stattutor/m4_cell_phones/x-cmu-ctat-tutor2/ctat2_m4_stattutor.xml
./content/ctat_stattutor/m1_survey_1q/x-cmu-ctat-tutor/ctat_m1_1q_stattutor.xml
./content/ctat_stattutor/m1_survey_1q/x-cmu-ctat-tutor2/ctat2_m1_1q_stattutor.xml
./content/ctat_stattutor/m5_extra_credit_2q/x-cmu-ctat-tutor2/ctat2_m5_2q_stattutor.xml
./content/ctat_stattutor/m1_survey/x-cmu-ctat-tutor/ctat_m1_stattutor.xml
./content/ctat_stattutor/m1_survey/x-cmu-ctat-tutor2/ctat2_m1_stattutor.xml
Ringenberg commented 1 year ago

There might be some additional resources beyond those xml files. I believe there might also be some image and text files that go along with that content, at least it did years ago when originally authored.