no message
This commit is contained in:
parent
80fba7c655
commit
976d0221ce
|
@ -154,7 +154,8 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
|
||||||
.subscribe(
|
.subscribe(
|
||||||
repos => {
|
repos => {
|
||||||
this.depositRepos = repos;
|
this.depositRepos = repos;
|
||||||
});
|
},
|
||||||
|
error => this.depositRepos = []);
|
||||||
}
|
}
|
||||||
|
|
||||||
onFetchingDeletedCallbackError(redirectRoot: string) {
|
onFetchingDeletedCallbackError(redirectRoot: string) {
|
||||||
|
@ -649,6 +650,8 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
createDoiLink(doiModel: DoiModel): string {
|
createDoiLink(doiModel: DoiModel): string {
|
||||||
|
const recordUrl = this.depositRepos.find(r => r.repositoryId == doiModel.repositoryId).repositoryRecordUrl;
|
||||||
|
if(typeof recordUrl !== "undefined"){
|
||||||
if(doiModel.repositoryId == "Zenodo"){
|
if(doiModel.repositoryId == "Zenodo"){
|
||||||
const doiarr = doiModel.doi.split('.');
|
const doiarr = doiModel.doi.split('.');
|
||||||
const id = doiarr[doiarr.length - 1];
|
const id = doiarr[doiarr.length - 1];
|
||||||
|
@ -658,6 +661,10 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
|
||||||
return this.depositRepos.find(r => r.repositoryId == doiModel.repositoryId).repositoryRecordUrl + doiModel.doi;
|
return this.depositRepos.find(r => r.repositoryId == doiModel.repositoryId).repositoryRecordUrl + doiModel.doi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
reverse() {
|
reverse() {
|
||||||
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||||
|
|
Loading…
Reference in New Issue