bug fixes: search/find error | create proper search parameters

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@45443 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2017-01-18 10:44:19 +00:00
parent 2d0f52f263
commit 263ac45f1f
2 changed files with 4 additions and 4 deletions

View File

@ -243,14 +243,14 @@ export class SearchPageComponent {
}
}
this.queryParameters[filter.filterId]=filterLimits;
allLimits+=((filterLimits.length == 0 )?'':"&" +filter.filterId + '='+ filterLimits) ;
allLimits+=(allLimits.length==0?"?":"&")+((filterLimits.length == 0 )?'':filter.filterId + '='+ filterLimits) ;
}
}
if(this.searchUtils.keyword.length > 0 ){
allLimits+='&keyword=' + this.searchUtils.keyword;
allLimits+=(allLimits.length==0?"?":"&")+'keyword=' + this.searchUtils.keyword;
}
if(this.searchUtils.page != 1 && includePage){
allLimits+=((allLimits.length == 0)?'':'&') + 'page=' + this.searchUtils.page;
allLimits+=((allLimits.length == 0)?'?':'&') + 'page=' + this.searchUtils.page;
}
return allLimits;
}

View File

@ -10,7 +10,7 @@
* ];
**/
export const routes: string[] = [
'claims','claim','myclaims','linking','bulk-linking',
'claims','claim','myclaims','linking','bulk-linking','search/find',
'search/person','search/publication','search/project','search/dataset','search/dataprovider','search/organization',
'search/find/people','search/find/publications','search/find/projects','search/find/datasets','search/find/dataproviders','search/find/organizations',
'search/advanced/people','search/advanced/publications','search/advanced/projects','search/advanced/datasets','search/advanced/dataproviders','search/advanced/organizations',