From 536ba9b900eea05dd5ca2922660ff3276b65123e Mon Sep 17 00:00:00 2001 From: Diamantis Tziotzios Date: Tue, 9 Jan 2024 09:42:58 +0200 Subject: [PATCH] Fixes for #9152 #9153 #9162 #9265 #9266 #9311 #9312 --- .../managers/DataManagementPlanManager.java | 10 ++- .../src/main/resources/documents/h2020.docx | Bin 30266 -> 30387 bytes .../editor/dmp-blueprint-editor.model.ts | 84 +++++++++--------- .../editor/dmp-profile-editor.component.ts | 6 ++ .../dmp-editor-blueprint.component.html | 6 +- .../dmp-editor-blueprint.component.scss | 12 ++- .../dmp/overview/dmp-overview.component.scss | 2 +- dmp-frontend/src/assets/i18n/en.json | 4 +- .../src/assets/resources/skipDisable.json | 1 - 9 files changed, 72 insertions(+), 53 deletions(-) diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java index 3f9b6b184..7726e9200 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java @@ -1422,7 +1422,7 @@ public class DataManagementPlanManager { for (Researcher researcher : dmpEntity.getResearchers()) { XWPFRun runResearcher = systemFieldParagraph.createRun(); runResearcher.addBreak(); - runResearcher.setText("• " + researcher.getLabel()); + runResearcher.setText(researcher.getLabel()); runResearcher.setColor("116a78"); } break; @@ -1430,7 +1430,7 @@ public class DataManagementPlanManager { for (Organisation organisation : dmpEntity.getOrganisations()) { XWPFRun runOrganisation = systemFieldParagraph.createRun(); runOrganisation.addBreak(); - runOrganisation.setText("• " + organisation.getLabel()); + runOrganisation.setText(organisation.getLabel()); runOrganisation.setColor("116a78"); } break; @@ -1581,6 +1581,12 @@ public class DataManagementPlanManager { //runDatasetTitle.setBold(true); //runDatasetTitle.setFontSize(12); + XWPFParagraph descriptionParagraph = document.createParagraph(); + XWPFRun descriptionParagraphRun = descriptionParagraph.createRun(); + descriptionParagraphRun.setText("Description: "); + descriptionParagraphRun.setColor("000000"); + wordBuilder.addParagraphContent(datasetEntity.getDescription(), document, ParagraphStyle.HTML, BigInteger.ZERO, 0); + XWPFParagraph datasetTemplateParagraph = document.createParagraph(); // datasetTemplateParagraph.setStyle("Heading3"); XWPFRun runDatasetTemplate1 = datasetTemplateParagraph.createRun(); diff --git a/dmp-backend/web/src/main/resources/documents/h2020.docx b/dmp-backend/web/src/main/resources/documents/h2020.docx index b0e721ab0234053b1488fd2d6b2b8af8a066d1c2..defd937d3cebd101cc9f654ded15d45e44763143 100644 GIT binary patch delta 11722 zcmaia1#F$YvTZnN8fIo@Y`EcunXzGJ<{fUBc9@xQ2OGvFX_%Rrnd#-f=jt6@czTwW zWPcuyZF!bIYi3$c!Ryb!Yw2L2=HXx>flROraC|5iRD9uIz5tD2S-H8gs%`Na!aRE; zmVQ6I%#^aTAeKqS$3;i5QuvmEZ$f)6o21fsedt|2&f-!{~ zp(nF8!pOEQbfc*A=NO<`G{XH(A&3S{Halfcj>_O+_}Pt%qs~8PsT0c~)4x5J%;hc_ zuJpQ@W9gO2mjBQoKx>os)kKesNvE`caoi1&)mj3H`qAOZ79$RAOMq+cYSr6m@xl@{ zUMQ{9O83EBqTHOU?rE7m#iA0v_}h?)RXB!ysd=zr7|sji!q34-uiE5=O;7+pZk~hP z8hLG+P8lFrA<(a9+Vva45>>#I{Dt4Hl{3hKVHqki@ zlZ<7jv)Gz{Qjhw(^n%nIy?Nsl^k@Cow{^vBvOjAvb%?6_ORGj=UzY4dC?=90_$E0AaRaSuBRv=jYhH{{9 zjIjxreZSqoA1QKYB{N&vS5z())=MVLJD(2oJGJON8Hx-*qd=Fw#za|U z7Zb7FIZ<2R#(A5<&ifTt4T*gAn84x z3t`9nb+|m_x=884E81kolhT@hgSafGZ7}1|ufxxSV8fS(qH{gT*AsIIXLx2uXToM6 z1yfTVH>=lY@XA-uT#f>8ud@x)H+1q)^A3y;K@53R%zcnmAi$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!g_)iG0rA<qcC5ORGgDvl_dC~{anPq=!5 zw<=Rwua=-xVLRDg;z5+UY?5z=+K;cSGB%#MW_A)LFv=8L-L*47n7f98b_wnk+}UV) zXD#tv^TJ7MHD+$jNvpN*NsEOaEGwPEUOb$;HPns~Z&>)SO$=CND!IUEI#8fcfH6D} zp-;t5HY+s8xTQXS`)K~tFHRO<+z z1m*#L@cPvZLk&nCmiYFu+$-cZpq0~yZV+)ut8|7Izim#kTMYX-?Uv|$u72~GkqdDr| zqz-P-yKAFKLsK2L?S~C+ZV+iEJ1&%Zdo77d4?f!VCEF2#M{mI0379Ck0gV3++MHYy z5_-;LaW)@9&AQmg@26(3Y&{U~)`oHw0{CKmkI9&mysY;QyRU{}X6U zUZsW)`p{g~efvfZ4vZ=Ev7oh6T%*Qc{>loz2~(jUISH4M!U|}{_qIfCG+ntky>$G| zRRrOc9^7vS~ z&vrr=Hny^1D-bG2oNCwFPVzfRUF4@&xzuvsdcU%f&d8lcMEmwe641*wPO6vGKc zt!31VIc{4O=9Uonkl?nhhJi*D1c6NLp@)RvvjyX@`o0nuM=HnIH`tpqFSuN{WN_cV zV8yAW9!_w`e093FO;?dFJLfq7J|l6(H=OIw^@uh&%)B8K@WZx6(PW&sdYbQ>t^RFOu4Oi5R$_=*rt9M?5dOcB@WMykYnKnza2=f$GdNHh z$W^KIxj#U%2*#^1Q{H5IIr&`U?sA0#EwDL$ZnE56fSdll;4E`7ARoDAYabC+W=V|Q-!snEfI)s1Xh@a+uVrHW+ay#eWv-`LW9Q1z@cb6SQ z{&zZz`2JtQr>UN(); + public sections: SectionDmpBlueprintEditor[] = new Array(); - fromModel(item: DmpBlueprintDefinition): DmpBlueprintDefinitionEditor { + fromModel(item: DmpBlueprintDefinition): DmpBlueprintDefinitionEditor { if (item.sections) { item.sections.map(x => this.sections.push(new SectionDmpBlueprintEditor().fromModel(x))); } return this; } @@ -62,7 +62,7 @@ export class DmpBlueprintDefinitionEditor { const formBuilder = new FormBuilder(); const formGroup = formBuilder.group({}); const sectionsFormArray = new Array(); - this.sections.forEach(item => { + this.sections.sort((a, b) => a.ordinal - b.ordinal).forEach(item => { const form: FormGroup = item.buildForm(); sectionsFormArray.push(form); }); @@ -72,23 +72,23 @@ export class DmpBlueprintDefinitionEditor { } export class SectionDmpBlueprintEditor { - public id: string; - public label: string; - public description: string; - public ordinal: number; - public fields: FieldInSectionEditor[] = new Array(); + public id: string; + public label: string; + public description: string; + public ordinal: number; + public fields: FieldInSectionEditor[] = new Array(); public hasTemplates: boolean; - public descriptionTemplates: DescriptionTemplatesInSectionEditor[] = new Array(); + public descriptionTemplates: DescriptionTemplatesInSectionEditor[] = new Array(); public validationErrorModel: ValidationErrorModel = new ValidationErrorModel(); - fromModel(item: SectionDmpBlueprint): SectionDmpBlueprintEditor { + fromModel(item: SectionDmpBlueprint): SectionDmpBlueprintEditor { this.id = item.id; this.label = item.label; this.description = item.description; - this.ordinal = item.ordinal; + this.ordinal = item.ordinal; if (item.fields) { item.fields.map(x => this.fields.push(new FieldInSectionEditor().fromModel(x))); } this.hasTemplates = item.hasTemplates; - if (item.descriptionTemplates) { item.descriptionTemplates.map(x => this.descriptionTemplates.push(new DescriptionTemplatesInSectionEditor().fromModel(x))); } + if (item.descriptionTemplates) { item.descriptionTemplates.map(x => this.descriptionTemplates.push(new DescriptionTemplatesInSectionEditor().fromModel(x))); } return this; } @@ -101,14 +101,14 @@ export class SectionDmpBlueprintEditor { ordinal: [{ value: this.ordinal, disabled: disabled }, context.getValidation('ordinal')], hasTemplates: [{ value: this.hasTemplates, disabled: disabled }, context.getValidation('hasTemplates')] }); - const formBuilder = new FormBuilder(); - const fieldsFormArray = new Array(); - this.fields.forEach(item => { + const formBuilder = new FormBuilder(); + const fieldsFormArray = new Array(); + this.fields.sort((a, b) => a.ordinal - b.ordinal).forEach(item => { const form: FormGroup = item.buildForm(); fieldsFormArray.push(form); }); formGroup.addControl('fields', formBuilder.array(fieldsFormArray)); - const descriptionTemplatesFormArray = new Array(); + const descriptionTemplatesFormArray = new Array(); this.descriptionTemplates.forEach(item => { const form: FormGroup = item.buildForm(); descriptionTemplatesFormArray.push(form); @@ -130,25 +130,25 @@ export class SectionDmpBlueprintEditor { } export class FieldInSectionEditor { - public id: string; + public id: string; public category: FieldCategory; - public type: number; - public label: string; - public placeholder: string; - public description: string; - public required: boolean; - public ordinal: number; + public type: number; + public label: string; + public placeholder: string; + public description: string; + public required: boolean; + public ordinal: number; public validationErrorModel: ValidationErrorModel = new ValidationErrorModel(); - fromModel(item: FieldInSection): FieldInSectionEditor { + fromModel(item: FieldInSection): FieldInSectionEditor { this.id = item.id; this.category = item.category; this.type = item.type; this.label = item.label; - this.placeholder = item.placeholder; - this.description = item.description; - this.required = item.required; - this.ordinal = item.ordinal; + this.placeholder = item.placeholder; + this.description = item.description; + this.required = item.required; + this.ordinal = item.ordinal; return this; } @@ -182,19 +182,19 @@ export class FieldInSectionEditor { } export class DescriptionTemplatesInSectionEditor { - public id: string; - public descriptionTemplateId: string; - public label: string; - public minMultiplicity: number; - public maxMultiplicity: number; + public id: string; + public descriptionTemplateId: string; + public label: string; + public minMultiplicity: number; + public maxMultiplicity: number; public validationErrorModel: ValidationErrorModel = new ValidationErrorModel(); - fromModel(item: DescriptionTemplatesInSection): DescriptionTemplatesInSectionEditor { + fromModel(item: DescriptionTemplatesInSection): DescriptionTemplatesInSectionEditor { this.id = item.id; this.descriptionTemplateId = item.descriptionTemplateId; - this.label = item.label; - this.minMultiplicity = item.minMultiplicity; - this.maxMultiplicity = item.maxMultiplicity; + this.label = item.label; + this.minMultiplicity = item.minMultiplicity; + this.maxMultiplicity = item.maxMultiplicity; return this; } @@ -253,4 +253,4 @@ export class DescriptionTemplatesInSectionEditor { // }); // return formGroup; // } -// } \ No newline at end of file +// } diff --git a/dmp-frontend/src/app/ui/admin/dmp-profile/editor/dmp-profile-editor.component.ts b/dmp-frontend/src/app/ui/admin/dmp-profile/editor/dmp-profile-editor.component.ts index 66108cebd..65c604863 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-profile/editor/dmp-profile-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/dmp-profile/editor/dmp-profile-editor.component.ts @@ -249,6 +249,9 @@ export class DmpProfileEditorComponent extends BaseComponent implements AfterVie removeField(sectionIndex: number, fieldIndex: number): void { this.fieldsArray(sectionIndex).removeAt(fieldIndex); + this.fieldsArray(sectionIndex).controls.forEach((field, index) => { + field.get('ordinal').setValue(index + 1); + }); } systemFieldsArray(sectionIndex: number): FormArray { @@ -366,6 +369,9 @@ export class DmpProfileEditorComponent extends BaseComponent implements AfterVie drop(event: CdkDragDrop, sectionIndex: number) { moveItemInArray(this.fieldsArray(sectionIndex).controls, event.previousIndex, event.currentIndex); moveItemInArray(this.fieldsArray(sectionIndex).value, event.previousIndex, event.currentIndex); + this.fieldsArray(sectionIndex).controls.forEach((field, index) => { + field.get('ordinal').setValue(index + 1); + }); } dropSections(event: CdkDragDrop) { diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.html b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.html index e94a96db9..f60d38f2c 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.html +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.html @@ -84,7 +84,7 @@
-
0.1 Title of DMP *
+
Title of DMP *
Title @@ -95,13 +95,13 @@
-
0.2 Description of DMP *
+
Description of DMP *
-
0.3 Blueprint of DMP *
+
Blueprint of DMP *
Select blueprint diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.scss b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.scss index e8209775a..a9283c45b 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.scss +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor-blueprint.component.scss @@ -425,5 +425,13 @@ a:hover { ::ng-deep .input-form .mat-form-field-appearance-outline .mat-form-field-infix { font-size: 1rem; - padding: 0.6em 0 1em 0 !important; -} \ No newline at end of file + // padding: 0.6em 0 1em 0 !important; +} + +::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { + padding: 1em 0 1em 0 !important; +} + +// ::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { +// padding: 0rem 0rem 0.4rem 0rem !important; +// } \ No newline at end of file diff --git a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss index 9833fa58d..5f3773e0b 100644 --- a/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss +++ b/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.scss @@ -332,7 +332,7 @@ vertical-align: bottom; } -::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { +:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-infix { padding: 0rem 0rem 0.4rem 0rem !important; } diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index 8991904c1..0361a9f8e 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -318,7 +318,7 @@ "DATASET-TEMPLATE-REMOVE-USER": "Remove Editor", "DATASET-TEMPLATE-NO-USERS-YET": "... No editors yet", "DATASET-TEMPLATE-VALIDATE-AND-ADD-USER": "Validate and Add Editor", - "DATASET-TEMPLATE-DESCRIPTION-PLACEHOLDER": "Dataset template description", + "DATASET-TEMPLATE-DESCRIPTION-PLACEHOLDER": "Template description", "UNTITLED": "Untitled", "QUESTION": "Question", "TEMPLATE-OUTLINE": "Template outline", @@ -1159,7 +1159,7 @@ "DATASET-SELECTION": "Dataset selection", "DESCRIPTION-INFO": "Description info", "LICENSE-INFO": "License", - "DATASET": "Dataset", + "DATASET": "Description", "PREVIOUS": "Previous", "NEXT": "Next" }, diff --git a/dmp-frontend/src/assets/resources/skipDisable.json b/dmp-frontend/src/assets/resources/skipDisable.json index 61fc34953..3a0850e64 100644 --- a/dmp-frontend/src/assets/resources/skipDisable.json +++ b/dmp-frontend/src/assets/resources/skipDisable.json @@ -1,6 +1,5 @@ [ "DatasetProfileEditorModel.description", - "DatasetProfileEditorModel.type", "DatasetProfileEditorModel.label", "SectionEditorModel.title", "SectionEditorModel.description",