Added not found for identifier message to i18n.

This commit is contained in:
Michael W Spalti
2019-11-01 13:40:19 -07:00
parent 0dd765d84a
commit dc43e23301
3 changed files with 4 additions and 5 deletions

View File

@@ -204,6 +204,7 @@
"error.collection": "Error fetching collection", "error.collection": "Error fetching collection",
"error.collections": "Error fetching collections", "error.collections": "Error fetching collections",
"error.community": "Error fetching community", "error.community": "Error fetching community",
"error.identifier": "No item found for the identifier",
"error.default": "Error", "error.default": "Error",
"error.item": "Error fetching item", "error.item": "Error fetching item",
"error.items": "Error fetching items", "error.items": "Error fetching items",

View File

@@ -1,5 +1,5 @@
<div class="object-not-found container"> <div class="object-not-found container">
<h1>{{"error.item" | translate}}</h1> <h1>{{"error.identifier" | translate}}</h1>
<h2><small><em>{{missingItem}}</em></small></h2> <h2><small><em>{{missingItem}}</em></small></h2>
<br /> <br />
<p class="text-center"> <p class="text-center">

View File

@@ -33,10 +33,8 @@ export class ObjectNotFoundComponent implements OnInit {
} }
ngOnInit(): void { ngOnInit(): void {
if (this.idType.startsWith('handle')) { if (this.idType.startsWith('handle') || this.idType.startsWith('uuid')) {
this.missingItem = 'handle: ' + this.id; this.missingItem = this.idType + ': ' + this.id;
} else if (this.idType.startsWith('uuid')) {
this.missingItem = 'uuid: ' + this.id;
} else { } else {
this.missingItem = 'handle: ' + this.idType + '/' + this.id; this.missingItem = 'handle: ' + this.idType + '/' + this.id;
} }