diff --git a/resources/i18n/en.json5 b/resources/i18n/en.json5 index 0ad08652b5..583b88b662 100644 --- a/resources/i18n/en.json5 +++ b/resources/i18n/en.json5 @@ -204,6 +204,7 @@ "error.collection": "Error fetching collection", "error.collections": "Error fetching collections", "error.community": "Error fetching community", + "error.identifier": "No item found for the identifier", "error.default": "Error", "error.item": "Error fetching item", "error.items": "Error fetching items", diff --git a/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.html b/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.html index 662d3cde52..e1cf58b5b2 100644 --- a/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.html +++ b/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.html @@ -1,5 +1,5 @@
diff --git a/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.ts b/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.ts index 0116575154..813b56920a 100644 --- a/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.ts +++ b/src/app/+lookup-by-id/objectnotfound/objectnotfound.component.ts @@ -33,10 +33,8 @@ export class ObjectNotFoundComponent implements OnInit { } ngOnInit(): void { - if (this.idType.startsWith('handle')) { - this.missingItem = 'handle: ' + this.id; - } else if (this.idType.startsWith('uuid')) { - this.missingItem = 'uuid: ' + this.id; + if (this.idType.startsWith('handle') || this.idType.startsWith('uuid')) { + this.missingItem = this.idType + ': ' + this.id; } else { this.missingItem = 'handle: ' + this.idType + '/' + this.id; }