From 7a647e71b34d89f38c0b770912e3aea0dd7d5217 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 2 Dec 2016 14:28:29 +0000 Subject: [PATCH] fix query for publications of data provider git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@44777 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../app/searchPages/simple/searchPublications.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portal-2/src/app/searchPages/simple/searchPublications.component.ts b/portal-2/src/app/searchPages/simple/searchPublications.component.ts index 580049f9..95dc90fb 100644 --- a/portal-2/src/app/searchPages/simple/searchPublications.component.ts +++ b/portal-2/src/app/searchPages/simple/searchPublications.component.ts @@ -142,9 +142,9 @@ public getResultsForEntity(entity:string, id:string, page: number, size: number) public getResultsForDataproviders(id:string, resultsFrom:string, page: number, size: number){ var parameters; if(resultsFrom == "collectedFrom") { - parameters = "publications?"+resultsFrom+"="+id+"&cl=and"; + parameters = "publications?fq=collectedfromdatasourceid exact "+'"'+id+'"'; } else if(resultsFrom == "hostedBy") { - parameters = "publications?"+resultsFrom+"="+id+"&hs=and"; + parameters = "publications?fq=resulthostingdatasourceid exact "+'"'+id+'"'; } if(parameters != "") {