Skip to main content

Function: renderScorm12Manifest()

renderScorm12Manifest(ctx): Promise<string>

Defined in: scorm12/manifest.ts:36

Render the imsmanifest.xml for SCORM 1.2. The template lives as a file so it can be reviewed, version-controlled, and linted independently.

SCORM 1.2 manifest shape (per ADL SCORM 1.2 conformance guide):

  • root <manifest> with identifier, version, and the IMS CP + ADLCP namespaces
  • <metadata> declaring schema=ADL SCORM and schemaversion=1.2, with the LOM externalised via <adlcp:location>metadata.xml</adlcp:location>
  • one <organizations default="..."> with at least one <organization>
  • <resources> with one <resource adlcp:scormtype="sco"> per lesson plus a single shared <resource adlcp:scormtype="asset"> referenced via <dependency>

Parameters

ctx

ManifestContext

Returns

Promise<string>