Project

General

Profile

1
export const availableCharts = [
2
    'timeline',
3
    'graph',
4
    'projectColumn',
5
    'projectPie',
6
    'projectTable'
7
];
8

    
9
export const availableNumbers = [
10
    'total',
11
    'project',
12
    'open',
13
    'closed',
14
    'restricted',
15
    'embargo',
16
];
17

    
18
export const availableEntities = [
19
    'publication',
20
    'dataset',
21
    'software',
22
    'orp',
23
];
24

    
25
export const availableEntitiesMap = new Map([
26
    ['publication', 'publications'],
27
    ['dataset', 'research data'],
28
    ['software', 'software'],
29
    ['orp', 'other research products'],
30
]);
31

    
32
export class DisplayStatsOptions {
33
    showInMonitor: boolean;
34
    showInDashboard: boolean;
35
}
36

    
37
export class StatisticsMap {
38
    map: Map<string, DisplayStatsOptions>;
39
}
40

    
41
export class EntityStats {
42
    charts: StatisticsMap;
43
    numbers: StatisticsMap;
44
}
45

    
46
export class StatisticsDisplay {
47
    pid: string;
48
    isActive: boolean = true;
49
    entities: Map<string, EntityStats>;
50
    _id: string;
51
}
52

    
53
export class StatisticsNumbers {
54
    total: number;
55
    open_access: number;
56
    embargo: number;
57
    restricted: number;
58
    closed_access: number;
59
    projects: number;
60
}
61

    
62
export class StatisticsSummary {
63
    publications : StatisticsNumbers;
64
    datasets: StatisticsNumbers;
65
    software: StatisticsNumbers;
66
    total_projects: number;
67
    virtual_organizations: number;
68
}
(2-2/2)