forked from hazza/dspace-angular
[CST-5668] Improved orcid page adding back button and fixing synchronization mode setting
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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');
|
||||
}
|
||||
|
@@ -2067,6 +2067,7 @@
|
||||
|
||||
"item.edit.withdraw.success": "The item was withdrawn successfully",
|
||||
|
||||
"item.orcid.return": "Back",
|
||||
|
||||
|
||||
"item.listelement.badge": "Item",
|
||||
|
Reference in New Issue
Block a user