mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Added not found for identifier message to i18n.
This commit is contained in:
@@ -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",
|
||||||
|
@@ -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">
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user