2018-03-01 12:45:37 +01:00
|
|
|
<div class=" uk-section uk-margin-small-top tm-middle uk-container" id="tm-main">
|
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<div class="uk-container uk-margin-bottom">
|
2018-03-01 12:45:37 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<article class="uk-article ">
|
|
|
|
<div *ngIf="!statisticsSum || !statisticsSum.total_projects" class="uk-alert uk-alert-info" style="margin-top:40px; padding-left:40px;">
|
|
|
|
No statistics are available for {{ communityId.toUpperCase() }}
|
|
|
|
</div>
|
|
|
|
<div *ngIf="statisticsSum && statisticsDisplay && charts" class="uk-margin uk-margin-top">
|
|
|
|
<div class="uk-grid">
|
|
|
|
<ul class="uk-tab uk-tab-left uk-width-1-6 uk-margin-top" data-uk-tab="{connect:'#tabs'}">
|
|
|
|
<li *ngFor="let entity of entitiesForCommunity"
|
|
|
|
(click)="onChangeEntity(entity)">
|
2018-03-01 12:45:37 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<a href="#">{{ entity }}{{ entity == 'software' ? '' : 's' }}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2018-03-12 17:16:40 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<ul id="tabs" class="uk-switcher uk-margin uk-width-5-6" style="min-height:450px; padding-left:40px;">
|
|
|
|
<li *ngFor="let entity of entitiesForCommunity">
|
|
|
|
<div class="uk-text-uppercase uk-text-bold uk-heading-divider">
|
|
|
|
<h2>{{ getCamelCaseString(entity) }}{{ entity == 'software' ? '' : 's' }} statistics</h2>
|
|
|
|
<div *ngIf="statisticsSum[entity + (entity == 'software' ? '' : 's')].total" class="uk-text-small">
|
|
|
|
<span>{{statisticsSum[entity + (entity == 'software' ? '' : 's')].total}} {{ entity + (entity == 'software' ? '' : 's') }} from {{statisticsSum.total_projects}} projects.</span><br>
|
|
|
|
<span>{{statisticsSum[entity + (entity == 'software' ? '' : 's')].open_access}} are OA</span>
|
|
|
|
<span *ngIf="statisticsSum[entity + (entity == 'software' ? '' : 's')].restricted">,
|
|
|
|
{{statisticsSum[entity + (entity == 'software' ? '' : 's')].restricted}} are restricted
|
|
|
|
</span>
|
|
|
|
<span *ngIf="statisticsSum[entity + (entity == 'software' ? '' : 's')].embargo">
|
|
|
|
and {{statisticsSum[entity + (entity == 'software' ? '' : 's')].embargo}} are still in embargo
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="charts.get(entity)">
|
|
|
|
<div *ngIf="charts.get(entity).get('timeline') && (displayedTimeline == (entity + 'Timeline'))">
|
|
|
|
<iframe [src]=displayedTimelineUrl width="1000" height="450"></iframe>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="charts.get(entity).get('graph') && (displayedGraph == (entity + 'Graph'))">
|
|
|
|
<iframe [src]=displayedGraphUrl width="1000" height="450"></iframe>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h4 class="uk-text-uppercase uk-text-bold">{{ communityId }} {{ entity }}{{ entity == 'software' ? '' : 's' }} per project</h4>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<ul class="uk-tab uk-margin-top" data-uk-tab="{connect: '#projectChartTabs'">
|
|
|
|
<li *ngIf="charts.get(entity).get('projectColumn')"
|
|
|
|
(click)="changeDisplayedProjectChart(entity + 'Projectcolumn')">
|
2018-03-01 12:45:37 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<a href="#">Columns</a>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="charts.get(entity).get('projectPie')"
|
|
|
|
(click)="changeDisplayedProjectChart(entity + 'Projectpie')">
|
2018-03-01 12:45:37 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<a href="#">Pie</a>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="charts.get(entity).get('projectTable')"
|
|
|
|
(click)="changeDisplayedProjectChart(entity + 'Projecttable')">
|
2018-03-01 12:45:37 +01:00
|
|
|
|
2018-03-17 23:52:30 +01:00
|
|
|
<a href="#">Table</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul id="projectChartTabs" class="uk-switcher uk-margin">
|
|
|
|
<li>
|
|
|
|
<div *ngIf="charts.get(entity).get('projectColumn') && (displayedProjectChart == (entity + 'Projectcolumn'))">
|
|
|
|
<iframe [src]=displayedProjectChartUrl width="1000" height="450"></iframe>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div *ngIf="charts.get(entity).get('projectPie') && (displayedProjectChart == (entity + 'Projectpie'))">
|
|
|
|
<iframe [src]=displayedProjectChartUrl width="1000" height="450"></iframe>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<div *ngIf="charts.get(entity).get('projectTable') && displayedProjectChart == (entity + 'Projecttable')">
|
|
|
|
<iframe [src]=displayedProjectChartUrl width="1000" height="450"></iframe>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!statisticsSum[entity + (entity == 'software' ? '' : 's')].total" class="uk-alert uk-alert-primary">
|
|
|
|
No {{ entity }}{{ entity == 'software' ? '' : 's' }} available
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
2018-03-01 12:45:37 +01:00
|
|
|
</div>
|