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] Add validation utility, adjust purpose types, fix label detection #98

Closed darrensiegel closed 1 year ago

darrensiegel commented 1 year ago

This PR includes two fixes and two enhancements:

  1. Fix: Adjust how the <labels> element from organizations was being detected. The initial impl was improperly reporting that an org that didn't include the labels element was using custom labels.
  2. Fix: Ensure that purpose types align with Torus purpose types for page_link instances, if not, set it to none.
  3. Enhancement: Add a utility script to allow validation of all pages. Usage npm run validate <the directory to torus schemas>. This will validate all pages found in JSON files within the ./out directory.
  4. Enhancement: Adds support for the <extra><anchor/><pronunciation/><translation/></extra> variant of the <extra> tag that is used by modern language courses to show a popup with an optional audio clip that auto-plays.