From eea9c251089a3d827a06b4d01098c72bbe68749d Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 10 Oct 2019 11:59:50 +0000 Subject: [PATCH] [Trunk | Library]: deletedByInference: [Bug fix] Remove parsing and view of 'fundedByProjects' field ('projectsProvenanceVocabulary' which was used is deleted). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57335 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../deletedByInference.component.ts | 15 --------------- .../deletedByInference.service.ts | 18 ++---------------- utils/entities/resultLandingInfo.ts | 2 +- 3 files changed, 3 insertions(+), 32 deletions(-) diff --git a/landingPages/result/deletedByInference/deletedByInference.component.ts b/landingPages/result/deletedByInference/deletedByInference.component.ts index a0113c16..23e3e6cc 100644 --- a/landingPages/result/deletedByInference/deletedByInference.component.ts +++ b/landingPages/result/deletedByInference/deletedByInference.component.ts @@ -43,21 +43,6 @@ import {DeletedByInferenceService} from './deletedByInference.service'; -
- Project: - - {{project['funderShortname']?project['funderShortname']:project['funderName']}} - | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}} ({{project.code}}){{project['funderShortname']?project['funderShortname']:project['funderName']}} | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}}({{project.code}}), - - ... -
-
Download From: diff --git a/landingPages/result/deletedByInference/deletedByInference.service.ts b/landingPages/result/deletedByInference/deletedByInference.service.ts index c95c865b..6b7662b7 100644 --- a/landingPages/result/deletedByInference/deletedByInference.service.ts +++ b/landingPages/result/deletedByInference/deletedByInference.service.ts @@ -22,10 +22,10 @@ export class DeletedByInferenceService { return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url) //.map(res => res.json()) .pipe(map(res => res['results'])) - .pipe(map(res => this.parseDeletedByInferenceResults(res, properties))); + .pipe(map(res => this.parseDeletedByInferenceResults(res))); } - parseDeletedByInferenceResults (_results: any, properties: EnvProperties): ResultLandingInfo[] { + parseDeletedByInferenceResults (_results: any): ResultLandingInfo[] { /*title, authors, abstract, List of projects, PIDs, collectedfrom (link pointing to the download url), access rights*/ @@ -79,20 +79,6 @@ export class DeletedByInferenceService { result.countries = this.parsingFunctions.parseCountries(_result['oaf:result']['country']); } - if(_result['oaf:result'] && _result['oaf:result']['rels'] && _result['oaf:result']['rels']['rel']) { - let relation; - let length = Array.isArray(_result['oaf:result']['rels']['rel']) ? _result['oaf:result']['rels']['rel'].length : 1; - - for(let i=0; i