@citolab/tspci-qti3
v3.1.0
Published
create a QTI 3 package zip for a PCI
Keywords
Readme
@citolab/tspci-qti3
Builds a QTI 3 package zip that contains:
- 1 assessment item with identifier
ITM-PCI, with your PCI at its default settings - 1 assessment test with a single testPart, section, and the item reference
- a QTI 3 manifest
The item is written by @citolab/pci-authoring, as the
PCI Authoring Profile says an authoring system writes it: every setting as a data-
attribute, the fixed media hidden in the markup (data-pci-media), further modules as qti-interaction-modules, and
the scoring of config.tspci.scoring. It is the same item the tspci dev page downloads as "QTI 3 item" for the settings
and media you choose there, which is why the dev page shows no separate button for this target. A required markup slot
or setting cannot be filled from the command line: the build warns, and an authoring system asks the author.
Usage
- Add the target:
npm run tspci -- add --target qti3- Build the QTI 3 package:
tspci --target qti3The zip is created in qti3-dist/ and includes your PCI bundle from dist/index.js (or package.json main).
A CycloneDX SBOM of the bundle is included in the package as resources/pci/sbom.cdx.json, listed as a
file of the PCI resource in the manifest. QTI has no resource type for a bill of materials, and a
resource that nothing depends on is what manifest driven tooling drops first, so it is a <file> of the
existing PCI resource. A copy is also written next to the zip as
qti3-pci-<typeIdentifier>_<version>.sbom.cdx.json for your own technical documentation.
Use --no-include-sbom to keep it out of the package, or --no-sbom to skip generating one. See
@citolab/tspci for the configuration.
Authoring systems
The item declares the response your PCI fills, from config.tspci.response in package.json
({ "cardinality": "single", "baseType": "integer" }, or a record with fields); without it, single / string.
The authoring descriptor the build writes (dist/authoring.json) is included as resources/pci/authoring.json, a file
of the PCI resource like the SBOM, so an authoring system that imports the package can offer typed settings for your
config.json properties and set up scoring. Use --no-authoring to keep it out. See
@citolab/tspci and the AUTHORING.md of
your project.
