[master | CHANGED]: Change open science indicator text and precision to one decimal.
This commit is contained in:
parent
cf83f5bd9d
commit
57aab09e49
|
@ -9,12 +9,15 @@ import {OAIndicator} from "../../openaireLibrary/monitor-admin/utils/indicator-u
|
|||
selector: "oa-indicator",
|
||||
template: `
|
||||
<ng-container *ngIf="percentage > 0">
|
||||
<div class="uk-progress-semicircle open-access" [attr.percentage]="percentage"
|
||||
[style]="'--percentage:' + percentage"></div>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-small-top">
|
||||
<icon class="open-access" [name]="'open_access'" [flex]="true"></icon>
|
||||
<span class="uk-margin-xsmall-left">Open Access</span>
|
||||
<div class="uk-flex uk-flex-column uk-flex-middle">
|
||||
<div class="uk-progress-semicircle open-access" [attr.percentage]="percentage.toFixed(1)"
|
||||
[style]="'--percentage:' + percentage.toFixed(1)"></div>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-small-top">
|
||||
<icon class="open-access" [name]="'open_access'" [flex]="true"></icon>
|
||||
<span class="uk-margin-xsmall-left uk-text-small">Open Access with Licence</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ng-container>
|
||||
`
|
||||
})
|
||||
|
@ -40,7 +43,7 @@ export class OaIndicatorComponent extends IndicatorStakeholderBaseComponent impl
|
|||
let numerator = this.calculate(res[0], OAIndicator.numerator.jsonPath);
|
||||
let denominator = this.calculate(res[1], OAIndicator.denominator.jsonPath);
|
||||
if (denominator > 0) {
|
||||
this.percentage = Math.round(numerator * 100 / denominator);
|
||||
this.percentage = (numerator * 100 / denominator);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue