@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.cjs
CHANGED
|
@@ -2319,6 +2319,22 @@ function generateLrsBridgeCode(options) {
|
|
|
2319
2319
|
// This allows filtering by type (video, assessment, interaction) in Analytics
|
|
2320
2320
|
if (activityType) {
|
|
2321
2321
|
courseObj.definition.type = activityType;
|
|
2322
|
+
|
|
2323
|
+
// Also update resourceType extension to human-readable form for Bravais Type column
|
|
2324
|
+
courseObj.definition.extensions = courseObj.definition.extensions || {};
|
|
2325
|
+
var resourceTypeMap = {
|
|
2326
|
+
'https://w3id.org/xapi/video/activity-type/video': 'Video',
|
|
2327
|
+
'https://w3id.org/xapi/audio/activity-type/audio': 'Audio',
|
|
2328
|
+
'http://adlnet.gov/expapi/activities/media': 'Media',
|
|
2329
|
+
'http://adlnet.gov/expapi/activities/assessment': 'Assessment',
|
|
2330
|
+
'http://adlnet.gov/expapi/activities/question': 'Question',
|
|
2331
|
+
'http://adlnet.gov/expapi/activities/interaction': 'Interaction',
|
|
2332
|
+
'http://adlnet.gov/expapi/activities/lesson': 'Lesson',
|
|
2333
|
+
'http://adlnet.gov/expapi/activities/module': 'Module',
|
|
2334
|
+
'http://adlnet.gov/expapi/activities/course': 'Course',
|
|
2335
|
+
'http://xyleme.com/bravais/activities/document': 'Course'
|
|
2336
|
+
};
|
|
2337
|
+
courseObj.definition.extensions['resourceType'] = resourceTypeMap[activityType] || 'Course';
|
|
2322
2338
|
}
|
|
2323
2339
|
|
|
2324
2340
|
// Add activity-specific details to extensions
|