diff --git a/dmp-backend/core/src/main/java/eu/eudat/model/persist/externalfetcher/ExternalFetcherApiSourceConfigurationPersist.java b/dmp-backend/core/src/main/java/eu/eudat/model/persist/externalfetcher/ExternalFetcherApiSourceConfigurationPersist.java
index dc71ab873..b78da406e 100644
--- a/dmp-backend/core/src/main/java/eu/eudat/model/persist/externalfetcher/ExternalFetcherApiSourceConfigurationPersist.java
+++ b/dmp-backend/core/src/main/java/eu/eudat/model/persist/externalfetcher/ExternalFetcherApiSourceConfigurationPersist.java
@@ -160,9 +160,6 @@ public class ExternalFetcherApiSourceConfigurationPersist extends ExternalFetche
this.spec()
.must(() -> !this.isEmpty(item.getContentType()))
.failOn(ExternalFetcherApiSourceConfigurationPersist._contentType).failWith(messageSource.getMessage("Validation_Required", new Object[]{ExternalFetcherApiSourceConfigurationPersist._contentType}, LocaleContextHolder.getLocale())),
- this.spec()
- .must(() -> !this.isEmpty(item.getFirstPage()))
- .failOn(ExternalFetcherApiSourceConfigurationPersist._firstPage).failWith(messageSource.getMessage("Validation_Required", new Object[]{ExternalFetcherApiSourceConfigurationPersist._firstPage}, LocaleContextHolder.getLocale())),
this.spec()
.must(() -> !this.isNull(item.getHttpMethod()))
.failOn(ExternalFetcherApiSourceConfigurationPersist._httpMethod).failWith(messageSource.getMessage("Validation_Required", new Object[]{ExternalFetcherApiSourceConfigurationPersist._httpMethod}, LocaleContextHolder.getLocale())),
diff --git a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts
index 018897aad..2d90dfa50 100644
--- a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts
+++ b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts
@@ -38,6 +38,7 @@ import { ValidationType } from '../../common/enum/validation-type';
import { DescriptionTemplateExternalSelectAuthType } from '@app/core/common/enum/description-template-external-select-auth-type';
import { DmpBlueprintFieldCategory } from '@app/core/common/enum/dmp-blueprint-field-category';
import { DmpUserType } from '@app/core/common/enum/dmp-user-type';
+import { PrefillingSourceSystemTargetType } from '@app/core/common/enum/prefilling-source-system-target-type';
@Injectable()
export class EnumUtils {
@@ -398,5 +399,13 @@ export class EnumUtils {
}
}
+ public toPrefillingSourceSystemTargetTypeString(value: PrefillingSourceSystemTargetType): string {
+ switch (value) {
+ case PrefillingSourceSystemTargetType.Label: return this.language.instant('TYPES.PREFILLING-SOURCE-SYSTEM-TARGET-TYPE.LABEL');
+ case PrefillingSourceSystemTargetType.Description: return this.language.instant('TYPES.PREFILLING-SOURCE-SYSTEM-TARGET-TYPE.DESCRIPTION');
+ case PrefillingSourceSystemTargetType.Tags: return this.language.instant('TYPES.PREFILLING-SOURCE-SYSTEM-TARGET-TYPE.TAGS');
+ }
+ }
+
}
diff --git a/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.html b/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.html
index 0621f41eb..c07270810 100644
--- a/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.html
+++ b/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.html
@@ -40,9 +40,6 @@
-
-
-
@@ -67,12 +64,13 @@
{{'PREFILLING-SOURCE-EDITOR.FIELDS.SYSTEM-TARGET' | translate}}
-
- {{field.get('systemFieldTarget').getError('backendError').message}}
+
+ {{enumUtils.toPrefillingSourceSystemTargetTypeString(systemFieldTarget)}}
+
{{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'PREFILLING-SOURCE-EDITOR.FIELDS.SEMANTIC-TARGET' | translate}}
@@ -99,8 +97,9 @@
+
+ type="button" (click)="submitFields()" [disabled]="!formGroup.get('definition').get('fields').valid">{{'PREFILLING-SOURCE-EDITOR.ACTIONS.SUBMIT-FIELDS' | translate}}
diff --git a/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.ts b/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.ts
index 3ce89ed69..c5c6ebeba 100644
--- a/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.ts
+++ b/dmp-frontend/src/app/ui/admin/prefilling-source/editor/prefilling-source-editor.component.ts
@@ -29,6 +29,7 @@ import { PrefillingSourceDefinitionEditorModel, PrefillingSourceEditorModel } fr
import { ResultFieldsMappingConfigurationEditorModel } from '@app/ui/external-fetcher/external-fetcher-source-editor.model';
import { SemanticsService } from '@app/core/services/semantic/semantics.service';
import { MatCheckboxChange } from '@angular/material/checkbox';
+import { PrefillingSourceSystemTargetType } from '@app/core/common/enum/prefilling-source-system-target-type';
@Component({
selector: 'app-prefilling-source-editor-component',
@@ -42,6 +43,7 @@ export class PrefillingSourceEditorComponent extends BaseEditor
(PrefillingSourceSystemTargetType);
protected get canDelete(): boolean {
return !this.isDeleted && !this.isNew && this.hasPermission(this.authService.permissionEnum.DeletePrefillingSource);
@@ -190,9 +192,6 @@ export class PrefillingSourceEditorComponent extends BaseEditor{{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'REFERENCE-TYPE-EDITOR.FIELDS.SOURCE-TYPE' | translate}}
@@ -288,7 +288,7 @@
- {{'REFERENCE-TYPE-EDITOR.FIELDS.REFERENCE-TYPE' | translate}}
+ {{'REFERENCE-TYPE-EDITOR.FIELDS.DEPENDENCY' | translate}}
{{referenceType.code}}
@@ -355,5 +355,4 @@
- {{formGroup.value | json}}
\ No newline at end of file
diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json
index 2e831445e..ec587ef85 100644
--- a/dmp-frontend/src/assets/i18n/en.json
+++ b/dmp-frontend/src/assets/i18n/en.json
@@ -1529,6 +1529,7 @@
"TYPE": "Type",
"SEPARATOR": "Separator",
"DEPENDENCIES": "Dependencies",
+ "DEPENDENCY": "Dependency",
"REQUIRED": "Required",
"DEFAULT-VALUE": "Default Value",
"CASE": "Case",
@@ -1591,6 +1592,8 @@
"PREFILLING-SOURCE-EDITOR": {
"NEW": "New Prefilling Source",
"FIELDS": {
+ "SOURCE-CONFIGURATION":"Search Source Configuration",
+ "GET-SOURCE-CONFIGURATION": "Get Source Configuration",
"LABEL": "Label",
"FIELD": "Field",
"CODE": "Code",
@@ -1606,7 +1609,7 @@
"DELETE": "Delete",
"ADD-FIELD": "Add Field",
"REMOVE-FIELD": "Remove Field",
- "SUBMIT-FIELDS": "Submit"
+ "SUBMIT-FIELDS": "Submit Fields"
},
"CONFIRM-DELETE-DIALOG": {
"MESSAGE": "Would you like to delete this Prefilling Source?",
@@ -2489,6 +2492,11 @@
"SYSTEM": "System",
"EXTRA": "Custom",
"REFERENCE-TYPE": "External Reference"
+ },
+ "PREFILLING-SOURCE-SYSTEM-TARGET-TYPE": {
+ "LABEL": "Label",
+ "DESCRIPTION": "Description",
+ "TAGS": "Tags"
}
},
"ADDRESEARCHERS-EDITOR": {