diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts
index 66094e595..7494dc6b2 100644
--- a/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts
+++ b/dmp-frontend/src/app/ui/admin/dataset-profile/dataset-profile.module.ts
@@ -44,6 +44,7 @@ import { DatasetProfileEditorValidatorFieldComponent } from './editor/components
import { NgxDropzoneModule } from 'ngx-dropzone';
import { ParseStatus } from './listing/pipe/parse-status.pipe';
import { DatasetProfileTableOfContents } from './table-of-contents/table-of-contents';
+import { DatasetProfileTableOfContentsInternalSection } from './table-of-contents/table-of-contents-internal-section/table-of-contents-internal-section';
@NgModule({
imports: [
@@ -92,7 +93,8 @@ import { DatasetProfileTableOfContents } from './table-of-contents/table-of-cont
DatasetProfileEditorDatasetIdentifierFieldComponent,
DatasetProfileEditorCurrencyFieldComponent,
DatasetProfileEditorValidatorFieldComponent,
- DatasetProfileTableOfContents
+ DatasetProfileTableOfContents,
+ DatasetProfileTableOfContentsInternalSection
],
entryComponents: [
DialogConfirmationUploadDatasetProfiles
diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html
index c1f35e67a..00f667062 100644
--- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html
+++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.html
@@ -33,7 +33,8 @@
false
-->
-
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.FIELDS-TITLE' |
+
+
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.SUB-SECTIONS-TITLE' |
translate}}
- 0" class="col-12">
-
+ 0" class="col-12">
+
{{i + 1}}. {{form.get('sections').get(''+i).get('title').value}}
@@ -62,7 +64,7 @@
diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts
index 9f54487c6..95071fd16 100644
--- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts
+++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts
@@ -15,7 +15,7 @@ import { takeUntil } from 'rxjs/operators';
export class DatasetProfileEditorSectionComponent extends BaseComponent implements OnInit {
@Input() form: FormGroup;
- @Input() dataModel: SectionEditorModel;
+ //@Input() dataModel: SectionEditorModel;
@Input() indexPath: string;
@Input() viewOnly: boolean;
@@ -34,26 +34,26 @@ export class DatasetProfileEditorSectionComponent extends BaseComponent implemen
const field: FieldEditorModel = new FieldEditorModel();
field.id = Guid.create().toString();
fieldSet.fields.push(field);
- if (this.dataModel.fieldSets) {
+ // if (this.dataModel.fieldSets) {
fieldSet.id = Guid.create().toString();
- this.dataModel.fieldSets.push(fieldSet);
- }
+ //this.dataModel.fieldSets.push(fieldSet);
+ //}
(
this.form.get('fieldSets')).push(fieldSet.buildForm());
}
addSectioninSection() {
const section: SectionEditorModel = new SectionEditorModel();
- this.dataModel.sections.push(section);
+ //this.dataModel.sections.push(section);
(this.form.get('sections')).push(section.buildForm());
}
DeleteSectionInSection(index) {
- this.dataModel.sections.splice(index, 1);
+ //this.dataModel.sections.splice(index, 1);
(this.form.get('sections')).removeAt(index);
}
deleteFieldSet(index) {
- this.dataModel.fieldSets.splice(index, 1);
+ //this.dataModel.fieldSets.splice(index, 1);
(this.form.get('fieldSets')).removeAt(index);
}
diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html
index b0be33e63..ea4c54a35 100644
--- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html
+++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html
@@ -69,28 +69,63 @@
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.TITLE' | translate}}
-
+
-
-
+
+
+
+
+
+
+
+
+
+ {{'DATASET-PROFILE-EDITOR.STEPS.FORM.SECTION.FIELDS.FIELDS-TITLE' |
+ translate}}
+
+
+
+
+
+
-
-
+ -->
-
@@ -6,10 +6,11 @@
-
+
+
diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/table-of-contents/table-of-contents.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/table-of-contents/table-of-contents.ts
index 00981444a..858ba8447 100644
--- a/dmp-frontend/src/app/ui/admin/dataset-profile/table-of-contents/table-of-contents.ts
+++ b/dmp-frontend/src/app/ui/admin/dataset-profile/table-of-contents/table-of-contents.ts
@@ -37,7 +37,7 @@ export class DatasetProfileTableOfContents extends BaseComponent implements OnIn
@Output() stepFound = new EventEmitter();
@Output() currentLinks = new EventEmitter();
- @Output() itemClick = new EventEmitter();
+ @Output() itemClick = new EventEmitter();
subscription: Subscription;
@@ -166,13 +166,13 @@ export class DatasetProfileTableOfContents extends BaseComponent implements OnIn
itemClicked(item: ToCEntry){
//leaf node
- this.itemClick.emit([item]);
+ this.itemClick.emit(item);
}
- propagateClickToParent(childIds:ToCEntry[], currentItem: ToCEntry){
- childIds.push(currentItem);
- this.itemClick.emit(childIds);
- }
+ // propagateClickToParent(childIds:ToCEntry[], currentItem: ToCEntry){
+ // childIds.push(currentItem);
+ // this.itemClick.emit(childIds);
+ // }
}