2023-11-02 15:39:57 +01:00
|
|
|
import {Portal} from "../openaireLibrary/utils/entities/adminTool/portal";
|
2023-11-13 14:00:45 +01:00
|
|
|
import {StakeholderConfiguration} from "../openaireLibrary/monitor-admin/utils/indicator-utils";
|
2023-11-15 09:36:56 +01:00
|
|
|
import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sidebar/layout.service";
|
2023-11-30 13:22:04 +01:00
|
|
|
import {Role} from "../openaireLibrary/login/utils/helper.class";
|
2024-02-20 10:02:04 +01:00
|
|
|
import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder";
|
2023-11-02 15:39:57 +01:00
|
|
|
|
|
|
|
export class Irish {
|
2024-01-09 12:49:25 +01:00
|
|
|
public static irishAdminToolsPortalType = "country";
|
|
|
|
public static irishAdminToolsCommunity = "irish";
|
2023-12-21 10:49:32 +01:00
|
|
|
public static METADATA_PREFIX = '';
|
2023-11-02 15:39:57 +01:00
|
|
|
|
2023-11-15 09:33:33 +01:00
|
|
|
public portal: Portal = Portal.getMockCommunityInfo("noami", "Noami",['service'],['/search/advanced/services', '/search/find/services']);
|
2023-11-02 15:39:57 +01:00
|
|
|
|
|
|
|
constructor() {
|
2023-11-13 14:00:45 +01:00
|
|
|
StakeholderConfiguration.ENTITIES.stakeholder = 'Monitor';
|
|
|
|
StakeholderConfiguration.ENTITIES.stakeholders = 'Monitors';
|
|
|
|
StakeholderConfiguration.ENTITIES.funder = 'RFO';
|
|
|
|
StakeholderConfiguration.ENTITIES.funders = 'RFOs';
|
|
|
|
StakeholderConfiguration.ENTITIES.organization = 'RPO';
|
|
|
|
StakeholderConfiguration.ENTITIES.organizations = 'RPOs';
|
2024-01-03 09:50:06 +01:00
|
|
|
StakeholderConfiguration.ENTITIES.datasource = 'Repository';
|
|
|
|
StakeholderConfiguration.ENTITIES.datasources = 'Repositories';
|
2024-01-10 11:34:03 +01:00
|
|
|
StakeholderConfiguration.ENTITIES.datasource = 'Repository';
|
|
|
|
StakeholderConfiguration.ENTITIES.researcher = 'Researcher';
|
|
|
|
StakeholderConfiguration.ENTITIES.researchers = 'Researchers';
|
2023-11-02 15:39:57 +01:00
|
|
|
|
2023-11-13 14:00:45 +01:00
|
|
|
StakeholderConfiguration.TYPES = [
|
|
|
|
{value: 'funder', label: StakeholderConfiguration.ENTITIES.funder},
|
|
|
|
{value: 'organization', label: StakeholderConfiguration.ENTITIES.organization},
|
2023-11-16 13:38:27 +01:00
|
|
|
{value: 'country', label: StakeholderConfiguration.ENTITIES.country},
|
2024-01-10 11:34:03 +01:00
|
|
|
{value: 'datasource', label: StakeholderConfiguration.ENTITIES.datasource},
|
|
|
|
{value: 'researcher', label: StakeholderConfiguration.ENTITIES.researcher}
|
|
|
|
|
2023-11-16 15:45:01 +01:00
|
|
|
];
|
2023-11-13 14:00:45 +01:00
|
|
|
|
|
|
|
StakeholderConfiguration.FUNDER_TYPES = [
|
2023-11-16 13:38:27 +01:00
|
|
|
{value: null, label: 'None'},
|
2023-11-13 14:00:45 +01:00
|
|
|
{value: 'private', label: 'Private'},
|
|
|
|
{value: 'government', label: 'Government'}
|
|
|
|
];
|
|
|
|
|
|
|
|
StakeholderConfiguration.VISIBILITIES = [
|
|
|
|
{icon: 'earth', value: "PUBLIC", label: 'Public'},
|
2023-11-15 09:36:56 +01:00
|
|
|
];
|
|
|
|
|
2024-02-20 10:02:04 +01:00
|
|
|
StakeholderConfiguration.CACHE_INDICATORS = true;
|
2023-11-16 15:45:01 +01:00
|
|
|
|
2023-11-15 09:36:56 +01:00
|
|
|
LayoutService.HEADER_HEIGHT = '60px';
|
2023-11-30 13:22:04 +01:00
|
|
|
|
|
|
|
Role.GROUP = 'irish.';
|
2023-11-02 15:39:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2024-02-20 10:02:04 +01:00
|
|
|
|
|
|
|
export class StakeholderPublication extends Stakeholder {
|
|
|
|
publications: number;
|
|
|
|
}
|