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] handle section selection, question titles, pool content [MER-3017] [MER-3018] [MER-3019] #237

Closed andersweinstein closed 8 months ago

andersweinstein commented 8 months ago

This handles migration of selections of sections from pools, as needed for Logic and Proofs migration (and also used in Chem II). A section may contain a mix of content pieces -- typically exactly one at the beginning -- and multiple questions. It works by forming a single merged multi-input (or response_multi) question from the section elements, including all content elements in the question stem and with all constituent questions as parts. This only works for constituent questions of type multi-input, response_multi, or multiple choice, but these are the only types we have encountered in actual courses.

This also adds question titles to stems, needed to migrate the L&P pools, and takes the opportunity to embed any optional common pool prologue content into the question stem in all cases (not just sections).