Revision 59193
Added by Argiro Kokogiannaki almost 4 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/services/searchOrganizations.service.ts | ||
---|---|---|
200 | 200 |
|
201 | 201 |
numOfSearchOrganizations2(params: string, properties:EnvProperties, refineParams:string=null ):any { |
202 | 202 |
let url = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=organizations"; |
203 |
if(params != "") { |
|
204 |
url += "&query=" + params; |
|
203 |
var basicQuery = "(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " + |
|
204 |
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or " + |
|
205 |
"reldatasourcecompatibilityid exact openaire-cris_1.1 or " + |
|
206 |
"reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*)"; |
|
207 |
|
|
208 |
url += "&query="; |
|
209 |
if(params!= null && params != '' ) { |
|
210 |
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")"; |
|
211 |
}else{ |
|
212 |
url +=" ( "+basicQuery+ " ) "; |
|
205 | 213 |
} |
206 | 214 |
if(refineParams!= null && refineParams != '' ) { |
207 | 215 |
url += refineParams; |
Also available in: Unified diff
[Library|Trunk]
add organization query restrictions for method numOfSearchOrganizations2