[angular-16-irish-monitor | DONE | ADDED]: searchFields.irish.ts: Override from base fields RESULT_STATIC_FIELDS, RESULT_REFINE_FIELDS, Added structure RESULT_FIELDS_ORDERED.
This commit is contained in:
parent
d03d92f027
commit
394b35522b
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue