2018-04-05 10:02:11 +02:00
|
|
|
export const availableCharts = [
|
|
|
|
'timeline',
|
|
|
|
'graph',
|
|
|
|
'projectColumn',
|
|
|
|
'projectPie',
|
|
|
|
'projectTable'
|
|
|
|
];
|
|
|
|
|
|
|
|
export const availableNumbers = [
|
|
|
|
'total',
|
|
|
|
'project',
|
|
|
|
'open',
|
|
|
|
'closed',
|
|
|
|
'restricted',
|
|
|
|
'embargo',
|
|
|
|
];
|
|
|
|
|
|
|
|
export const availableEntities = [
|
|
|
|
'publication',
|
|
|
|
'dataset',
|
2018-10-26 13:36:42 +02:00
|
|
|
'software',
|
|
|
|
'orp',
|
2018-04-05 10:02:11 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
export const availableEntitiesMap = new Map([
|
2019-06-18 17:29:55 +02:00
|
|
|
['publication', 'publications'],
|
2019-06-25 14:31:07 +02:00
|
|
|
['dataset', 'research data'],
|
2019-06-18 17:29:55 +02:00
|
|
|
['software', 'software'],
|
|
|
|
['orp', 'other research products'],
|
2018-04-05 10:02:11 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
export class DisplayStatsOptions {
|
|
|
|
showInMonitor: boolean;
|
|
|
|
showInDashboard: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class StatisticsMap {
|
|
|
|
map: Map<string, DisplayStatsOptions>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class EntityStats {
|
|
|
|
charts: StatisticsMap;
|
|
|
|
numbers: StatisticsMap;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class StatisticsDisplay {
|
|
|
|
pid: string;
|
2020-04-10 11:45:20 +02:00
|
|
|
isActive: boolean = true;
|
2018-04-05 10:02:11 +02:00
|
|
|
entities: Map<string, EntityStats>;
|
2020-04-01 15:42:05 +02:00
|
|
|
_id: string;
|
2018-04-05 10:02:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export class StatisticsNumbers {
|
|
|
|
total: number;
|
|
|
|
open_access: number;
|
|
|
|
embargo: number;
|
|
|
|
restricted: number;
|
|
|
|
closed_access: number;
|
|
|
|
projects: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export class StatisticsSummary {
|
|
|
|
publications : StatisticsNumbers;
|
|
|
|
datasets: StatisticsNumbers;
|
|
|
|
software: StatisticsNumbers;
|
|
|
|
total_projects: number;
|
|
|
|
virtual_organizations: number;
|
2018-10-26 13:36:42 +02:00
|
|
|
}
|