[develop | DONE | ADDED] Add Organization refine field in results for Connect
This commit is contained in:
parent
ac200a89ac
commit
ed7ee4b4a3
|
@ -12,7 +12,7 @@ export class ConnectHelper {
|
|||
if(properties.environment == "development" &&
|
||||
(properties.adminToolsPortalType == "connect" || properties.adminToolsPortalType == "community"
|
||||
|| 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
|
||||
if (domain.indexOf('eosc-portal.eu') != -1) {
|
||||
|
|
|
@ -8,6 +8,7 @@ export interface EnvProperties {
|
|||
adminToolsPortalType?: PortalType;
|
||||
dashboard?: Dashboard;
|
||||
isDashboard?: boolean;
|
||||
plan?:string;
|
||||
domain?: string;
|
||||
enablePiwikTrack?: boolean;
|
||||
useCache?: boolean;
|
||||
|
|
|
@ -349,7 +349,15 @@ export class SearchFieldsBase {
|
|||
operator: "hl",
|
||||
equalityOperator: " = ",
|
||||
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}[] } = {
|
||||
|
|
Loading…
Reference in New Issue