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
This commit is contained in:
argiro.kokogiannaki 2016-12-02 14:28:29 +00:00
parent e3294ac0b3
commit 7a647e71b3
1 changed files with 2 additions and 2 deletions

View File

@ -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 != "") {