Revision 57757
Added by Argiro Kokogiannaki over 4 years ago
stakeholder.ts | ||
---|---|---|
19 | 19 |
creationDate: string; |
20 | 20 |
updateDate: string; |
21 | 21 |
managers: string[]; |
22 |
logoUrl:string; |
|
22 | 23 |
topics: Topic[]; |
23 | 24 |
|
24 |
constructor(id: string, type: string, index_id, index_name: string, index_shortName: string, isDefaultProfile: boolean, alias: string, isActive: boolean, isPublic: boolean) { |
|
25 |
this.initializeFunder(id, type, index_id, index_name, index_shortName, isDefaultProfile, alias, isActive, isPublic); |
|
25 |
constructor(id: string, type: string, index_id, index_name: string, index_shortName: string, isDefaultProfile: boolean, alias: string, isActive: boolean, isPublic: boolean, logoUrl:string) {
|
|
26 |
this.initializeFunder(id, type, index_id, index_name, index_shortName, isDefaultProfile, alias, isActive, isPublic, logoUrl);
|
|
26 | 27 |
this.topics = []; |
27 | 28 |
this.managers = []; |
28 | 29 |
} |
29 | 30 |
|
30 |
initializeFunder(id: string, type: string, index_id, index_name: string, index_shortName: string, isDefaultProfile: boolean, alias: string, isActive: boolean, isPublic: boolean) { |
|
31 |
initializeFunder(id: string, type: string, index_id, index_name: string, index_shortName: string, isDefaultProfile: boolean, alias: string, isActive: boolean, isPublic: boolean, logoUrl:string) {
|
|
31 | 32 |
this._id = id; |
32 | 33 |
this.type = type; |
33 | 34 |
this.index_id = index_id; |
... | ... | |
37 | 38 |
this.alias = alias; |
38 | 39 |
this.isActive = isActive; |
39 | 40 |
this.isPublic = isPublic; |
41 |
this.logoUrl = logoUrl; |
|
40 | 42 |
} |
41 | 43 |
|
42 | 44 |
static createECStakeholder(): Stakeholder { |
43 |
let ec: Stakeholder = new Stakeholder("ec", "funder", "ec__________::EC", "European Commission", "EC", false, "ec", true, true); |
|
45 |
let ec: Stakeholder = new Stakeholder("ec", "funder", "ec__________::EC", "European Commission", "EC", false, "ec", true, true, null);
|
|
44 | 46 |
// new Stakeholder('wt','funder','wt__________::WT','Wellcome Trust','WT',false, 'wt',true,true); |
45 | 47 |
ec.topics.push(ec.createOSTopic(ec)); |
46 | 48 |
ec.topics.push(ec.createImpactTopic()); |
... | ... | |
335 | 337 |
isDefault: boolean; |
336 | 338 |
charts: Indicator[]; |
337 | 339 |
numbers: Indicator[]; |
340 |
recommendedFor:string[]; |
|
338 | 341 |
|
339 | 342 |
constructor(name: string, description: string, alias: string, isActive: boolean, isPublic: boolean, isDefault: boolean = true) { |
340 | 343 |
this._id = null; |
... | ... | |
346 | 349 |
this.isDefault = isDefault; |
347 | 350 |
this.charts = []; |
348 | 351 |
this.numbers = []; |
352 |
this.recommendedFor= []; |
|
349 | 353 |
} |
350 | 354 |
|
351 | 355 |
} |
... | ... | |
361 | 365 |
isPublic: boolean; |
362 | 366 |
isDefault: boolean; |
363 | 367 |
indicatorPaths: IndicatorPath[]; |
368 |
recommendedFor:string[]; |
|
364 | 369 |
|
365 | 370 |
constructor(name: string, description: string, type: string, width: string, isActive: boolean, isPublic: boolean, indicatorPaths: IndicatorPath[]) { |
366 | 371 |
this._id = null; |
... | ... | |
371 | 376 |
this.isActive = isActive; |
372 | 377 |
this.isPublic = isPublic; |
373 | 378 |
this.indicatorPaths = indicatorPaths; |
379 |
this.recommendedFor = []; |
|
374 | 380 |
} |
375 | 381 |
|
376 | 382 |
} |
Also available in: Unified diff
Add logo files for demo fundersuse recommenderfor in order to indicators and subcategories to a stakeholder-make changes to monitor component according to the mocks
-StakeHolder model:
--add logoUrl
--add recommenderFor in subCategory and Indicator level (for demo)
-StakeHolderCreator(for demo):
--add h2020 & fp7 charts & categories
-
-monitor-css: add doubleheader custom css and stakeholderPage