2017-12-19 13:53:46 +01:00
export class SearchFields {
2018-07-05 12:52:42 +02:00
2017-12-19 13:53:46 +01:00
//main Entities
//RESULTS
2018-07-26 18:38:59 +02:00
//Used for datasets and publications and software and orp
2018-07-05 12:52:42 +02:00
//In case Datasets or Software should display different fields, use seperate tables for fields
2020-02-17 15:19:14 +01:00
// "resultacceptanceyear",
public RESULT_RANGE_FIELDS = [
[ "resultacceptanceyear" , "resultacceptanceyear" ]
] ;
2017-12-19 13:53:46 +01:00
public RESULT_REFINE_FIELDS = [
"relfunder" ,
"relfundinglevel0_id" , "relfundinglevel1_id" , "relfundinglevel2_id" ,
2020-02-17 15:19:14 +01:00
"relproject" ,
2019-01-29 15:25:08 +01:00
"resultbestaccessright" , "instancetypename" , "resultlanguagename" , "community" , "resulthostingdatasource" , "collectedfrom" ] ;
2017-12-19 13:53:46 +01:00
2019-06-24 11:13:06 +02:00
public RESULT_ADVANCED_FIELDS :string [ ] = [ "q" , "resulttitle" , "resultauthor" , "authorid" , "resultdescription" , "resultsubject" , "resultpublisher" ,
2018-07-05 12:52:42 +02:00
"resultbestaccessright" , "community" , "collectedfromdatasourceid" , "resulthostingdatasourceid" , "resultdateofacceptance" ,
"relfunder" ,
2017-12-19 13:53:46 +01:00
"relfundinglevel0_id" , "relfundinglevel1_id" , "relfundinglevel2_id" ,
2019-06-24 11:13:06 +02:00
"resultlanguagename" , "relorganizationid" , "pid" , "relprojectid" , "instancetypename" ] ;
2017-12-19 13:53:46 +01:00
public RESULT_FIELDS : { [ key :string ] : FieldDetails } = {
2020-02-17 15:19:14 +01:00
[ "q" ] : { name : "All fields" , type : "keyword" , param : "q" , operator : "op" , equalityOperator : "=" , filterType : null } ,
[ "resulttitle" ] : { name : "Title" , type : "keyword" , param : "title" , operator : "tt" , equalityOperator : "=" , filterType : null } ,
[ "resultauthor" ] : { name : "Author" , type : "keyword" , param : "author" , operator : "at" , equalityOperator : "=" , filterType : null } ,
[ "authorid" ] : { name : "Author ORCID" , type : "keyword" , param : "orcid" , operator : "oc" , equalityOperator : " exact " , filterType : null } ,
[ "resultsubject" ] : { name : "Subject" , type : "keyword" , param : "subject" , operator : "sb" , equalityOperator : "=" , filterType : null } ,
[ "resultdescription" ] : { name : "Description" , type : "keyword" , param : "description" , operator : "ds" , equalityOperator : "=" , filterType : null } ,
[ "resultpublisher" ] : { name : "Publisher" , type : "keyword" , param : "publisher" , operator : "pb" , equalityOperator : "=" , filterType : null } ,
[ "pid" ] : { name : "PID" , type : "keyword" , param : "pid" , operator : "pd" , equalityOperator : " = " , filterType : null } ,
[ "resulthostingdatasourceid" ] : { name : "Hosting Content Provider" , type : "entity" , param : "hostedBy" , operator : "hs" , equalityOperator : " exact " , filterType : null } ,
[ "resulthostingdatasource" ] : { name : "Content Provider" , type : "refine" , param : "hostedBy" , operator : "hs" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "instancetypename" ] : { name : "Type" , type : "vocabulary" , param : "type" , operator : "tp" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "resultlanguagename" ] : { name : "Language" , type : "vocabulary" , param : "lang" , operator : "ln" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "community" ] : { name : "Community" , type : "refine" , param : "community" , operator : "cm" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relproject" ] : { name : "Project" , type : "refine" , param : "project" , operator : "po" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relprojectid" ] : { name : "Project" , type : "entity" , param : "project" , operator : "po" , equalityOperator : " exact " , filterType : null } ,
[ "relfunder" ] : { name : "Funder" , type : "refine" , param : "funder" , operator : "fn" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relfundinglevel0_id" ] : { name : "Funding Stream" , type : "refine" , param : "funderlv0" , operator : "fn0" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relfundinglevel1_id" ] : { name : "Funding Substream level 1" , type : "refine" , param : "funderlv1" , operator : "fn1" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relfundinglevel2_id" ] : { name : "Funding Substream level 2" , type : "refine" , param : "funderlv2" , operator : "fn0" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "resultacceptanceyear" ] : { name : "Publication Date" , type : "keyword" , param : "year" , operator : "ya" , equalityOperator : " = " , filterType : null } ,
2020-03-04 13:42:52 +01:00
[ "resultdateofacceptance" ] : { name : "Publication Date" , type : "date" , param : "date" , operator : "dt" , equalityOperator : " within " , filterType : null } ,
2020-02-24 14:38:08 +01:00
[ "resultacceptanceyear-range-resultacceptanceyear" ] : { name : "Year range" , type : "keyword" , param : "year" , operator : "ya" , equalityOperator : " within " , filterType : "range" } ,
2020-02-17 15:19:14 +01:00
[ "resultbestaccessright" ] : { name : "Access Mode" , type : "vocabulary" , param : "access" , operator : "ac" , equalityOperator : " exact " , filterType : "radio" } ,
[ "collectedfrom" ] : { name : "Collected From" , type : "refine" , param : "datasource" , operator : "cl" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relorganizationid" ] : { name : "Organization" , type : "entity" , param : "organization" , operator : "og" , equalityOperator : " exact " , filterType : null } ,
2020-05-14 16:38:50 +02:00
[ "collectedfromdatasourceid" ] : { name : "Collected from Content Provider" , type : "entity" , param : "collectedFrom" , operator : "cl" , equalityOperator : " exact " , filterType : null } ,
[ "resulttypeid" ] : { name : "Result type" , type : "refine" , param : "types" , operator : "tp" , equalityOperator : " exact " , filterType : "radio" }
2017-12-19 13:53:46 +01:00
} ;
//PROJECT
2020-02-17 15:19:14 +01:00
public PROJECT_RANGE_FIELDS = [
[ "projectendyear" , "projectstartyear" ]
] ;
2017-12-19 13:53:46 +01:00
public PROJECT_REFINE_FIELDS :string [ ] = [ "funder" , "fundinglevel0_id" , "fundinglevel1_id" ,
"fundinglevel2_id" , "projectstartyear" , "projectendyear" , "projectecsc39" ] ;
public PROJECT_ADVANCED_FIELDS :string [ ] = [ "q" , "projectacronym" , "projecttitle" , "projectkeywords" ,
"funder" , "fundinglevel0_id" , "fundinglevel1_id" , "fundinglevel2_id" ,
"projectstartdate" , "projectenddate" , "projectecsc39" ,
"projectcode_nt" , "relorganizationid" , "collectedfromdatasourceid" ] ;
public PROJECT_FIELDS : { [ key :string ] : FieldDetails } = {
2020-02-17 15:19:14 +01:00
[ "q" ] : { name : "All fields" , type : "keyword" , param : "q" , operator : "op" , equalityOperator : "=" , filterType : null } ,
[ "projectacronym" ] : { name : "Acronym" , type : "keyword" , param : "acronym" , operator : "ar" , equalityOperator : "=" , filterType : null } ,
[ "projecttitle" ] : { name : "Title" , type : "keyword" , param : "title" , operator : "tt" , equalityOperator : "=" , filterType : null } ,
[ "projectkeywords" ] : { name : "Keywords" , type : "keyword" , param : "keywords" , operator : "ky" , equalityOperator : "=" , filterType : null } ,
[ "funder" ] : { name : "Funder" , type : "refine" , param : "funder" , operator : "fn" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "fundinglevel0_id" ] : { name : "Funding Stream" , type : "refine" , param : "funderlv0" , operator : "fn0" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "fundinglevel1_id" ] : { name : "Funding Substream level 1" , type : "refine" , param : "funderlv1" , operator : "fn1" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "fundinglevel2_id" ] : { name : "Funding Substream level 2" , type : "refine" , param : "funderlv2" , operator : "fn2" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "projectstartyear" ] : { name : "Start Year" , type : "year" , param : "startyear" , operator : "sy" , equalityOperator : " <= " , filterType : "checkbox" } ,
[ "projectendyear" ] : { name : "End Year" , type : "year" , param : "endyear" , operator : "ey" , equalityOperator : " >= " , filterType : "checkbox" } ,
2020-05-14 16:38:50 +02:00
[ "projectendyear-range-projectstartyear" ] : { name : "Active within" , type : "year" , param : "year" , operator : "ya" , equalityOperator : " = " , filterType : "range" } ,
2020-02-17 15:19:14 +01:00
[ "projectstartdate" ] : { name : "Start Date" , type : "date" , param : "startdate" , operator : "sd" , equalityOperator : " within " , filterType : null } ,
[ "projectenddate" ] : { name : "End Date" , type : "date" , param : "enddate" , operator : "ed" , equalityOperator : " within " , filterType : null } ,
[ "projectecsc39" ] : { name : "Special Clause 39" , type : "boolean" , param : "sc39" , operator : "sc" , equalityOperator : " exact " , filterType : "radio" } ,
[ "projectcode_nt" ] : { name : "Project Code" , type : "keyword" , param : "code" , operator : "cd" , equalityOperator : " exact " , filterType : null } ,
[ "relorganizationid" ] : { name : "Organization" , type : "entity" , param : "organization" , operator : "og" , equalityOperator : " exact " , filterType : null } ,
[ "collectedfromdatasourceid" ] : { name : "Collected from Content Provider" , type : "entity" , param : "collectedFrom" , operator : "cl" , equalityOperator : " exact " , filterType : null }
2017-12-19 13:53:46 +01:00
} ;
//DATAPROVIDERS
public DATASOURCE_REFINE_FIELDS :string [ ] = [ "datasourcetypeuiname" , "datasourceodlanguages" , "datasourceodcontenttypes" ,
2019-06-06 11:15:54 +02:00
"datasourcecompatibilityname" , "country" ] ;
2017-12-19 13:53:46 +01:00
public DATASOURCE_ADVANCED_FIELDS :string [ ] = [ "q" , "datasourceofficialname" ,
"datasourceenglishname" , "datasourceodsubjects" , "datasourcetypename" , "datasourceodlanguages" ,
"datasourceodcontenttypes" , "datasourcecompatibilityname" , "relorganizationid" , "collectedfromdatasourceid" ] ;
public DATASOURCE_FIELDS : { [ key :string ] : FieldDetails } = {
2020-02-17 15:19:14 +01:00
[ "q" ] : { name : "All fields" , type : "keyword" , param : "q" , operator : "op" , equalityOperator : "=" , filterType : null } ,
[ "datasourceofficialname" ] : { name : "English name" , type : "keyword" , param : "officialname" , operator : "of" , equalityOperator : "=" , filterType : null } ,
[ "datasourceenglishname" ] : { name : "Title" , type : "keyword" , param : "engname" , operator : "eg" , equalityOperator : "=" , filterType : null } ,
[ "datasourceodsubjects" ] : { name : "Subject" , type : "keyword" , param : "subjects" , operator : "sb" , equalityOperator : "=" , filterType : null } ,
[ "datasourcetypeuiid" ] : { name : "Type" , type : "refine" , param : "type" , operator : "tp" , equalityOperator : " exact " , filterType : null } ,
[ "datasourcetypeuiname" ] : { name : "Type" , type : "refine" , param : "type" , operator : "tp" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "datasourcetypename" ] : { name : "Type" , type : "vocabulary" , param : "type" , operator : "tp" , equalityOperator : " exact " , filterType : null } ,
[ "datasourceodlanguages" ] : { name : "Language" , type : "vocabulary" , param : "lang" , operator : "ln" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "datasourceodcontenttypes" ] : { name : "Content" , type : "refine" , param : "content" , operator : "cn" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "datasourcecompatibilityid" ] : { name : "Compatibility Level" , type : "refine" , param : "compatibility" , operator : "cm" , equalityOperator : " exact " , filterType : null } ,
[ "datasourcecompatibilityname" ] : { name : "Compatibility Level" , type : "vocabulary" , param : "compatibility" , operator : "cm" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "relorganizationid" ] : { name : "Organization" , type : "entity" , param : "organization" , operator : "og" , equalityOperator : " exact " , filterType : null } ,
[ "collectedfromdatasourceid" ] : { name : "Collected from Content Provider" , type : "entity" , param : "collectedFrom" , operator : "cl" , equalityOperator : " exact " , filterType : null } ,
[ "country" ] : { name : "Country" , type : "vocabulary" , param : "country" , operator : "cu" , equalityOperator : "=" , filterType : "checkbox" }
2017-12-19 13:53:46 +01:00
} ;
2019-07-15 18:11:07 +02:00
public DEPOSIT_DATASOURCE_KEYWORD_FIELDS : { "name" : string , "equalityOperator" : string } [ ] = [
{ "name" : "relorganizationname" , "equalityOperator" : "=" } ,
{ "name" : "relorganizationshortname" , "equalityOperator" : "=" } ,
{ "name" : "datasourceofficialname" , "equalityOperator" : "=" } ,
{ "name" : "datasourceenglishname" , "equalityOperator" : "=" } ,
2019-10-31 12:10:39 +01:00
{ "name" : "datasourcetypeuiname" , "equalityOperator" : " exact " } ,
{ "name" : "country" , "equalityOperator" : " exact " } ,
{ "name" : "datasourcesubject" , "equalityOperator" : " all " }
2019-07-15 18:11:07 +02:00
] ;
public DEPOSIT_DATASOURCE_REFINE_FIELDS :string [ ] = [ "datasourcetypeuiname" , "country" , "datasourceodsubjects" , "datasourceodcontenttypes" , "datasourcecompatibilityname" ] ;
public DEPOSIT_DATASOURCE_FIELDS : { [ key :string ] : FieldDetails } = {
2020-02-17 15:19:14 +01:00
[ "datasourcetypeuiname" ] : { name : "Repository type" , type : "refine" , param : "type" , operator : "tp" , equalityOperator : " exact " , filterType : "radio" } ,
[ "country" ] : { name : "Countries" , type : "vocabulary" , param : "country" , operator : "cu" , equalityOperator : "=" , filterType : "checkbox" } ,
[ "datasourceodsubjects" ] : { name : "Subjects" , type : "keyword" , param : "subjects" , operator : "sb" , equalityOperator : "=" , filterType : "checkbox" } ,
[ "datasourceodcontenttypes" ] : { name : "Content type" , type : "refine" , param : "content" , operator : "cn" , equalityOperator : " exact " , filterType : "checkbox" } ,
[ "datasourcecompatibilityname" ] : { name : "Compatibility Level" , type : "vocabulary" , param : "compatibility" , operator : "cm" , equalityOperator : " exact " , filterType : "checkbox" } ,
2019-07-15 18:11:07 +02:00
} ;
2017-12-19 13:53:46 +01:00
public COMPATIBLE_DATAPROVIDER_FIELDS :string [ ] = [ "datasourcetypeuiid" , "datasourcecompatibilityname" ] ;
public ENTITY_REGISTRIES_FIELDS :string [ ] = [ "datasourcetypename" , "datasourcecompatibilityname" ] ;
public JOURNAL_FIELDS :string [ ] = [ "datasourcetypeuiid" , "datasourcecompatibilityname" ] ;
//ORGANIZATION
2019-06-21 14:17:47 +02:00
public ORGANIZATION_REFINE_FIELDS :string [ ] = [ "country" ]
public ORGANIZATION_ADVANCED_FIELDS :string [ ] = [ "q" , "organizationlegalname" , "organizationlegalshortname" , "country" ] ;
2017-12-19 13:53:46 +01:00
public ORGANIZATION_FIELDS : { [ key :string ] : FieldDetails } = {
2020-02-17 15:19:14 +01:00
[ "q" ] : { name : "All fields" , type : "keyword" , param : "q" , operator : "op" , equalityOperator : "=" , filterType : null } ,
[ "organizationlegalname" ] : { name : "Legal Name" , type : "keyword" , param : "name" , operator : "nm" , equalityOperator : "=" , filterType : null } ,
[ "organizationlegalshortname" ] : { name : "Legal Short Name" , type : "keyword" , param : "shortname" , operator : "so" , equalityOperator : "=" , filterType : null } ,
[ "country" ] : { name : "Country" , type : "vocabulary" , param : "country" , operator : "cu" , equalityOperator : "=" , filterType : "checkbox" } ,
2017-12-19 13:53:46 +01:00
} ;
2018-07-05 12:52:42 +02:00
// public ORGANIZATION_INDEX:string[] = ["organizationcountryname"]//,"organizationeclegalbody"];
// public ADVANCED_SEARCH_ORGANIZATION_PARAM:string[] = ["q","contenttype","compatibility","country","type"];
// public ORGANIZATION_INDEX_PARAM_MAP:{ [key:string]:string } = {["organizationlegalname"]:"contenttype", ["organizationlegalshortname"]:"type",
// ["organizationcountryname"]:"country"};//,["organizationeclegalbody"]:"type"};
// public ORGANIZATION_FIELDS_MAP: { [key:string]:{ name:string, operator:string, type:string, indexField:string , operator: "op", equalityOperator:string}} ={
// ["q"]:{name:"All fields",operator:"op", type:"keyword", indexField:null, operator: "op", equalityOperator: "="},
// ["contenttype"]:{name:"Legal Name",operator:"cn", type:"keyword" , indexField:"organizationlegalname", operator: "op", equalityOperator: "="},
// ["compatibility"]:{name:"Legal Short Name",operator:"cm", type:"keyword", indexField:"organizationlegalshortname", operator: "op", equalityOperator: "="},
// ["country"]:{name:"Country",operator:"cu", type:"vocabulary", indexField:"organizationcountryname", operator: "op", equalityOperator: " exact "},
// ["type"]:{name:"Type",operator:"tp", type:"refine", indexField:"organizationeclegalbody", operator: "op", equalityOperator: " exact "},
//
// };
2017-12-19 13:53:46 +01:00
public HIDDEN_FIELDS :string [ ] = [ "fundinglevel0_id" , "fundinglevel1_id" , "fundinglevel2_id" ,
"relfundinglevel0_id" , "relfundinglevel1_id" , "relfundinglevel2_id" ] ;
public DEPENDENT_FIELDS : { [ key :string ] : string } = { [ "fundinglevel0_id" ] : "funder" ,
[ "fundinglevel1_id" ] : "fundinglevel0_id" , [ "fundinglevel2_id" ] : "fundinglevel1_id" , [ "relfundinglevel0_id" ] : "relfunder" ,
[ "relfundinglevel1_id" ] : "relfundinglevel0_id" , [ "relfundinglevel2_id" ] : "relfundinglevel1_id" } ;
2019-05-29 14:20:18 +02:00
public ADVANCED_SEARCH_OPERATORS : { name :string , id :string } [ ] = [ { name : "AND" , id : "and" } , { name : "OR" , id : "or" } , { name : "NOT" , id : "not" } ] ;
2017-12-19 13:53:46 +01:00
2019-04-12 10:52:31 +02:00
public COMMUNITIES_SEARCH_FIELDS :string [ ] = [ "type" , "status" , "role" ] ;
2017-12-19 13:53:46 +01:00
constructor ( ) {
}
getFieldName ( fieldId :string , fieldType :string ) : string {
2020-02-11 15:56:20 +01:00
if ( fieldType == "publication" || fieldType == "dataset" || fieldType == "software" || fieldType == "other" || fieldType == "result" ) {
2017-12-19 13:53:46 +01:00
return this . RESULT_FIELDS [ fieldId ] . name ;
} else if ( fieldType == "project" ) {
return this . PROJECT_FIELDS [ fieldId ] . name ;
} else if ( fieldType == "organization" ) {
return this . ORGANIZATION_FIELDS [ fieldId ] . name ;
} else if ( fieldType == "datasource" || fieldType == "dataprovider" ) {
return this . DATASOURCE_FIELDS [ fieldId ] . name ;
} else {
return "UNDEFINED" ;
}
}
2019-07-15 18:11:07 +02:00
2020-02-17 15:19:14 +01:00
getFieldFilterType ( fieldId :string , fieldType :string , usedBy :string = "search" ) : string {
2020-02-11 15:56:20 +01:00
if ( fieldType == "publication" || fieldType == "dataset" || fieldType == "software" || fieldType == "other" || fieldType == "result" ) {
2020-02-17 15:19:14 +01:00
return this . RESULT_FIELDS [ fieldId ] . filterType ;
2019-07-15 18:11:07 +02:00
} else if ( fieldType == "project" ) {
2020-02-17 15:19:14 +01:00
return this . PROJECT_FIELDS [ fieldId ] . filterType ;
2019-07-15 18:11:07 +02:00
} else if ( fieldType == "organization" ) {
2020-02-17 15:19:14 +01:00
return this . ORGANIZATION_FIELDS [ fieldId ] . filterType ;
2019-07-15 18:11:07 +02:00
} else if ( fieldType == "datasource" || fieldType == "dataprovider" ) {
if ( usedBy == "search" ) {
2020-02-17 15:19:14 +01:00
return this . DATASOURCE_FIELDS [ fieldId ] . filterType ;
2019-07-15 18:11:07 +02:00
} else if ( usedBy == "deposit" ) {
2020-02-17 15:19:14 +01:00
return this . DEPOSIT_DATASOURCE_FIELDS [ fieldId ] . filterType ;
2019-07-15 18:11:07 +02:00
}
} else {
2020-02-17 15:19:14 +01:00
return "checkbox" ;
2019-07-15 18:11:07 +02:00
}
}
2019-09-12 12:30:48 +02:00
2020-02-17 15:19:14 +01:00
getFieldParam ( fieldId :string , fieldType :string ) : string {
if ( fieldType == "publication" || fieldType == "dataset" || fieldType == "software" || fieldType == "other" || fieldType == "result" ) {
return this . RESULT_FIELDS [ fieldId ] . param ;
} else if ( fieldType == "project" ) {
return this . PROJECT_FIELDS [ fieldId ] . param ;
} else if ( fieldType == "organization" ) {
return this . ORGANIZATION_FIELDS [ fieldId ] . param ;
} else if ( fieldType == "datasource" || fieldType == "dataprovider" ) {
return this . DATASOURCE_FIELDS [ fieldId ] . param ;
} else {
return "UNDEFINED" ;
}
}
2019-09-12 12:30:48 +02:00
/ *
AND
Funder : relfunder , relfundinglevel0_id , relfundinglevel1_id , relfundinglevel2_id
Project : relproject
Community : community
OR
Type : instancetypename , datasourcetypeuiname
Language : resultlanguagename , datasourceodlanguages
Compatibility Level : datasourcecompatibilityname
Country : country
Content : datasourceodcontenttypes
Content Provider : resulthostingdatasource
Collected From : collectedfrom
BULLETS
Access Mode : resultbestaccessright
Special Clause 39 : projectecsc39
Versioning :
RANGE
Publication date : resultacceptanceyear
Project life : projectstartyear , projectendyear
? WHAT ABOUT ? :
Subjects :
Supported Identifiers :
* /
getFieldOperator ( fieldId :string ) : string {
if ( fieldId == "relfunder" || fieldId == "relfundinglevel0_id" || fieldId == "relfundinglevel1_id" || fieldId == "relfundinglevel2_id"
2020-02-17 15:19:14 +01:00
|| fieldId == "relproject" || fieldId == "community" || fieldId == "projectendyear-range-projectstartyear" ) {
2019-09-12 12:30:48 +02:00
return "and" ;
} else if ( fieldId == "instancetypename" || fieldId == "datasourcetypeuiname"
|| fieldId == "resultlanguagename" || fieldId == "datasourceodlanguages"
|| fieldId == "datasourcecompatibilityname" || fieldId == "country" || fieldId == "datasourceodcontenttypes"
|| fieldId == "resulthostingdatasource" || fieldId == "collectedfrom" ) {
return "or" ;
}
return "or" ;
}
2017-12-19 13:53:46 +01:00
}
export class FieldDetails {
name :string ;
type : string ;
param :string ;
equalityOperator :string ;
2018-07-05 12:52:42 +02:00
operator :string ;
2020-02-17 15:19:14 +01:00
filterType : string = "checkbox" ;
2017-12-19 13:53:46 +01:00
}