diff --git a/landingPages/landing-utils/parsingFunctions.class.ts b/landingPages/landing-utils/parsingFunctions.class.ts index 4b75a72b..3309514b 100644 --- a/landingPages/landing-utils/parsingFunctions.class.ts +++ b/landingPages/landing-utils/parsingFunctions.class.ts @@ -383,13 +383,37 @@ export class ParsingFunctions { return relatedResearchResults; } - // publication & dataset & software & orp landing : for similarResearchResults - parseSimilarResearchResults(similarResearchResults: { "name": string, "id": string, "date": string, + // publication & dataset & software & orp landing : for supplementaryResearchResults + parseSupplementaryResearchResults(supplementaryResearchResults: { "name": string, "id": string, "date": string, "percentage": number, "class": string}[], relation: any) : { "name": string, "id": string, "date": string, "percentage": number, "class": string }[] { + if(supplementaryResearchResults == undefined) { + supplementaryResearchResults = new Array<{"name": string, "id": string, "date": string, + "percentage": number, "class": string}>(); + } + supplementaryResearchResults.push(this.parseRelatedOrSimilarResearchResult(relation, "trust")); + return supplementaryResearchResults; + } + + // publication & dataset & software & orp landing : for supplementedByResearchResults + parseSupplementedByResearchResults(supplementedByResearchResults: { "name": string, "id": string, "date": string, + "percentage": number, "class": string}[], relation: any) : + { "name": string, "id": string, "date": string, "percentage": number, "class": string }[] { + if(supplementedByResearchResults == undefined) { + supplementedByResearchResults = new Array<{"name": string, "id": string, "date": string, + "percentage": number, "class": string}>(); + } + supplementedByResearchResults.push(this.parseRelatedOrSimilarResearchResult(relation, "trust")); + return supplementedByResearchResults; + } + + // publication & dataset & software & orp landing : for similarResearchResults + parseSimilarResearchResults(similarResearchResults: { "name": string, "id": string, "date": string, + "percentage": number, "class": string}[], relation: any) : + { "name": string, "id": string, "date": string, "percentage": number, "class": string }[] { if(similarResearchResults == undefined) { similarResearchResults = new Array<{"name": string, "id": string, "date": string, - "percentage": number, "class": string}>(); + "percentage": number, "class": string}>(); } similarResearchResults.push(this.parseRelatedOrSimilarResearchResult(relation, "similarity")); return similarResearchResults; diff --git a/landingPages/landing-utils/tabTable.component.ts b/landingPages/landing-utils/tabTable.component.ts index e79c12f3..ebce491a 100644 --- a/landingPages/landing-utils/tabTable.component.ts +++ b/landingPages/landing-utils/tabTable.component.ts @@ -22,14 +22,17 @@ import{EnvProperties} from '../../utils/properties/env-properties'; - - - - - - + + + + + + +
+ {{item['class']}} +
{{item['name']}} diff --git a/landingPages/result/resultLanding.component.html b/landingPages/result/resultLanding.component.html index a5e82ae5..e70045be 100644 --- a/landingPages/result/resultLanding.component.html +++ b/landingPages/result/resultLanding.component.html @@ -17,6 +17,14 @@ +
+ + View relations of this + {{type}} + research data + product + +
The following information is the result of merging @@ -94,7 +102,7 @@
-