From 188f272ea7eb5ef1d19b19f292a06a0534cd51ce Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Sun, 18 Apr 2021 11:57:35 +0000 Subject: [PATCH] [Library | Trunk]: Numbers: Add refine value on init git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60906 d315682c-612b-4755-9ff5-7f18f6832af3 --- sharedComponents/numbers/numbers.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sharedComponents/numbers/numbers.component.ts b/sharedComponents/numbers/numbers.component.ts index b1697efa..c549f8a8 100644 --- a/sharedComponents/numbers/numbers.component.ts +++ b/sharedComponents/numbers/numbers.component.ts @@ -219,8 +219,11 @@ export class NumbersComponent implements OnInit, OnDestroy { } init(getDatasetsLinked = false, getSoftwareLinked = false, getPublications = true, getDatasets = true, - getSoftware = true, getOther = true, getProjects = true, getDataProviders = true) { + getSoftware = true, getOther = true, getProjects = true, getDataProviders = true, refineValue: string = null) { this.loading = true; + if(refineValue) { + this.refineValue = refineValue; + } let refineParams = (this.refineValue)?('&fq=' + this.refineValue):null; this.subs.push(zip( (getPublications)?this.searchResearchResultsService.numOfSearchResults('publication', '', this.properties, refineParams):this.empty,