mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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.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",
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<div class="object-not-found container">
|
||||
<h1>{{"error.item" | translate}}</h1>
|
||||
<h1>{{"error.identifier" | translate}}</h1>
|
||||
<h2><small><em>{{missingItem}}</em></small></h2>
|
||||
<br />
|
||||
<p class="text-center">
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user