From: Jason Etheridge <jason@esilibrary.com> Date: Thu, 9 Jun 2011 21:27:21 +0000 (-0400) Subject: Hold Notes column X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=467d9e051446578df75f4301d248f7a25ae066ef;p=evergreen%2Fmasslnc.git Hold Notes column New column in holds list UIs that allows staff to see at a glance the (initial) text content of attached hold notes. In some cases, this helps avoid the need to open the dedicated notes UI. Signed-off-by: Jason Etheridge <jason@esilibrary.com> Signed-off-by: Bill Erickson <berick@esilibrary.com> --- diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 64c427911b..c94c2ca54c 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2467,6 +2467,22 @@ circ.util.hold_columns = function(modify,params) { }, { 'persist' : 'hidden width ordinal', + 'id' : 'hold_note_text', + 'label' : document.getElementById('circStrings').getString('staff.circ.utils.hold_note_text'), + 'flex' : 1, + 'primary' : false, + 'hidden' : true, + 'editable' : false, 'render' : function(my) { + var s = ''; + var notes = my.ahr.notes(); + for (var i = 0; i < notes.length; i++) { + s += notes[i].title() + ':' + notes[i].body() + '; \n'; + } + return s; + } + }, + { + 'persist' : 'hidden width ordinal', 'id' : 'staff_hold', 'label' : document.getElementById('circStrings').getString('staff.circ.utils.staff_hold'), 'flex' : 1, diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 15f4d3745b..b155e5bafb 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -253,7 +253,8 @@ staff.circ.utils.circulate=Circulate? staff.circ.utils.deleted=Deleted? staff.circ.utils.holdable=Holdable? staff.circ.utils.floating=Floating? -staff.circ.utils.hold_note=Hold Note(s) +staff.circ.utils.hold_note=Hold Note(s) Count +staff.circ.utils.hold_note_text=Hold Note(s) Text staff.circ.utils.staff_hold=Staff Hold? staff.circ.utils.opac_visible=OPAC Visible? staff.circ.utils.status_changed_time=Status Changed Time