@dmptool/utils 1.0.15 → 1.0.16
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/maDMP.js +1 -8
- package/package.json +1 -1
package/dist/maDMP.js
CHANGED
|
@@ -382,14 +382,6 @@ const loadNarrativeTemplateInfo = async (rdsConnectionParams, planId) => {
|
|
|
382
382
|
sectionCount: (_b = (_a = results === null || results === void 0 ? void 0 : results[0]) === null || _a === void 0 ? void 0 : _a.section) === null || _b === void 0 ? void 0 : _b.length,
|
|
383
383
|
questionCount: (_f = (_e = (_d = (_c = results === null || results === void 0 ? void 0 : results[0]) === null || _c === void 0 ? void 0 : _c.section) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.question) === null || _f === void 0 ? void 0 : _f.length
|
|
384
384
|
}, 'Loaded narrative information');
|
|
385
|
-
// Sort the questions by display order
|
|
386
|
-
results[0].section.forEach((section) => {
|
|
387
|
-
section.question.sort((a, b) => a.questionOrder - b.questionOrder);
|
|
388
|
-
});
|
|
389
|
-
// Sort the sections by display order
|
|
390
|
-
results[0].section.sort((a, b) => {
|
|
391
|
-
return a.sectionOrder - b.sectionOrder;
|
|
392
|
-
});
|
|
393
385
|
return {
|
|
394
386
|
id: results[0].templateId,
|
|
395
387
|
title: results[0].templateTitle,
|
|
@@ -549,6 +541,7 @@ const buildDMPToolExtensions = async (rdsConnectionParams, applicationName, doma
|
|
|
549
541
|
};
|
|
550
542
|
// Generate the DMP Narrative
|
|
551
543
|
const narrative = await loadNarrativeTemplateInfo(rdsConnectionParams, plan.id);
|
|
544
|
+
rdsConnectionParams.logger.debug({ narrative }, 'Loaded narrative information');
|
|
552
545
|
// Fetch the research domain if one was specified
|
|
553
546
|
const research_domain = project.dmptool_research_domain
|
|
554
547
|
? { name: project.dmptool_research_domain }
|
package/package.json
CHANGED