diff --git a/src/app/shared/searchFields.irish.ts b/src/app/shared/searchFields.irish.ts index 48d719b..93bedb9 100644 --- a/src/app/shared/searchFields.irish.ts +++ b/src/app/shared/searchFields.irish.ts @@ -1,6 +1,29 @@ import {SearchFieldsBase} from "src/app/openaireLibrary/utils/properties/searchFields.base"; +import {properties} from "src/environments/environment"; export class SearchFields extends SearchFieldsBase { + public RESULT_STATIC_FIELDS = ["resultbestaccessright", "type", + "peerreviewed", "isgreen", "isindiamondjournal", "publiclyfunded"]; + + public RESULT_REFINE_FIELDS = [ + "instancetypename", + "openaccesscolor", + properties.environment!='production'?"foslabel":'fos', + "relfunder", "relfundinglevel0_id", "relfundinglevel1_id", "relfundinglevel2_id", + "relproject", "resulthostingdatasource", "community"]; + + RESULT_FIELDS_ORDERED = [ + {type: "refine", title: "", values: ["type"]}, + {type: "refine", title: "", values: ["instancetypename", "peerreviewed"]}, + {type: "refine", title: "", values: ["resultbestaccessright"]}, + {type: "refine", title: "OA Routes", values: ["isgreen", "openaccesscolor", "isindiamondjournal"]}, + {type: "range", title: "", values: ["resultacceptanceyear", "resultacceptanceyear"]}, + {type: "refine", title: "", values: [ + properties.environment!='production'?"foslabel":'fos', "publiclyfunded", "relfunder", + "relfundinglevel0_id", "relfundinglevel1_id", "relfundinglevel2_id", + "relproject", "resulthostingdatasource", "community" + ]} + ]; public static getParameterOrder(fieldId: string, params): number { let fields = [];