-
-
-
close
-
-
-
{{'NAV-BAR.START-NEW-DMP' | translate}}
-
{{'NAV-BAR.START-NEW-DMP-TXT' | translate}}
-
-
-
{{ 'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.OR' | translate }}
-
-
+
+
+
close
+
+
+
{{'NAV-BAR.START-NEW-DMP' | translate}}
+
{{'NAV-BAR.START-NEW-DMP-TXT' | translate}}
+
+
+
{{ 'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.OR' | translate }}
+
+
+
+ info
+
+ {{'GENERAL.START-NEW-DMP-DIALOG.IMPORT' | translate }} {{'GENERAL.START-NEW-DMP-DIALOG.FUNCTION-SUPPORTS' | translate }}
+ {{'GENERAL.START-NEW-DMP-DIALOG.JSON-FILES' | translate }} {{'GENERAL.START-NEW-DMP-DIALOG.PRODUCED' | translate }}
+ {{'GENERAL.START-NEW-DMP-DIALOG.RDA-SPECIFICATIONS' | translate }}
+ {{'GENERAL.START-NEW-DMP-DIALOG.MACHINE-ACTIONABLE' | translate }}
+
+
diff --git a/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.scss b/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.scss
index 10bcb587b..bd6a3b0bf 100644
--- a/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.scss
+++ b/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.scss
@@ -1,11 +1,11 @@
::ng-deep .mat-dialog-container {
- border-radius: 8px;
+ border-radius: 8px;
}
.form-container {
- width: 33rem;
- min-height: 14rem;
- padding: 0.28rem 0.34rem 0.875rem 0.625rem;
+ width: 33rem;
+ min-height: 14rem;
+ padding: 0.28rem 0.34rem 0.875rem 0.625rem;
}
.logo {
@@ -13,42 +13,47 @@
}
.close-icon {
- cursor: pointer;
+ cursor: pointer;
}
.content {
- margin: 2.17rem 2.304rem 1.1875rem 3.065rem;
+ margin: 2.17rem 2.304rem 1.1875rem 3.065rem;
}
-.title, .text {
- font-size: 1.25rem;
- font-weight: lighter;
- color: #000000;
- opacity: 0.8;
+.title,
+.text {
+ font-size: 1.25rem;
+ font-weight: lighter;
+ color: #000000;
+ opacity: 0.8;
}
.title {
- font-size: 2.375rem;
- margin-bottom: 1.1875rem;
+ font-size: 2.375rem;
+ margin-bottom: 1.1875rem;
}
.text {
- margin-bottom: 2.9375rem;
- line-height: 1.9rem;
+ margin-bottom: 2.9375rem;
+ line-height: 1.9rem;
}
.upload-btn {
- background-color: white;
- color: #212121;
- font-weight: bold;
- box-shadow: 0px 3px 6px #1E202029;
- border: 2px solid #212121;
+ background-color: white;
+ color: #212121;
+ font-weight: bold;
+ box-shadow: 0px 3px 6px #1e202029;
+ border: 2px solid #212121;
}
.actions {
- width: 26.667rem;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
+ width: 26.667rem;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.warn {
+ color: #f16868;
}
diff --git a/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.ts b/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.ts
index 1eee5a1cb..47935ff1f 100644
--- a/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.ts
+++ b/dmp-frontend/src/app/ui/dmp/start-new-dmp-dialogue/start-new-dmp-dialog.component.ts
@@ -49,6 +49,7 @@ export class StartNewDmpDialogComponent extends BaseComponent {
uploadFile(event) {
const dialogRef = this.dialog.open(DmpUploadDialogue, {
+ width: '528px',
data: {
fileList: FileList,
success: Boolean,
@@ -57,7 +58,7 @@ export class StartNewDmpDialogComponent extends BaseComponent {
});
dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => {
if (result && result.success) {
- this.dmpService.uploadXml(result.fileList, result.dmpTitle, result.dmpProfiles)
+ this.dmpService.uploadXml(result.fileList[0], result.dmpTitle, result.dmpProfiles)
.pipe(takeUntil(this._destroyed))
.subscribe((complete) => this.onCallbackImportComplete(),
(error) => this.onCallbackImportFail(error.error));
diff --git a/dmp-frontend/src/assets/i18n/de.json b/dmp-frontend/src/assets/i18n/de.json
index 62f2f000b..6be2afaf8 100644
--- a/dmp-frontend/src/assets/i18n/de.json
+++ b/dmp-frontend/src/assets/i18n/de.json
@@ -76,6 +76,15 @@
"CLOSE": "Schließen"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "Alles anzeigen",
"SHOW-MORE": "Mehr anzeigen",
diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json
index 7f921c252..dfd790613 100644
--- a/dmp-frontend/src/assets/i18n/en.json
+++ b/dmp-frontend/src/assets/i18n/en.json
@@ -77,6 +77,15 @@
"CLOSE": "Close"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "View All",
"SHOW-MORE": "Show more",
diff --git a/dmp-frontend/src/assets/i18n/es.json b/dmp-frontend/src/assets/i18n/es.json
index 7d3203ee8..e2784748c 100644
--- a/dmp-frontend/src/assets/i18n/es.json
+++ b/dmp-frontend/src/assets/i18n/es.json
@@ -77,6 +77,15 @@
"CLOSE": "Cerrar"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "Ver todo",
"SHOW-MORE": "Mostrar más",
diff --git a/dmp-frontend/src/assets/i18n/gr.json b/dmp-frontend/src/assets/i18n/gr.json
index e81625cfd..73a293445 100644
--- a/dmp-frontend/src/assets/i18n/gr.json
+++ b/dmp-frontend/src/assets/i18n/gr.json
@@ -77,6 +77,15 @@
"CLOSE": "Κλείσιμο"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "Προβολή όλων",
"SHOW-MORE": "Δείτε περισσότερα",
diff --git a/dmp-frontend/src/assets/i18n/sk.json b/dmp-frontend/src/assets/i18n/sk.json
index 5860fff84..a2587e21b 100644
--- a/dmp-frontend/src/assets/i18n/sk.json
+++ b/dmp-frontend/src/assets/i18n/sk.json
@@ -74,6 +74,15 @@
"CLOSE": "Zatvoriť"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "Pozrieť všetko",
"SHOW-MORE": "Ukázať viac",
diff --git a/dmp-frontend/src/assets/i18n/tr.json b/dmp-frontend/src/assets/i18n/tr.json
index 7510953ff..ed859e7b8 100644
--- a/dmp-frontend/src/assets/i18n/tr.json
+++ b/dmp-frontend/src/assets/i18n/tr.json
@@ -76,6 +76,15 @@
"CLOSE": "Kapat"
}
},
+ "START-NEW-DMP-DIALOG": {
+ "IMPORT": "Import",
+ "FUNCTION-SUPPORTS": "function supports",
+ "JSON-FILES": ".json files",
+ "PRODUCED": "produced",
+ "RDA-SPECIFICATIONS": "according to RDA specifications",
+ "MACHINE-ACTIONABLE": "for machine-actionable DMPs",
+ "UPLOAD-FILE": "Upload File"
+ },
"ACTIONS": {
"VIEW-ALL": "Tümüne Gör",
"SHOW-MORE": "Daha fazla göster",