@patch-adams/core 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +16 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +16 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2311,6 +2311,22 @@ function generateLrsBridgeCode(options) {
|
|
|
2311
2311
|
// This allows filtering by type (video, assessment, interaction) in Analytics
|
|
2312
2312
|
if (activityType) {
|
|
2313
2313
|
courseObj.definition.type = activityType;
|
|
2314
|
+
|
|
2315
|
+
// Also update resourceType extension to human-readable form for Bravais Type column
|
|
2316
|
+
courseObj.definition.extensions = courseObj.definition.extensions || {};
|
|
2317
|
+
var resourceTypeMap = {
|
|
2318
|
+
'https://w3id.org/xapi/video/activity-type/video': 'Video',
|
|
2319
|
+
'https://w3id.org/xapi/audio/activity-type/audio': 'Audio',
|
|
2320
|
+
'http://adlnet.gov/expapi/activities/media': 'Media',
|
|
2321
|
+
'http://adlnet.gov/expapi/activities/assessment': 'Assessment',
|
|
2322
|
+
'http://adlnet.gov/expapi/activities/question': 'Question',
|
|
2323
|
+
'http://adlnet.gov/expapi/activities/interaction': 'Interaction',
|
|
2324
|
+
'http://adlnet.gov/expapi/activities/lesson': 'Lesson',
|
|
2325
|
+
'http://adlnet.gov/expapi/activities/module': 'Module',
|
|
2326
|
+
'http://adlnet.gov/expapi/activities/course': 'Course',
|
|
2327
|
+
'http://xyleme.com/bravais/activities/document': 'Course'
|
|
2328
|
+
};
|
|
2329
|
+
courseObj.definition.extensions['resourceType'] = resourceTypeMap[activityType] || 'Course';
|
|
2314
2330
|
}
|
|
2315
2331
|
|
|
2316
2332
|
// Add activity-specific details to extensions
|