2020-06-04 13:30:26 +02:00
|
|
|
<div class=" stakeholderPage">
|
|
|
|
<div id="header_main" class=" light_header">
|
|
|
|
<nav class="uk-navbar">
|
|
|
|
<div *ngIf="stakeholder" class="uk-navbar-left">
|
|
|
|
<a class="uk-logo uk-navbar-item ng-star-inserted uk-link uk-margin-small-top"
|
|
|
|
routerlink="/"
|
|
|
|
routerlinkactive="uk-link">
|
|
|
|
<img *ngIf="stakeholder.logoUrl" [src]="stakeholder.logoUrl" class=" logo uk-responsive-height">
|
2019-12-04 18:01:55 +01:00
|
|
|
|
2020-06-04 13:30:26 +02:00
|
|
|
</a>
|
|
|
|
<div class="uk-text-capitalize uk-h4" >
|
|
|
|
{{'OpenAIRE Monitor '
|
|
|
|
+(stakeholder.type == 'ri'?'Research Initiative':stakeholder.type)+ ' - ' +
|
|
|
|
stakeholder.index_name}}
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2019-11-28 17:27:49 +01:00
|
|
|
|
2020-06-04 13:30:26 +02:00
|
|
|
</div>
|
|
|
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="uk-navbar-right uk-margin-right">
|
|
|
|
<ul class="uk-navbar-nav user_actions uk-padding uk-padding-remove-vertical">
|
|
|
|
<li>
|
|
|
|
<user-mini *ngIf="properties"
|
|
|
|
[user]="user" [dashboard]="true"
|
|
|
|
[logInUrl]=properties.loginUrl [logOutUrl]=properties.logoutUrl
|
|
|
|
[cookieDomain]=properties.cookieDomain
|
|
|
|
[userMenuItems]=userMenuItems >
|
|
|
|
</user-mini>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2019-12-23 14:54:37 +01:00
|
|
|
<dashboard-sidebar *ngIf="sideBarItems.length > 0 && stakeholder" [items]="sideBarItems"
|
2020-06-04 13:30:26 +02:00
|
|
|
[activeItem]="activeTopic?activeTopic.alias:null"
|
|
|
|
[activeSubItem]="activeSubCategory?activeSubCategory.alias:null" [showHeader]=true
|
2020-06-04 20:32:44 +02:00
|
|
|
headerName="Monitor" [showSearch]="true" [headerUrl]="properties.baseLink"
|
2019-12-09 11:41:58 +01:00
|
|
|
></dashboard-sidebar>
|
2020-05-13 12:00:12 +02:00
|
|
|
<div id="page_content">
|
2020-06-04 13:30:26 +02:00
|
|
|
<div class="uk-navbar-container uk-sticky uk-sticky-fixed" style="top: 70px; position:
|
|
|
|
fixed; width: 100%">
|
|
|
|
<nav class=" " >
|
|
|
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="">
|
|
|
|
<ul *ngIf="activeTopic && activeTopic.categories.length > 1"
|
|
|
|
class="uk-tab uk-padding uk-padding-remove-bottom uk-padding-remove-left uk-margin-remove">
|
|
|
|
<ng-template ngFor [ngForOf]="activeTopic.categories" let-category let-i="index">
|
|
|
|
<li *ngIf="isPublicOrIsMember(category.isPublic) && category.isActive"
|
|
|
|
[ngClass]="(category.alias === activeCategory.alias)?'uk-active':''">
|
|
|
|
<a (click)="navigateTo(stakeholder.alias,activeTopic.alias, category.alias)"
|
|
|
|
class="uk-margin-remove-bottom uk-h4"
|
|
|
|
><span>{{category.name}}</span></a>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div id="page_content_inner" class="uk-margin-large-top">
|
|
|
|
<div class="uk-margin-top">
|
|
|
|
<ul *ngIf="activeCategory && activeCategory.subCategories.length > 1" class="uk-tab">
|
|
|
|
<ng-template ngFor [ngForOf]="activeCategory.subCategories" let-subCategory let-i="index">
|
|
|
|
<li *ngIf="isPublicOrIsMember(subCategory.isPublic) && subCategory.isActive"
|
|
|
|
[ngClass]="(subCategory.alias === activeSubCategory.alias)?'uk-active':''">
|
|
|
|
<a (click)="navigateTo(stakeholder.alias,activeTopic.alias,activeCategory.alias, subCategory.alias)"
|
|
|
|
class="uk-margin-remove-bottom uk-h3"
|
|
|
|
><span>{{subCategory.name}}</span></a>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
2019-12-09 11:41:58 +01:00
|
|
|
<!-- <div>
|
|
|
|
Filters
|
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="Funding Stream" type="text" name="fund_level_0"
|
|
|
|
[(ngModel)]="fundingL0">
|
2019-12-04 18:01:55 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="Start year" type="text" name="start_year"
|
|
|
|
[(ngModel)]="startYear">
|
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="End year" type="text" name="end_year"
|
|
|
|
[(ngModel)]="endYear">
|
|
|
|
<button class="uk-button uk-button-primary" (click)="setIndicators()">Apply</button>
|
|
|
|
</div>-->
|
2020-05-13 12:00:12 +02:00
|
|
|
<div
|
|
|
|
*ngIf="(activeSubCategory && (activeSubCategory.charts.length == 0 ||
|
|
|
|
(activeSubCategory.charts.length == 1 && activeSubCategory.charts[0].indicators.length == 0)))
|
|
|
|
&& ((activeSubCategory &&
|
|
|
|
activeSubCategory.description &&
|
|
|
|
activeSubCategory.description.length > 0) ||
|
|
|
|
(activeCategory && activeCategory.description && activeCategory.description.length > 0) ||
|
|
|
|
(activeTopic && activeTopic.description && activeTopic.description.length > 0))"
|
|
|
|
class="">
|
|
|
|
<div class="">
|
|
|
|
<div class="uk-h5">
|
|
|
|
{{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description
|
|
|
|
: (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
|
|
|
|
(activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!loading &&
|
|
|
|
(!activeSubCategory ||
|
|
|
|
(
|
|
|
|
(activeSubCategory.numbers.length == 0 || (activeSubCategory.numbers.length == 1 && activeSubCategory.numbers[0].indicators.length == 0))
|
|
|
|
&&
|
|
|
|
(activeSubCategory.charts.length == 0 || (activeSubCategory.charts.length == 1 && activeSubCategory.charts[0].indicators.length == 0))
|
|
|
|
))">
|
2019-12-09 11:41:58 +01:00
|
|
|
<div class="">
|
|
|
|
<div class="uk-h3">
|
|
|
|
No indicators available yet. Stay tuned!
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-06 14:45:11 +01:00
|
|
|
<div *ngIf="activeSubCategory" class="uk-grid uk-grid-medium uk-margin-bottom uk-margin-top"
|
2020-01-08 12:00:50 +01:00
|
|
|
uk-height-match="target: div.md-card">
|
2019-12-09 11:41:58 +01:00
|
|
|
<ng-template ngFor [ngForOf]="activeSubCategory.numbers" let-number let-i="index">
|
2020-01-08 12:00:50 +01:00
|
|
|
<h4 class="uk-width-1-1">{{number.title}}</h4>
|
|
|
|
<ng-template ngFor [ngForOf]="number.indicators" let-indicator let-j="index">
|
2020-05-13 10:23:19 +02:00
|
|
|
<div *ngIf="indicator.isActive && isPublicOrIsMember(indicator.isPublic)"
|
2020-01-08 12:00:50 +01:00
|
|
|
[class.uk-width-1-3@m]="indicator.width === 'small'"
|
|
|
|
[class.uk-width-1-2@m]="indicator.width === 'medium'"
|
|
|
|
[class.uk-width-1-1]="indicator.width === 'large'">
|
|
|
|
<div class="md-card" [attr.uk-tooltip]="indicator.description">
|
|
|
|
<div class="md-card-content">
|
|
|
|
<span class="uk-text-muted uk-margin-bottom uk-h5">{{indicator.name}}</span>
|
|
|
|
<h2 *ngIf="numberResults.get(i + '-' + j)" class="uk-margin-remove">
|
|
|
|
<span>{{numberResults.get(i + '-' + j) | number}}</span>
|
|
|
|
</h2>
|
|
|
|
</div>
|
2019-12-06 14:52:26 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2020-01-08 12:00:50 +01:00
|
|
|
</ng-template>
|
2019-12-09 11:41:58 +01:00
|
|
|
</ng-template>
|
|
|
|
</div>
|
2020-01-10 14:31:53 +01:00
|
|
|
<div *ngIf="activeSubCategory"
|
|
|
|
>
|
|
|
|
<div *ngFor="let chart of activeSubCategory.charts; let i = index;" class="uk-grid uk-grid-medium uk-margin-bottom uk-flex uk-flex-bottom "
|
|
|
|
uk-height-match="target: div > div > .chartTitle">
|
|
|
|
|
|
|
|
<h3 *ngIf="chart.title && chart.title.length > 0" class="uk-width-1-1 uk-margin-top">{{chart.title}}</h3>
|
2020-01-08 12:00:50 +01:00
|
|
|
<ng-template ngFor [ngForOf]="chart.indicators" let-indicator let-j="index">
|
2020-05-13 10:23:19 +02:00
|
|
|
<div *ngIf="indicator.isActive && isPublicOrIsMember(indicator.isPublic) && chartsActiveType.get(i + '-' + j)"
|
2020-01-08 12:00:50 +01:00
|
|
|
[class.uk-width-1-3@m]="indicator.width === 'small'"
|
|
|
|
[class.uk-width-1-2@m]="indicator.width === 'medium'"
|
|
|
|
[class.uk-width-1-1]="indicator.width === 'large'">
|
|
|
|
<div class="indicatorBox">
|
2020-01-10 14:31:53 +01:00
|
|
|
<h4 class="uk-margin-bottom chartTitle uk-flex uk-flex-bottom ">
|
2020-01-08 12:00:50 +01:00
|
|
|
<div>{{indicator.name + " "}}</div>
|
|
|
|
</h4>
|
|
|
|
<div class="md-card" [attr.uk-tooltip]="indicator.description">
|
|
|
|
<div class="md-card-content uk-text-center">
|
|
|
|
<div *ngIf="indicator.indicatorPaths.length > 1" class="uk-button-group">
|
|
|
|
<button *ngFor="let indicatorPath of indicator.indicatorPaths;"
|
|
|
|
class="uk-button"
|
|
|
|
(click)="setActiveChart(i, j, indicatorPath.type)"
|
|
|
|
[class.uk-button-secondary]="chartsActiveType.get(i + '-' + j).url === indicatorPath.url">
|
|
|
|
{{indicatorPath.type}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<iframe *ngIf="chartsActiveType.get(i + '-' + j).source !== 'image'"
|
|
|
|
[src]="chartsActiveType.get(i + '-' + j).safeResourceUrl"
|
|
|
|
class="uk-width-1-1 uk-height-medium"></iframe>
|
|
|
|
<!-- {{chartsActiveType.get(i).safeResourceUrl}}-->
|
|
|
|
<!-- <a [href]="chartsActiveType.get(i).safeResourceUrl" target="_blank" > ChartuURL</a>-->
|
|
|
|
<img *ngIf="chartsActiveType.get(i + '-' + j).source === 'image'"
|
|
|
|
[src]="chartsActiveType.get(i + '-' + j).safeResourceUrl"
|
|
|
|
class="uk-width-1-1 uk-height-medium">
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-25 15:19:54 +02:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2020-01-08 12:00:50 +01:00
|
|
|
</ng-template>
|
2020-01-10 14:31:53 +01:00
|
|
|
</div>
|
2019-11-28 17:27:49 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2020-06-04 20:32:44 +02:00
|
|
|
<!-- <bottom *ngIf="properties" [darkBackground]="false"
|
|
|
|
[centered]="true" [properties]="properties"></bottom>-->
|
2020-06-04 13:30:26 +02:00
|
|
|
</div>
|
2019-10-24 09:44:29 +02:00
|
|
|
</div>
|
2020-06-02 14:45:08 +02:00
|
|
|
<div *ngIf="stakeholder" id="style_switcher" title="This functionality is comming soon. Stay tuned!">
|
|
|
|
<div id="style_switcher_toggle">
|
|
|
|
<a *ngIf="isAdmin() " [routerLink]="['/admin', this.stakeholder.alias]" >
|
|
|
|
<i class="material-icons">settings</i>
|
|
|
|
</a>
|
|
|
|
<i *ngIf="!isAdmin() " class="material-icons uk-text-muted">settings</i>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-24 09:44:29 +02:00
|
|
|
</div>
|
2019-12-04 18:01:55 +01:00
|
|
|
|
|
|
|
|