From 351f5ebaa21b2d1a418578e8f59939d11351fa4b Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 16 Oct 2019 10:18:32 +0000 Subject: [PATCH] [Library|Trunk] Claims: change type of openaire results to "Entity type" add link to the landing page of Openaire results remove cursor-pointer in Basket Title of Sources in the 1st step Autocomplete / entity search service remove unused method (used in old linking UI) git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57384 d315682c-612b-4755-9ff5-7f18f6832af3 --- claims/claim-utils/claimHelper.class.ts | 1 + .../claimProjectSearchForm.component.ts | 5 +++-- .../claimResultSearchForm.component.html | 2 +- .../claimResultSearchForm.component.ts | 16 +++++++++++++--- claims/directLinking/directLinking.component.ts | 2 +- claims/linking/linkingGeneric.component.html | 4 +++- .../selected/ClaimEntityTitle.component.ts | 13 +++++++++++++ .../entitiesAutoComplete.component.ts | 6 ++++-- .../entitiesAutoComplete/entitySearch.service.ts | 4 ++-- 9 files changed, 41 insertions(+), 12 deletions(-) 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 @@