[develop | DONE | ADDED] Add Organization refine field in results for Connect

This commit is contained in:
argirok 2024-07-17 13:25:44 +03:00
parent ac200a89ac
commit ed7ee4b4a3
3 changed files with 11 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export class ConnectHelper {
if(properties.environment == "development" && if(properties.environment == "development" &&
(properties.adminToolsPortalType == "connect" || properties.adminToolsPortalType == "community" (properties.adminToolsPortalType == "connect" || properties.adminToolsPortalType == "community"
|| properties.adminToolsPortalType == "aggregator" || properties.adminToolsPortalType == "eosc")) { || properties.adminToolsPortalType == "aggregator" || properties.adminToolsPortalType == "eosc")) {
domain = "covid-19.openaire.eu"; //for testing // domain = "covid-19.openaire.eu"; //for testing
} }
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix
if (domain.indexOf('eosc-portal.eu') != -1) { if (domain.indexOf('eosc-portal.eu') != -1) {

View File

@ -8,6 +8,7 @@ export interface EnvProperties {
adminToolsPortalType?: PortalType; adminToolsPortalType?: PortalType;
dashboard?: Dashboard; dashboard?: Dashboard;
isDashboard?: boolean; isDashboard?: boolean;
plan?:string;
domain?: string; domain?: string;
enablePiwikTrack?: boolean; enablePiwikTrack?: boolean;
useCache?: boolean; useCache?: boolean;

View File

@ -349,7 +349,15 @@ export class SearchFieldsBase {
operator: "hl", operator: "hl",
equalityOperator: " = ", equalityOperator: " = ",
filterType: "triplet" filterType: "triplet"
} },
["relorganization"]: {
name: OpenaireEntities.ORGANIZATION,
type: "refine",
param: "organization",
operator: "or",
equalityOperator: " exact ",
filterType: "checkbox"
},
}; };
public RESULT_STATIC_FIELD_VALUES: { [key: string]: {"name": string, "id": string, "count": string}[] } = { public RESULT_STATIC_FIELD_VALUES: { [key: string]: {"name": string, "id": string, "count": string}[] } = {