Project

General

Profile

1 57592 stefania.m
<table *ngIf="countries" class="uk-table uk-table-hover">
2
  <thead>
3
    <tr>
4
      <th width="12,5%" class="" (click)="sortBy('country')">
5
        Country
6
        <span *ngIf="isSortedBy && isSortedBy=='country' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
7
        <span *ngIf="isSortedBy && isSortedBy=='country' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
8
      </th>
9
      <th *ngIf="type=='overview'" class="uk-text-center" width="12,5%" (click)="sortBy('repositories')">
10
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA repositories
11
        <span *ngIf="isSortedBy && isSortedBy=='repositories' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
12
        <span *ngIf="isSortedBy && isSortedBy=='repositories' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
13
      </th>
14
      <th *ngIf="type=='overview'" class="uk-text-center" width="12,5%" (click)="sortBy('journals')">
15
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA journals
16
        <span *ngIf="isSortedBy && isSortedBy=='journals' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
17
        <span *ngIf="isSortedBy && isSortedBy=='journals' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
18
      </th>
19
      <th *ngIf="type=='overview'" class="uk-text-center" width="12,5%" (click)="sortBy('policies')">
20
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA policies
21
        <span *ngIf="isSortedBy && isSortedBy=='policies' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
22
        <span *ngIf="isSortedBy && isSortedBy=='policies' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
23
      </th>
24
      <th *ngIf="type=='overview' || type=='openScience'" class="uk-text-center" width="12,5%" (click)="sortBy('publications')">
25
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA publications
26
        <span *ngIf="isSortedBy && isSortedBy=='publications' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
27
        <span *ngIf="isSortedBy && isSortedBy=='publications' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
28
      </th>
29
      <th *ngIf="type=='overview' || type=='openScience'" class="uk-text-center" width="12,5%" (click)="sortBy('datasets')">
30
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA data
31
        <span *ngIf="isSortedBy && isSortedBy=='datasets' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
32
        <span *ngIf="isSortedBy && isSortedBy=='datasets' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
33
      </th>
34
      <th *ngIf="type=='overview' || type=='openScience'" class="uk-text-center" width="12,5%" (click)="sortBy('software')">
35
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA software
36
        <span *ngIf="isSortedBy && isSortedBy=='software' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
37
        <span *ngIf="isSortedBy && isSortedBy=='software' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
38
      </th>
39
      <th *ngIf="type=='overview' || type=='openScience'" class="uk-text-center" width="12,5%" (click)="sortBy('otherProducts')">
40
        <i class="fa fa-sort-numeric-desc m-r-10 uk-margin-right"></i>OA other research products
41
        <span *ngIf="isSortedBy && isSortedBy=='otherProducts' && isDescending"><i class="fas fa-caret-down uk-margin-small-left"></i></span>
42
        <span *ngIf="isSortedBy && isSortedBy=='otherProducts' && !isDescending"><i class="fas fa-caret-up uk-margin-small-left"></i></span>
43
      </th>
44
    </tr>
45
  </thead>
46
  <tbody>
47
    <ng-container *ngIf="isPercentage">
48
      <tr *ngFor="let countryOverview of countries">
49
        <td class=""><a>{{countryOverview.country}}</a></td>
50
        <td *ngIf="type=='overview'" class="uk-text-center">
51
          <ng-container *ngIf="countryOverview.repositories?.percentage !=null">{{countryOverview.repositories.percentage | number}}%</ng-container>
52
          <ng-container *ngIf="countryOverview.repositories===null || countryOverview.repositories.percentage===null">--</ng-container>
53
        </td>
54
        <td *ngIf="type=='overview'" class="uk-text-center">
55
          <ng-container *ngIf="countryOverview.journals?.percentage !=null">{{countryOverview.journals.percentage | number}}%</ng-container>
56
          <ng-container *ngIf="countryOverview.journals===null || countryOverview.journals.percentage===null">--</ng-container>
57
        </td>
58
        <td *ngIf="type=='overview'" class="uk-text-center">
59
          <ng-container *ngIf="countryOverview.policies?.percentage !=null">{{countryOverview.policies.percentage | number}}%</ng-container>
60
          <ng-container *ngIf="countryOverview.policies===null || countryOverview.policies.percentage===null">--</ng-container>
61
        </td>
62
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
63
          <ng-container *ngIf="countryOverview.publications?.percentage !=null">{{countryOverview.publications.percentage | number}}%</ng-container>
64
          <ng-container *ngIf="countryOverview.publications===null || countryOverview.publications.percentage===null">--</ng-container>
65
        </td>
66
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
67
          <ng-container *ngIf="countryOverview.datasets?.percentage !=null">{{countryOverview.datasets.percentage | number}}%</ng-container>
68
          <ng-container *ngIf="countryOverview.datasets===null || countryOverview.datasets.percentage===null">--</ng-container>
69
        </td>
70
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
71
          <ng-container *ngIf="countryOverview.software?.percentage !=null">{{countryOverview.software.percentage | number}}%</ng-container>
72
          <ng-container *ngIf="countryOverview.software===null || countryOverview.software.percentage===null">--</ng-container>
73
        </td>
74
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
75
          <ng-container *ngIf="countryOverview.otherProducts?.percentage !=null">{{countryOverview.otherProducts.percentage | number}}%</ng-container>
76
          <ng-container *ngIf="countryOverview.otherProducts===null || countryOverview.otherProducts.percentage===null">--</ng-container>
77
        </td>
78
      </tr>
79
    </ng-container>
80
    <ng-container *ngIf="!isPercentage">
81
      <tr *ngFor="let countryOverview of countries">
82
        <td class=""><a>{{countryOverview.country}}</a></td>
83
        <td *ngIf="type=='overview'" class="uk-text-center">
84
          <ng-container *ngIf="countryOverview.repositories?.oa !=null">{{countryOverview.repositories.oa | number}}</ng-container>
85
          <ng-container *ngIf="countryOverview.repositories===null || countryOverview.repositories.oa===null">--</ng-container>
86
        </td>
87
        <td *ngIf="type=='overview'" class="uk-text-center">
88
          <ng-container *ngIf="countryOverview.journals?.oa !=null">{{countryOverview.journals.oa | number}}</ng-container>
89
          <ng-container *ngIf="countryOverview.journals===null || countryOverview.journals.oa===null">--</ng-container>
90
        </td>
91
        <td *ngIf="type=='overview'" class="uk-text-center">
92
          <ng-container *ngIf="countryOverview.policies?.oa !=null">{{countryOverview.policies.oa | number}}</ng-container>
93
          <ng-container *ngIf="countryOverview.policies===null || countryOverview.policies.oa===null">--</ng-container>
94
        </td>
95
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
96
          <ng-container *ngIf="countryOverview.publications?.oa !=null">{{countryOverview.publications.oa | number}}</ng-container>
97
          <ng-container *ngIf="countryOverview.publications===null || countryOverview.publications.oa===null">--</ng-container>
98
        </td>
99
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
100
          <ng-container *ngIf="countryOverview.datasets?.oa !=null">{{countryOverview.datasets.oa | number}}</ng-container>
101
          <ng-container *ngIf="countryOverview.datasets===null || countryOverview.datasets.oa===null">--</ng-container>
102
        </td>
103
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
104
          <ng-container *ngIf="countryOverview.software?.oa !=null">{{countryOverview.software.oa | number}}</ng-container>
105
          <ng-container *ngIf="countryOverview.software===null || countryOverview.software.oa===null">--</ng-container>
106
        </td>
107
        <td *ngIf="type=='overview' || type=='openScience'" class="uk-text-center">
108
          <ng-container *ngIf="countryOverview.otherProducts?.oa !=null">{{countryOverview.otherProducts.oa | number}}</ng-container>
109
          <ng-container *ngIf="countryOverview.otherProducts===null || countryOverview.otherProducts.oa===null">--</ng-container>
110
        </td>
111
      </tr>
112
    </ng-container>
113
  </tbody>
114
</table>