[angular-16-irish-monitor]: Add orcid in user class. Fix orcid button text. Remove capitalize from buttons in download and data dump.
This commit is contained in:
parent
2e336b93a8
commit
3e02680f5e
|
@ -10,6 +10,7 @@ export class User {
|
||||||
expirationDate: number;
|
expirationDate: number;
|
||||||
role: string[];
|
role: string[];
|
||||||
accessToken?: string;
|
accessToken?: string;
|
||||||
|
orcid?: string;
|
||||||
refreshToken?: string;
|
refreshToken?: string;
|
||||||
|
|
||||||
constructor(info: any) {
|
constructor(info: any) {
|
||||||
|
@ -23,6 +24,9 @@ export class User {
|
||||||
if(info.refreshToken) {
|
if(info.refreshToken) {
|
||||||
this.refreshToken = info.refreshToken;
|
this.refreshToken = info.refreshToken;
|
||||||
}
|
}
|
||||||
|
if(info.orcid) {
|
||||||
|
this.orcid = info.orcid;
|
||||||
|
}
|
||||||
this.fullname = (info.name) ? info.name : "";
|
this.fullname = (info.name) ? info.name : "";
|
||||||
if (this.fullname == "") {
|
if (this.fullname == "") {
|
||||||
if (this.firstname != "") {
|
if (this.firstname != "") {
|
||||||
|
|
|
@ -32,7 +32,7 @@ declare var UIkit: any;
|
||||||
My ORCID links
|
My ORCID links
|
||||||
</div>
|
</div>
|
||||||
<span *ngIf="authorNameParam" class="uk-width-1-1 uk-width-expand@m">
|
<span *ngIf="authorNameParam" class="uk-width-1-1 uk-width-expand@m">
|
||||||
<a class="uk-button-text uk-align-left uk-align-right@m" [queryParams]="authorNameParam"
|
<a class="uk-button uk-button-text uk-align-left uk-align-right@m" [queryParams]="authorNameParam"
|
||||||
[routerLink]="properties.searchLinkToAdvancedResults" routerLinkActive="router-link-active">
|
[routerLink]="properties.searchLinkToAdvancedResults" routerLinkActive="router-link-active">
|
||||||
Discover {{openaireEntities.RESULTS | lowercase}} related to you
|
Discover {{openaireEntities.RESULTS | lowercase}} related to you
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -288,7 +288,7 @@
|
||||||
<div class="uk-flex uk-flex-middle uk-flex-wrap uk-child-width-1-1 uk-child-width-auto@m" [class.uk-flex-between]="!mobile"
|
<div class="uk-flex uk-flex-middle uk-flex-wrap uk-child-width-1-1 uk-child-width-auto@m" [class.uk-flex-between]="!mobile"
|
||||||
[class.uk-margin-top]="mobile">
|
[class.uk-margin-top]="mobile">
|
||||||
<!-- Total results, number of pages -->
|
<!-- Total results, number of pages -->
|
||||||
<div class="uk-width-expand@m uk-margin-remove-bottom uk-text-truncate uk-margin-medium-right" [class.uk-h6]="!mobile" [class.uk-text-center]="mobile">
|
<div class="uk-width-expand@m uk-margin-remove-bottom uk-text-truncate" [class.uk-margin-medium-right]="!mobile" [class.uk-h6]="!mobile" [class.uk-text-center]="mobile">
|
||||||
<ng-container *ngIf="results && searchUtils.totalResults > 0">
|
<ng-container *ngIf="results && searchUtils.totalResults > 0">
|
||||||
<span>{{searchUtils.totalResults|number}}</span>
|
<span>{{searchUtils.totalResults|number}}</span>
|
||||||
<span class="uk-text-meta uk-text-capitalize"> {{type}}</span>
|
<span class="uk-text-meta uk-text-capitalize"> {{type}}</span>
|
||||||
|
@ -316,8 +316,9 @@
|
||||||
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
[type]="csvPath" [csvParams]="csvParams" [totalResults]="searchUtils.totalResults">
|
||||||
</search-download>
|
</search-download>
|
||||||
<ng-container *ngIf="properties.zenodoDumpUrl && entityType == 'result'">
|
<ng-container *ngIf="properties.zenodoDumpUrl && entityType == 'result'">
|
||||||
<button [href]="properties.zenodoDumpUrl" target="_blank" class=" uk-margin-left uk-button uk-button-link uk-flex uk-flex-middle uk-text-capitalize">
|
<a [href]="properties.zenodoDumpUrl" target="_blank" class=" uk-margin-left uk-button uk-button-link uk-flex uk-flex-middle">
|
||||||
<img src="assets/common-assets/common/zenodoDump.png" width="20px"><span class="uk-margin-xsmall-left">Data dump</span></button>
|
<img src="assets/common-assets/common/zenodoDump.png" width="20"><span class="uk-margin-xsmall-left">Data dump</span>
|
||||||
|
</a>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {properties} from "../../../../environments/environment";
|
||||||
template: `
|
template: `
|
||||||
<button [attr.uk-tooltip]="'title: Download' + ((totalResults > csvLimit)?' the first 2000 ':' ') + 'results.' +
|
<button [attr.uk-tooltip]="'title: Download' + ((totalResults > csvLimit)?' the first 2000 ':' ') + 'results.' +
|
||||||
((totalResults > csvLimit && properties.zenodoDumpUrl)?' To get all results download the data dump. ':' ') "
|
((totalResults > csvLimit && properties.zenodoDumpUrl)?' To get all results download the data dump. ':' ') "
|
||||||
class="uk-button uk-button-link uk-flex uk-flex-middle uk-text-capitalize" [class.uk-disabled]="isDisabled"
|
class="uk-button uk-button-link uk-flex uk-flex-middle" [class.uk-disabled]="isDisabled"
|
||||||
[disabled]="isDisabled"
|
[disabled]="isDisabled"
|
||||||
(click)="downloadfile(downloadURLAPI+'?format=csv'+csvParams,type+'-report-'+((totalResults > csvLimit)?'2000 ':totalResults))">
|
(click)="downloadfile(downloadURLAPI+'?format=csv'+csvParams,type+'-report-'+((totalResults > csvLimit)?'2000 ':totalResults))">
|
||||||
<icon name="download" [flex]="true"></icon>
|
<icon name="download" [flex]="true"></icon>
|
||||||
|
|
Loading…
Reference in New Issue