1
|
export class PiwikHelper{
|
2
|
public static siteIDs={
|
3
|
"connect": 80,
|
4
|
"dh-ch":81,
|
5
|
"ee":82,
|
6
|
"egi":83,
|
7
|
"elixir-gr":84,
|
8
|
"fam":85,
|
9
|
"instruct":86,
|
10
|
"mes":87,
|
11
|
"ni":88,
|
12
|
"oa-pg":89,
|
13
|
"rda":90,
|
14
|
"aginfra":93,
|
15
|
"clarin":100,
|
16
|
"dariah":103
|
17
|
};
|
18
|
public static siteIDsProduction={
|
19
|
"connect": 112,
|
20
|
"dh-ch":198,
|
21
|
"ee":200,
|
22
|
"egi":'',
|
23
|
"elixir-gr":'',
|
24
|
"fam":197,
|
25
|
"instruct":'',
|
26
|
"mes":196,
|
27
|
"ni":199,
|
28
|
"oa-pg":'',
|
29
|
"rda":'',
|
30
|
"aginfra":'',
|
31
|
"clarin":'',
|
32
|
"dariah":''
|
33
|
};
|
34
|
public static getSiteId(communityId:string, environment:string){
|
35
|
if(environment == 'production'){
|
36
|
return this.siteIDsProduction[communityId];
|
37
|
}
|
38
|
return this.siteIDs[communityId];
|
39
|
}
|
40
|
|
41
|
}
|