From a5e7b96ed5aa07dc9cf4c4ec54ee515245354a87 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 14 Dec 2009 21:34:26 +0000 Subject: [PATCH] this should fix some of those set_text on column errors in bill Full Details git-svn-id: svn://svn.open-ils.org/ILS/trunk@15162 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/cat/copy_summary.xul | 50 +++++++++++----------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul index e373f41c72..78c57e221b 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul @@ -93,16 +93,16 @@ function acn_callback(rreq) { try { - $w('barcode',copy.barcode()); - $w('ref',get_bool(copy.ref()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); - $w('opac_visible',get_bool(copy.opac_visible()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); - $w('circulate',get_bool(copy.circulate()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); - $w('holdable',get_bool(copy.holdable()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); - $w('age_protect',copy.age_protect() == null ? $('staff.cat.copy_summary.unset') : ( typeof copy.age_protect() == 'object' ? copy.age_protect().name() : g.data.hash.crahp[ copy.age_protect() ].name() ) ); - $w('location',typeof copy.location() == 'object' ? copy.location().name() : g.data.lookup('acpl',copy.location()).name() ); - $w('create_date',util.date.formatted_date(copy.create_date(),'%F')); - $w('edit_date',util.date.formatted_date(copy.edit_date(),'%F')); - $w('status',typeof copy.status() == 'object' ? copy.status().name() : g.data.hash.ccs[ copy.status() ].name() ); + $w('copy_summary_barcode',copy.barcode()); + $w('copy_summary_ref',get_bool(copy.ref()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); + $w('copy_summary_opac_visible',get_bool(copy.opac_visible()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); + $w('copy_summary_circulate',get_bool(copy.circulate()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); + $w('copy_summary_holdable',get_bool(copy.holdable()) ? $('catStrings').getString('staff.cat.copy_summary.yes') : $('catStrings').getString('staff.cat.copy_summary.no')); + $w('copy_summary_age_protect',copy.age_protect() == null ? $('staff.cat.copy_summary.unset') : ( typeof copy.age_protect() == 'object' ? copy.age_protect().name() : g.data.hash.crahp[ copy.age_protect() ].name() ) ); + $w('copy_summary_location',typeof copy.location() == 'object' ? copy.location().name() : g.data.lookup('acpl',copy.location()).name() ); + $w('copy_summary_create_date',util.date.formatted_date(copy.create_date(),'%F')); + $w('copy_summary_edit_date',util.date.formatted_date(copy.edit_date(),'%F')); + $w('copy_summary_status',typeof copy.status() == 'object' ? copy.status().name() : g.data.hash.ccs[ copy.status() ].name() ); } catch(E) { g.error.standard_unexpected_error_alert('rendering copy',E); } @@ -111,14 +111,14 @@ if (typeof cn.ilsevent != 'undefined') { switch(Number(cn.ilsevent)) { case 1508 /* ASSET_CALL_NUMBER_NOT_FOUND */ : - $w('callnumber', $('catStrings').getString('staff.cat.copy_summary.not_cataloged')); + $w('copy_summary_callnumber', $('catStrings').getString('staff.cat.copy_summary.not_cataloged')); break; default: throw(cn); break; } } else { - $w('callnumber',cn.label()); + $w('copy_summary_callnumber',cn.label()); } g.list.append({'row':{'my':{'acp':copy,'acn':cn}}}); } catch(E) { @@ -150,7 +150,7 @@ try { var robj = req.getResultObject(); if (typeof robj.ilsevent != 'undefined') throw(robj); - $w('total_circs',robj.total.count); + $w('copy_summary_total_circs',robj.total.count); } catch(E) { g.error.standard_unexpected_error_alert('retrieving circ total',E); } @@ -201,33 +201,33 @@ -- 2.11.0