From 3c104a460b410a25f6283288d6603e0a63b45475 Mon Sep 17 00:00:00 2001 From: lotte Date: Thu, 21 Feb 2019 11:59:04 +0100 Subject: [PATCH] 59334: removed unnecessary config entry --- config/environment.default.js | 5 +-- resources/i18n/en.json | 17 +++++++--- .../edit-item-page.routing.module.ts | 17 ++++++---- .../edit-in-place-field.component.html | 26 ++++++++------- .../edit-in-place-field.component.scss | 4 +++ .../item-metadata.component.spec.ts | 4 ++- .../item-metadata/item-metadata.component.ts | 33 +++++++++++++------ .../input-suggestions.component.ts | 2 +- src/styles/_custom_variables.scss | 3 +- 9 files changed, 73 insertions(+), 38 deletions(-) diff --git a/config/environment.default.js b/config/environment.default.js index 788a1fb827..d46dc10dee 100644 --- a/config/environment.default.js +++ b/config/environment.default.js @@ -79,8 +79,5 @@ module.exports = { code: 'nl', label: 'Nederlands', active: false, - }], - item: { - - } + }] }; diff --git a/resources/i18n/en.json b/resources/i18n/en.json index 12f4547cf6..2174e0c2bf 100644 --- a/resources/i18n/en.json +++ b/resources/i18n/en.json @@ -123,6 +123,7 @@ "status": { "head": "Item Status", "description": "Welcome to the item management page. From here you can withdraw, reinstate, move or delete the item. You may also update or add new metadata / bitstreams on the other tabs.", + "title": "Item Edit - Status", "labels": { "id": "Item Internal ID", "handle": "Handle", @@ -165,16 +166,20 @@ } }, "bitstreams": { - "head": "Item Bitstreams" + "head": "Item Bitstreams", + "title": "Item Edit - Bitstreams" }, "metadata": { - "head": "Item Metadata" + "head": "Item Metadata", + "title": "Item Edit - Metadata" }, "view": { - "head": "View Item" + "head": "View Item", + "title": "Item Edit - Item" }, "curate": { - "head": "Curate" + "head": "Curate", + "title": "Item Edit - Curate" } }, "modify.overview": { @@ -256,6 +261,10 @@ "invalid": { "title": "Metadata invalid", "content": "Your changes were not saved. Please make sure all fields are valid before you save." + }, + "saved": { + "title": "Metadata saved", + "content": "Your changes to this item's metadata were saved." } } } diff --git a/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts b/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts index 48fd6ceb9b..223b5f7c8e 100644 --- a/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts +++ b/src/app/+item-page/edit-item-page/edit-item-page.routing.module.ts @@ -32,29 +32,34 @@ const ITEM_EDIT_DELETE_PATH = 'delete'; children: [ { path: '', - redirectTo: 'status' + redirectTo: 'status', }, { path: 'status', - component: ItemStatusComponent + component: ItemStatusComponent, + data: { title: 'item.edit.tabs.status.title' } }, { path: 'bitstreams', - component: ItemBitstreamsComponent + component: ItemBitstreamsComponent, + data: { title: 'item.edit.tabs.bitstreams.title' } }, { path: 'metadata', - component: ItemMetadataComponent + component: ItemMetadataComponent, + data: { title: 'item.edit.tabs.metadata.title' } }, { path: 'view', /* TODO - change when view page exists */ - component: ItemBitstreamsComponent + component: ItemBitstreamsComponent, + data: { title: 'item.edit.tabs.view.title' } }, { path: 'curate', /* TODO - change when curate page exists */ - component: ItemBitstreamsComponent + component: ItemBitstreamsComponent, + data: { title: 'item.edit.tabs.curate.title' } }, ] }, diff --git a/src/app/+item-page/edit-item-page/item-metadata/edit-in-place-field/edit-in-place-field.component.html b/src/app/+item-page/edit-item-page/item-metadata/edit-in-place-field/edit-in-place-field.component.html index 44c6cf2258..e20b2a5c84 100644 --- a/src/app/+item-page/edit-item-page/item-metadata/edit-in-place-field/edit-in-place-field.component.html +++ b/src/app/+item-page/edit-item-page/item-metadata/edit-in-place-field/edit-in-place-field.component.html @@ -23,25 +23,29 @@ -
- {{metadata?.value}} -
-
+
+
+ {{metadata?.value}} +
+
+
-
- {{metadata?.language}} -
-
- +
+
+ {{metadata?.language}} +
+
+ +
-
+