@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/index.js CHANGED
@@ -2536,12 +2536,19 @@ function generateLrsBridgeCode(options) {
2536
2536
  warn('Missing version GUID - statement may fail Bravais aggregation (document_version_id will be null)');
2537
2537
  }
2538
2538
 
2539
+ // Use packageName (Bravais document name) as the object name when available,
2540
+ // so statements match the searchable document name in Bravais Analytics.
2541
+ // Strip .zip extension to match Bravais convention. Fall back to Rise course title.
2542
+ var objectName = LRS.courseInfo.packageName
2543
+ ? LRS.courseInfo.packageName.replace(/.zip$/i, '')
2544
+ : decodeEntities(LRS.courseInfo.title);
2545
+
2539
2546
  var obj = {
2540
2547
  objectType: 'Activity',
2541
2548
  id: LRS.courseInfo.id,
2542
2549
  definition: {
2543
2550
  type: 'http://xyleme.com/bravais/activities/document',
2544
- name: { 'en-US': decodeEntities(LRS.courseInfo.title) }
2551
+ name: { 'en-US': objectName }
2545
2552
  }
2546
2553
  };
2547
2554