diff --git a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.html b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.html
index 569ed52c2..6aec95f72 100644
--- a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.html
+++ b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.html
@@ -41,11 +41,11 @@
View All
-
-
-
-
+
+
{{chip.name.substring(0, 1).toUpperCase()}}
@@ -57,7 +57,7 @@
- -->
+
+
+
+
+
Associated Users
diff --git a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts
index 3cb61f321..4df8f40d3 100644
--- a/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts
+++ b/dmp-frontend/src/app/dmps/editor/dmp-editor.component.ts
@@ -148,24 +148,24 @@ export class DataManagementPlanEditorComponent implements AfterViewInit {
this.router.navigate(['/invite/' + this.dataManagementPlan.id]);
}
- // filterOrganisations(value: string): void {
+ filterOrganisations(value: string): void {
- // this.filteredOrganisations = undefined;
- // if (value) {
- // this.filteringOrganisationsAsync = true;
+ this.filteredOrganisations = undefined;
+ if (value) {
+ this.filteringOrganisationsAsync = true;
- // this.externalSourcesService.searchDMPOrganizations(value).subscribe(items => {
- // this.filteredOrganisations = items;
- // this.filteringOrganisationsAsync = false;
+ this.externalSourcesService.searchDMPOrganizations(value).subscribe(items => {
+ this.filteredOrganisations = items;
+ this.filteringOrganisationsAsync = false;
- // // this.filteredOrganisations = items.filter((filteredObj: any) => {
- // // return this.objectsModel ? this.objectsModel.indexOf(filteredObj) < 0 : true;
- // // });
+ // this.filteredOrganisations = items.filter((filteredObj: any) => {
+ // return this.objectsModel ? this.objectsModel.indexOf(filteredObj) < 0 : true;
+ // });
- // });
+ });
- // }
- // }
+ }
+ }
filterResearchers(value: string): void {
diff --git a/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.html b/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.html
index 4dc57c4fc..1b55b943f 100644
--- a/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.html
+++ b/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.html
@@ -34,11 +34,11 @@
{{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
-
+ -->
-
+
diff --git a/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.ts b/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.ts
index 3211bf4b4..6896ddf03 100644
--- a/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.ts
+++ b/dmp-frontend/src/app/dmps/wizard/editor/dmp-wizard-editor.component.ts
@@ -117,20 +117,20 @@ export class DataManagementPlanWizardEditorComponent implements AfterViewInit {
filterOrganisations(value: string): void {
this.filteredOrganisations = undefined;
- // if (value) {
- // this.filteringOrganisationsAsync = true;
+ if (value) {
+ this.filteringOrganisationsAsync = true;
- // this.externalSourcesService.searchDMPOrganizations(value).subscribe(items => {
- // this.filteredOrganisations = items;
- // this.filteringOrganisationsAsync = false;
+ this.externalSourcesService.searchDMPOrganizations(value).subscribe(items => {
+ this.filteredOrganisations = items;
+ this.filteringOrganisationsAsync = false;
- // // this.filteredOrganisations = items.filter((filteredObj: any) => {
- // // return this.objectsModel ? this.objectsModel.indexOf(filteredObj) < 0 : true;
- // // });
+ // this.filteredOrganisations = items.filter((filteredObj: any) => {
+ // return this.objectsModel ? this.objectsModel.indexOf(filteredObj) < 0 : true;
+ // });
- // });
+ });
- // }
+ }
}
filterResearchers(value: string): void {
diff --git a/dmp-frontend/src/app/services/external-sources/external-sources.service.ts b/dmp-frontend/src/app/services/external-sources/external-sources.service.ts
index a1d1c0699..e2c7c84fd 100644
--- a/dmp-frontend/src/app/services/external-sources/external-sources.service.ts
+++ b/dmp-frontend/src/app/services/external-sources/external-sources.service.ts
@@ -44,9 +44,9 @@ export class ExternalSourcesService {
return this.http.get(this.actionUrl + "researchers" + "?query=" + like, { headers: this.headers });
}
- public searchDMPOrganizations(organizationscriteria: RequestItem): Observable {
- return this.http.get(this.actionUrl + "organisations" + "?query=" + organizationscriteria.criteria.like, { headers: this.headers });
- }
+ public searchDMPOrganizations(like: string): Observable {
+ return this.http.get(this.actionUrl + "organisations" + "?query=" + like, { headers: this.headers });
+ }//organizationscriteria.criteria.like
public searchDMPProfiles(like: string): Observable {
return this.http.get(this.actionUrl + "datasetprofiles/get" + "?query=" + like, { headers: this.headers });