From 2c24d9d0e840fc36427cefb457319da1d55e2ea0 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 14 Aug 2006 21:59:12 +0000 Subject: [PATCH] non cat count in summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@5509 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/summary.js | 9 +++++++++ Open-ILS/xul/staff_client/server/patron/summary_overlay.xul | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 47988d5cbf..489bda9c10 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -152,6 +152,7 @@ patron.summary.prototype = { var e3 = document.getElementById( 'patron_claimed_returned' ); if (e3) e3.setAttribute('value','...'); var e4 = document.getElementById( 'patron_long_overdue' ); if (e4) e4.setAttribute('value','...'); var e5 = document.getElementById( 'patron_lost' ); if (e5) e5.setAttribute('value','...'); + var e6 = document.getElementById( 'patron_noncat' ); if (e6) e6.setAttribute('value','...'); obj.network.simple_request( 'FM_CIRC_COUNT_RETRIEVE_VIA_USER', [ ses(), obj.patron.id() ], @@ -164,6 +165,14 @@ patron.summary.prototype = { if (e5) e5.setAttribute('value', robj.lost ); } ); + obj.network.simple_request( + 'FM_ANCC_RETRIEVE_VIA_USER', + [ ses(), obj.patron.id() ], + function(req) { + var robj = req.getResultObject(); + if (e6) e6.setAttribute('value',robj.length); + } + ); }; } ], diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index 95507855e8..6da8ce6f9c 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -101,6 +101,10 @@