[develop | DONE | CHANGED]: Updated checks for searching organizations collected from openOrgs to apply the new criteria everywhere but productions (to be promoted after testing).

This commit is contained in:
Konstantina Galouni 2024-12-18 12:39:33 +02:00
parent 1fe88aa7b7
commit e90a1efee3
3 changed files with 4 additions and 4 deletions

View File

@ -252,7 +252,7 @@ export class SearchOrganizationsComponent {
// this.csvParams ="&fq="+this.resourcesQuery;
// }
let openOrgsId = properties.environment == "beta" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
let openOrgsId = properties.environment != "production" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
var basicQuery = "(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " +
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or " +
"reldatasourcecompatibilityid exact openaire-cris_1.1 or " +

View File

@ -60,7 +60,7 @@ export class SearchOrganizationsService {
advancedSearchOrganizations (params: string, page: number, size: number, properties:EnvProperties, refineParams:string=null, refineFields:string[] =null, refineQuery:string = null, minRef: boolean = false):any {
// &type=organizations
let url = properties.searchAPIURLLAst+"resources2/?format=json";
let openOrgsId = properties.environment == "beta" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
let openOrgsId = properties.environment != "production" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
var basicQuery = "(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " +
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or " +
"reldatasourcecompatibilityid exact openaire-cris_1.1 or " +
@ -224,7 +224,7 @@ export class SearchOrganizationsService {
numOfSearchOrganizations2(params: string, properties:EnvProperties, refineParams:string=null ):any {
let url = properties.searchAPIURLLAst+"resources2/?format=json&size=0&type=organizations";
let openOrgsId = properties.environment == "beta" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
let openOrgsId = properties.environment != "production" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
var basicQuery = "(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " +
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or " +
"reldatasourcecompatibilityid exact openaire-cris_1.1 or " +

View File

@ -61,7 +61,7 @@ export class EntitiesSearchService {
//reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*
let openOrgsId = properties.environment == "beta" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
let openOrgsId = properties.environment != "production" ? "openaire____::0362fcdb3076765d9c0041ad331553e8" : "";
//url += "((oaftype exact organization and deletedbyinference=false )"+
url += "((oaftype exact organization and deletedbyinference=false and"+
"(reldatasourcecompatibilityid=driver or reldatasourcecompatibilityid=driver-openaire2.0 or reldatasourcecompatibilityid=openaire2.0 or reldatasourcecompatibilityid=openaire3.0 or reldatasourcecompatibilityid=openaire4.0 or reldatasourcecompatibilityid=openaire2.0_data or reldatasourcecompatibilityid=hostedBy or relprojectid=* or reldatasourcecompatibilityid = native"+