oat-sa/extension-tao-itemqti

extension to create QTI items

Installs: 102 203

Dependents: 15

Suggesters: 0

Security: 0

Stars: 7

Watchers: 46

Forks: 13

Language:JavaScript

Type:tao-extension

v30.21.3 2024-09-23 07:03 UTC

This package is auto-updated.

Last update: 2024-10-03 13:28:06 UTC


README

codecov

extension to create QTI items for TAO

How to import items

Environment Variables

QTI Identifier Validator Pattern - ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN

QTI Item identifiers by default are normalized strings that accepts everything in the pattern /^[a-zA-Z_]{1}[a-zA-Z0-9_\.-]*$/u. If for some reason you want to change this behavior, it's possible by using the environment variable ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN with a different pattern. Example:

# Do not accept dots on the QTI Item identifier
ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN='/^[a-zA-Z_]{1}[a-zA-Z0-9_-]*$/u'

This would mean that case the user tries to save or import an item with an identifier with dots, this would return an error:

Error Provided by ENV_QTI_IDENTIFIER_VALIDATOR_PATTERN environment variable

After that, please always run taoUpdate to make sure that all the configurations were successfully applied.

cd /path/to/tao/app

php tao/scripts/taoUpdate.php

Feature Flags