2019-06-13 14:40:03 +02:00
import { SearchCustomFilter } from "../openaireLibrary/searchPages/searchUtils/searchUtils.class" ;
2020-11-25 18:39:05 +01:00
import { Portal } from "../openaireLibrary/utils/entities/adminTool/portal" ;
2019-06-13 14:40:03 +02:00
2020-12-15 13:48:37 +01:00
export class AggregatorInfo {
2019-06-13 14:40:03 +02:00
menuId : string ;
title : string ;
logoUrl : string ;
fieldName : string ; //Country
queryFieldName : string ; //country
valueId : string ; //gr
valueName : string ; // Greece
2021-01-28 10:45:22 +01:00
graphSectionTitle : string ;
graphSectionText : string ;
2022-02-18 15:58:47 +01:00
enableLogin : boolean ;
2022-05-03 15:53:37 +02:00
customCss :string ;
showHeaderAlways :boolean ;
2019-06-13 14:40:03 +02:00
2021-01-28 10:45:22 +01:00
constructor ( menuId : string , title : string , logoUrl : string , fieldName : string , queryFieldName : string , valueId : string ,
2022-05-03 15:53:37 +02:00
valueName : string , graphSectionTitle : string = null , graphSectionText :string = null , enableLogin :boolean = true , showHeaderAlways :boolean = true , customCss :string = "" ) {
2019-06-13 14:40:03 +02:00
this . menuId = menuId ;
this . title = title ;
this . logoUrl = logoUrl ;
this . fieldName = fieldName ;
this . queryFieldName = queryFieldName ;
this . valueId = valueId ;
this . valueName = valueName ;
2021-01-28 10:45:22 +01:00
this . graphSectionTitle = graphSectionTitle ;
this . graphSectionText = graphSectionText ;
2022-02-18 15:58:47 +01:00
this . enableLogin = enableLogin ;
2022-05-03 15:53:37 +02:00
this . showHeaderAlways = showHeaderAlways ;
this . customCss = customCss ;
2019-06-13 14:40:03 +02:00
}
}
export class PortalAggregators {
2022-08-08 16:49:07 +02:00
static eoscInfo : AggregatorInfo =
2022-05-03 15:53:37 +02:00
new AggregatorInfo ( "eosc" , "Eosc Explore" , "https://providers.eosc-portal.eu/assets/images/EOSC_Portal_Logo.png" ,
null , null , null , null , null , null , false , false ,
`
: root {
-- primary - color : # 3540 b6 ;
-- primary - dark - color : # 233 d4c ;
-- search - form - background : transparent ;
}
. search - input {
-- search - input - border - radius : 0px ;
}
. input - wrapper . advanced - search {
-- input - border - radius : 0px ;
}
. input - wrapper {
-- input - border - radius : 0px ;
}
a , . uk - link , a . uk - link - heading {
color : # 3540 b6 ;
}
a :hover , . uk - link :hover , a . uk - link - heading :hover {
color : # 233 d4c ;
text - decoration : none ;
}
. uk - link - text a :hover , . uk - link - toggle :hover . uk - link - text , a . uk - link - text :hover {
color : # 0 c2bd5 ;
}
. search_box_bg {
2022-05-19 11:14:28 +02:00
/*background: url(//marketplace.eosc-portal.eu/packs/media/images/home-bg-89b63b3d579f3530ec6283f51e1648bc.png) no-repeat;*/
/* background-position-x: 0%;*/
/* background-position-y: 0%;*/
/* background-position: 50% -120px;*/
2022-05-03 15:53:37 +02:00
z - index : 3 ;
}
# searchImage {
background : url ( 'https://marketplace.eosc-portal.eu/packs/media/images/eosc-logo-color-883f208671ef77b15b9cd067ecdc369b.png' ) no - repeat center left ;
width : 250px ;
height : 80px ;
background - size : 250px 80 px ;
2022-05-20 14:20:50 +02:00
/*margin-left: 80px;*/
2022-05-03 15:53:37 +02:00
}
# searchForm advanced - search - form {
float :right ;
}
# searchForm {
2022-05-20 14:20:50 +02:00
/*padding:0;*/
/*width:100%;*/
/*max-width:100%;*/
2022-05-03 15:53:37 +02:00
}
search - filter h6 : : after {
border - bottom : 1px solid gray ;
}
search - filter h6 {
text - transform : uppercase ! important ;
font - size : 12px ;
}
search - filter . tm - child - list - divider > ul > li :nth - child ( n + 2 ) , . uk - list - divider > li :nth - child ( n + 2 ) {
border : none ;
}
. filterHeader {
border - bottom :1px solid # ced4da ;
}
. matSelection . mat - select {
padding : 4px ;
border : 1px solid # ced4da ;
}
. search - results . uk - card - default . uk - card - hover :hover {
box - shadow : none ;
}
. search - results . uk - card - default {
border : 1px solid # ced4da ;
box - shadow :none ;
}
. uk - pagination > . uk - active > * , . uk - pagination > . uk - active > : hover {
border - radius : 0px ;
}
. uk - button - primary :not ( . uk - icon - button ) , . portal - button :not ( . uk - icon - button ) {
color : # fff ! important ;
background - color : # 0 c2bd5 ! important ;
background - image : linear - gradient ( 135 deg , # 05 cae7 , # 0 c2bd5 ) ! important ;
border :none ! important ;
}
. uk - button - primary :hover , . portal - button :hover : not ( . uk - icon - button ) {
background : # 0 c2bd5 ! important ;
border :none ! important ;
}
2022-05-20 14:20:50 +02:00
. search_box_bg . uk - button , # searchForm . uk - button :not ( . uk - button - text ) : not ( . uk - button - link ) , . search_box_bg . uk - button :hover , # searchForm . uk - button :hover : not ( . uk - button - text ) : not ( . uk - button - link ) {
2022-05-03 15:53:37 +02:00
border - radius : 0px ;
margin - left : 0px ! important ;
color : rgb ( 102 , 102 , 102 ) ! important ;
background - color : # 0 c2bd5 ! important ;
background - color : rgba ( 255 , 255 , 255 , 1.0 ) ! important ;
border : 1px solid rgba ( 0 , 0 , 0 , 0.40 ) ! important ;
background - image : none ! important ;
2022-05-19 11:14:28 +02:00
padding : 10px ;
2022-05-03 15:53:37 +02:00
}
2022-08-08 16:49:07 +02:00
` );
2020-11-25 18:39:05 +01:00
static disabled = {
2022-08-08 16:49:07 +02:00
pages : [ "/participate/deposit/search" , "/participate/deposit/learn-how" , "/participate/claim" , "/participate/direct-claim" , "/myclaims" , "/claims" , "/develop" ,
"/search/find/datasources" ] ,
entities : [ "datasource" ]
2020-11-25 18:39:05 +01:00
} ;
2019-06-13 14:40:03 +02:00
2022-08-08 16:49:07 +02:00
public static getSearchCustomFilterByAggregator ( ) : SearchCustomFilter {
// let filter:SearchCustomFilter = new SearchCustomFilter(PortalAggregators.eoscInfo.fieldName, PortalAggregators.eoscInfo.queryFieldName, PortalAggregators.eoscInfo.valueId, PortalAggregators.eoscInfo.valueName);
// filter.promptToAddFilter = false;
// filter.isHiddenFilter = true;
// console.log(PortalAggregators.eoscInfo.fieldName);
// console.log(filter);
// return filter;
return null ;
2019-06-13 14:40:03 +02:00
}
2020-11-25 18:39:05 +01:00
2022-08-08 16:49:07 +02:00
public static getCommunityInfo ( ) : any {
2022-10-03 19:42:02 +02:00
return Portal . getMockCommunityInfo ( PortalAggregators . eoscInfo . menuId , PortalAggregators . disabled . entities , PortalAggregators . disabled . pages ) ;
2020-11-25 18:39:05 +01:00
}
2019-06-13 14:40:03 +02:00
}