[Library|Trunk]
add organization query restrictions for method numOfSearchOrganizations2 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59193 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
f463131d1d
commit
720396ab2d
|
@ -200,8 +200,16 @@ export class SearchOrganizationsService {
|
||||||
|
|
||||||
numOfSearchOrganizations2(params: string, properties:EnvProperties, refineParams:string=null ):any {
|
numOfSearchOrganizations2(params: string, properties:EnvProperties, refineParams:string=null ):any {
|
||||||
let url = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=organizations";
|
let url = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=organizations";
|
||||||
if(params != "") {
|
var basicQuery = "(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " +
|
||||||
url += "&query=" + params;
|
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or " +
|
||||||
|
"reldatasourcecompatibilityid exact openaire-cris_1.1 or " +
|
||||||
|
"reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*)";
|
||||||
|
|
||||||
|
url += "&query=";
|
||||||
|
if(params!= null && params != '' ) {
|
||||||
|
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")";
|
||||||
|
}else{
|
||||||
|
url +=" ( "+basicQuery+ " ) ";
|
||||||
}
|
}
|
||||||
if(refineParams!= null && refineParams != '' ) {
|
if(refineParams!= null && refineParams != '' ) {
|
||||||
url += refineParams;
|
url += refineParams;
|
||||||
|
|
Loading…
Reference in New Issue