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([
|
|
|
|
['publication', 'Publications'],
|
|
|
|
['dataset', 'Research Data'],
|
2018-10-26 13:36:42 +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;
|
|
|
|
entities: Map<string, EntityStats>;
|
|
|
|
id: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|