Simon-Initiative / course-digest

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

[ENHANCEMENT] [MER-3615] handle CTAT tutors using sequence files (Genetics) #265

Closed andersweinstein closed 1 month ago

andersweinstein commented 1 month ago

Some CTAT superactivities of typex-cmu-ctattutors used in Genetics course have an <interface> element referencing a "sequence.xml" file defining a set of problems, rather than an HTML file to be loaded. The use of sequence files cause problems for migrating these superactivities because the sequence files contain asset references that must be translated for use in torus. But these files are not resource files we would otherwise process in any way, rather just webcontent files.

Here we detect this case and handle by constructing a torus variant sequence file with translated URLs and adding it to the webcontent tree, adjusting the sequence file reference in the original superactivity descriptor to point to the torus variant. Because the CTAT superactivity code detects sequence file use by a special filename of "sequence.xml", we put the torus variant in a new /torus/subdirectory of the webcontent folder where the original sequence file was.

This processing requires use of the -w webcontentBundle option to upload the tree of webcontent files.

Course using this: https://svn.oli.cmu.edu/svn/content/genetics/branches/v_1_5/

Sample CTAT superactivity descriptor referencing a sequence file: https://svn.oli.cmu.edu/svn/content/genetics/branches/v_1_5/content/x-cmu-ctattutors/PedigreeAnalysis_Activities/PedigreeAnalysisSeq_class.xml

The referenced sequence file: https://svn.oli.cmu.edu/svn/content/genetics/branches/v_1_5/content/webcontent/PedigreeAnalysis/sequence.xml