@patch-adams/core 1.5.14 → 1.5.15
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 +8 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2545,12 +2545,19 @@ function generateLrsBridgeCode(options) {
|
|
|
2545
2545
|
warn('Missing version GUID - statement may fail Bravais aggregation (document_version_id will be null)');
|
|
2546
2546
|
}
|
|
2547
2547
|
|
|
2548
|
+
// Use packageName (Bravais document name) as the object name when available,
|
|
2549
|
+
// so statements match the searchable document name in Bravais Analytics.
|
|
2550
|
+
// Strip .zip extension to match Bravais convention. Fall back to Rise course title.
|
|
2551
|
+
var objectName = LRS.courseInfo.packageName
|
|
2552
|
+
? LRS.courseInfo.packageName.replace(/.zip$/i, '')
|
|
2553
|
+
: decodeEntities(LRS.courseInfo.title);
|
|
2554
|
+
|
|
2548
2555
|
var obj = {
|
|
2549
2556
|
objectType: 'Activity',
|
|
2550
2557
|
id: LRS.courseInfo.id,
|
|
2551
2558
|
definition: {
|
|
2552
2559
|
type: 'http://xyleme.com/bravais/activities/document',
|
|
2553
|
-
name: { 'en-US':
|
|
2560
|
+
name: { 'en-US': objectName }
|
|
2554
2561
|
}
|
|
2555
2562
|
};
|
|
2556
2563
|
|