@dmptool/utils 1.0.8 → 1.0.10
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 +3 -1
- package/package.json +1 -1
package/dist/maDMP.js
CHANGED
|
@@ -317,7 +317,7 @@ const loadDatasetInfo = async (rdsConnectionParams, applicationName, projectId,
|
|
|
317
317
|
*/
|
|
318
318
|
const loadRelatedWorksInfo = async (rdsConnectionParams, projectId) => {
|
|
319
319
|
const sql = `
|
|
320
|
-
SELECT w.doi AS identifier, LOWER(wv.workType) AS workType
|
|
320
|
+
SELECT w.doi AS identifier, LOWER(wv.workType) AS workType
|
|
321
321
|
FROM relatedWorks rw
|
|
322
322
|
JOIN workVersions wv ON rw.workVersionId = wv.id
|
|
323
323
|
JOIN works w ON wv.workId = w.id
|
|
@@ -862,6 +862,7 @@ const validateRDACommonStandard = (logger, dmp) => {
|
|
|
862
862
|
if (validationErrors.length > 0) {
|
|
863
863
|
const msg = `Invalid RDA Common Standard: ${validationErrors.join('; ')}`;
|
|
864
864
|
logger.warn({ dmpId: (_b = (_a = dmp === null || dmp === void 0 ? void 0 : dmp.dmp) === null || _a === void 0 ? void 0 : _a.dmp_id) === null || _b === void 0 ? void 0 : _b.identifier }, msg);
|
|
865
|
+
logger.warn({ dmp: dmp === null || dmp === void 0 ? void 0 : dmp.dmp }, 'Full DMP');
|
|
865
866
|
throw new DMPValidationError(msg);
|
|
866
867
|
}
|
|
867
868
|
return dmp;
|
|
@@ -887,6 +888,7 @@ const validateDMPToolExtensions = (logger, dmpId, dmp) => {
|
|
|
887
888
|
if (validationErrors.length > 0) {
|
|
888
889
|
const msg = `Invalid DMP Tool extensions: ${validationErrors.join('; ')}`;
|
|
889
890
|
logger.warn({ dmpId }, msg);
|
|
891
|
+
logger.warn({ dmp }, 'Full DMP Tool extensions');
|
|
890
892
|
throw new DMPValidationError(msg);
|
|
891
893
|
}
|
|
892
894
|
return dmp;
|
package/package.json
CHANGED