From 3a01d737895a1eee4088f2254d0d71e66c758e72 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Tue, 15 Oct 2013 09:33:46 -0400 Subject: [PATCH] Serial alert notes missing commit These changes were somehow lost during the hacking on this feature at the Hack-a-Way. The translation string is nice, but the changes to notes.xul are necessary for being able to create notes. Signed-off-by: Dan Wells Signed-off-by: Remington Steed --- .../xul/staff_client/server/locale/en-US/serial.properties | 1 + Open-ILS/xul/staff_client/server/serial/manage_items.js | 2 +- Open-ILS/xul/staff_client/server/serial/notes.xul | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/serial.properties b/Open-ILS/xul/staff_client/server/locale/en-US/serial.properties index bf4e631e01..14c16bb283 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/serial.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/serial.properties @@ -70,6 +70,7 @@ staff.serial.manage_items.notes_column.label=Notes (Item/Dist/Sub) staff.serial.manage_items.set_claimed_success=Successfully claimed %1$s item(s) staff.serial.manage_items.set_not_held_success=Successfully set %1$s item(s) to 'Not Held' staff.serial.manage_items.set_not_published_success=Successfully set %1$s item(s) to 'Not Published' +staff.serial.manage_items.alert_notes.title=Serial Alerts staff.serial.manage_items.alert_button.label=1 Alert staff.serial.manage_items.alert_button.plural.label=%1s Alerts staff.serial.manage_subs.add.error=error adding object in manage_subs.js: diff --git a/Open-ILS/xul/staff_client/server/serial/manage_items.js b/Open-ILS/xul/staff_client/server/serial/manage_items.js index 696d819fb0..3a760f7f04 100644 --- a/Open-ILS/xul/staff_client/server/serial/manage_items.js +++ b/Open-ILS/xul/staff_client/server/serial/manage_items.js @@ -1219,7 +1219,7 @@ serial.manage_items.prototype = { var notes_window = win.open( urls.XUL_SERIAL_NOTES, '','chrome,resizable,modal', - { 'notes' : notes, 'section_titles' : section_titles, 'title' : "Serial Alerts", 'disable_create' : true, 'section_id_names' : { 'ssubn' : 'subscription', 'sdistn' : 'distribution', 'sin' : 'item'} } + { 'notes' : notes, 'section_titles' : section_titles, 'title' : $('serialStrings').getString('staff.serial.manage_items.alert_notes.title'), 'disable_create' : true, 'section_id_names' : { 'ssubn' : 'subscription', 'sdistn' : 'distribution', 'sin' : 'item'} } ); if (notes_window.notes_updated) { // we changed some notes if (notes_window.notes_updated.sdistn || notes_window.notes_updated.ssubn) { diff --git a/Open-ILS/xul/staff_client/server/serial/notes.xul b/Open-ILS/xul/staff_client/server/serial/notes.xul index d6ec1087ae..7e12c62d25 100644 --- a/Open-ILS/xul/staff_client/server/serial/notes.xul +++ b/Open-ILS/xul/staff_client/server/serial/notes.xul @@ -246,6 +246,7 @@ var edit_mode; // for clarity var label_text; var button_accesskey; + var note_fm_type; if (typeof index != 'undefined') { edit_mode = true; @@ -253,9 +254,11 @@ alert = get_bool(g.notes[index].alert()); title = xml_encode(g.notes[index].title()); value = xml_encode(g.notes[index].value()); + note_fm_type = g.notes[index].classname; label_text = $('serialStrings').getString('staff.serial.notes.edit_note.label'); button_accesskey = $('serialStrings').getString('staff.serial.notes.edit_note.accesskey'); } else { + note_fm_type = g.fm_type; label_text = $('catStrings').getString('staff.cat.copy_notes.new_note.add_note.label'); button_accesskey = $('catStrings').getString('staff.cat.copy_notes.new_note.add_note.accesskey'); } @@ -267,7 +270,7 @@ \ \ \ - \ + \ \ \ \ -- 2.43.2