From 39503e336731401beff4bc1b79f0fa7867e12f2f Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Wed, 27 Aug 2014 15:25:24 -0400 Subject: [PATCH] lp949101 Hold Columns for Item Status Fixes display of hold columns in Item Status Holds/Transit tab. Signed-off-by: Michele Morgan Signed-off-by: Ben Shum --- .../server/circ/alternate_copy_summary.js | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js index 0aa656f7ee..2e82c0a7d5 100644 --- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js +++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js @@ -46,6 +46,19 @@ function my_init() { var columns = circ.util.transit_columns({}); transit_list = new util.list('transit'); transit_list.init( { 'columns' : columns }); + + var columns = circ.util.hold_columns( + + { + 'request_time' : { 'hidden' : true }, + 'pickup_lib_shortname' : { 'hidden' : false }, + 'hold_type' : { 'hidden' : false }, + 'current_copy' : { 'hidden' : true }, + 'capture_time' : { 'hidden' : true }, + 'email_notify' : { 'hidden' : false }, + 'phone_notify' : { 'hidden' : false }, + } + ); hold_list = new util.list('hold'); hold_list.init( { 'columns' : columns }); @@ -608,17 +621,6 @@ function load_item() { var better_fleshed_hold_blob = network.simple_request('FM_AHR_BLOB_RETRIEVE.authoritative',[ ses(), details.hold.id() ]); var status_robj = better_fleshed_hold_blob.status; JSAN.use('circ.util'); - var columns = circ.util.hold_columns( - { - 'request_time' : { 'hidden' : false }, - 'pickup_lib_shortname' : { 'hidden' : false }, - 'hold_type' : { 'hidden' : true }, - 'current_copy' : { 'hidden' : true }, - 'capture_time' : { 'hidden' : true }, - 'email_notify' : { 'hidden' : false }, - 'phone_notify' : { 'hidden' : false }, - } - ); hold_list.clear(); hold_list.append( { 'row' : { 'my' : { 'ahr' : better_fleshed_hold_blob.hold, 'acp' : details.copy, 'status' : status_robj, } } }); -- 2.11.0