diff --git a/claims/claim-utils/claimHelper.class.ts b/claims/claim-utils/claimHelper.class.ts index 4e1c588b..e85ab9ef 100644 --- a/claims/claim-utils/claimHelper.class.ts +++ b/claims/claim-utils/claimHelper.class.ts @@ -34,6 +34,7 @@ export class ClaimProject { public code: string; public jurisdiction: string; public fundingLevel0: string; + public url: string; } export class ClaimContext { diff --git a/claims/claim-utils/claimProjectSearchForm.component.ts b/claims/claim-utils/claimProjectSearchForm.component.ts index ae9d9efc..88222230 100644 --- a/claims/claim-utils/claimProjectSearchForm.component.ts +++ b/claims/claim-utils/claimProjectSearchForm.component.ts @@ -78,7 +78,7 @@ export class ClaimProjectsSearchFormComponent { if(data != null) { this.openaireResultsPage=page; this.openaireResultsNum = data[0]; - this.openaireResults =ClaimProjectsSearchFormComponent.openaire2ClaimEntity(data[1]); + this.openaireResults =ClaimProjectsSearchFormComponent.openaire2ClaimEntity(data[1], this.properties); if(data[2] && data[2].length > 0){ this.filters = this.checkSelectedFilters( data[2], this.prevFilters); } @@ -168,7 +168,7 @@ export class ClaimProjectsSearchFormComponent { } while (clickedComponent); }*/ - static openaire2ClaimEntity(items){ + static openaire2ClaimEntity(items, properties:EnvProperties){ const projects: ClaimEntity[] = []; for(const item of items){ const entity: ClaimEntity = new ClaimEntity(); @@ -176,6 +176,7 @@ export class ClaimProjectsSearchFormComponent { entity.project.funderId = item.funderId; entity.project.funderName = item.funderShortname; entity.id = item.id; + entity.project.url = properties.searchLinkToProject + entity.id; entity.title = item.title.name; entity.project.acronym = item.acronym; entity.project.startDate = item.startYear; diff --git a/claims/claim-utils/claimResultSearchForm.component.html b/claims/claim-utils/claimResultSearchForm.component.html index 6c9ff396..c8f7f7ab 100644 --- a/claims/claim-utils/claimResultSearchForm.component.html +++ b/claims/claim-utils/claimResultSearchForm.component.html @@ -107,7 +107,7 @@