1
0

[CST-5668] Improved orcid page adding back button and fixing synchronization mode setting

This commit is contained in:
Luca Giamminonni
2022-05-20 17:16:28 +02:00
parent 733688bd7e
commit 06091e39ca
5 changed files with 16 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{{'person.page.titleprefix' | translate}}<ds-metadata-values [mdValues]="getTitleMetadataValues()" [separator]="', '"></ds-metadata-values>
</h2>
<div class="pl-2">
<ds-dso-page-orcid-button [pageRoute]="itemPageRoute" [dso]="object"></ds-dso-page-orcid-button>
<ds-dso-page-orcid-button [pageRoute]="itemPageRoute" [dso]="object" class="mr-2"></ds-dso-page-orcid-button>
<ds-dso-page-edit-button [pageRoute]="itemPageRoute" [dso]="object" [tooltipMsg]="'person.page.edit'"></ds-dso-page-edit-button>
<button class="edit-button btn btn-dark btn-sm" *ngIf="(isClaimable() | async)" (click)="claim()"> {{"item.page.claim.button" | translate }} </button>
</div>

View File

@@ -1,2 +1,10 @@
<div class="container">
<div class="button-row bottom mb-3">
<div class="text-right">
<a [routerLink]="getItemPage()" role="button" class="btn btn-outline-secondary"><i class="fas fa-arrow-left"></i> {{'item.orcid.return' | translate}}</a>
</div>
</div>
</div>
<ds-orcid-auth></ds-orcid-auth>
<ds-orcid-setting *ngIf="isLinkedToOrcid()"></ds-orcid-setting>

View File

@@ -9,6 +9,7 @@ import {NativeWindowRef, NativeWindowService} from '../../core/services/window.s
import {getFirstCompletedRemoteData} from '../../core/shared/operators';
import {RemoteData} from '../../core/data/remote-data';
import {Item} from '../../core/shared/item.model';
import {getItemPageRoute} from '../item-page-routing-paths';
@Component({
selector: 'ds-orcid-page',
@@ -34,4 +35,8 @@ export class OrcidPageComponent {
return this.researcherProfileService.isLinkedToOrcid(this.item);
}
getItemPage(): string {
return getItemPageRoute(this.item);
}
}

View File

@@ -88,7 +88,7 @@ export class OrcidSettingComponent implements OnInit {
};
});
this.currentSyncMode = this.getCurrentPreference('dspace.orcid.sync-mode', ['BATCH, MANUAL'], 'MANUAL');
this.currentSyncMode = this.getCurrentPreference('dspace.orcid.sync-mode', ['BATCH', 'MANUAL'], 'MANUAL');
this.currentSyncPublications = this.getCurrentPreference('dspace.orcid.sync-publications', ['DISABLED', 'ALL'], 'DISABLED');
this.currentSyncFundings = this.getCurrentPreference('dspace.orcid.sync-fundings', ['DISABLED', 'ALL'], 'DISABLED');
}

View File

@@ -2067,6 +2067,7 @@
"item.edit.withdraw.success": "The item was withdrawn successfully",
"item.orcid.return": "Back",
"item.listelement.badge": "Item",