From ea02f7f2f10656feb447f0ac0aaef40d5f1ef091 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 22 Jun 2006 20:57:06 +0000 Subject: [PATCH] fix and total circs git-svn-id: svn://svn.open-ils.org/ILS/trunk@4719 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_summary.xul | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 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 5b33bb01fb..98a608277b 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul @@ -76,7 +76,7 @@ if (typeof copy.ilsevent != 'undefined') throw(copy); g.network.simple_request( 'FM_ACN_RETRIEVE', - [ copy.call_number ], + [ copy.call_number() ], function (rreq) { try { $w('barcode',copy.barcode()); @@ -103,7 +103,7 @@ break; } } else { - $w('callnumber',g.data.hash.acpl[ copy.location() ].name()); + $w('callnumber',cn.label()); } } catch(E) { g.error.standard_unexpected_error_alert('retrieving volume',E); @@ -116,6 +116,16 @@ } ); + g.network.simple_request('FM_CIRC_COUNT_RETRIEVE_VIA_COPY',[ g.copy_id ],function(req) { + try { + var robj = req.getResultObject(); + if (typeof robj.ilsevent != 'undefined') throw(robj); + $w('total_circs',robj.total.count); + } catch(E) { + g.error.standard_unexpected_error_alert('retrieving circ total',E); + } + }); + } catch(E) { @@ -168,6 +178,10 @@