From aa49161253e0c6df0763cc2346188d6c754a2981 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 5 Jul 2007 10:33:50 +0000 Subject: [PATCH] For Bin Lin, show consortial total copy count in Holdings Maintenance. Uses Bill's open-ils.search.biblio.record.copy_count.staff. Thanks Bill git-svn-id: svn://svn.open-ils.org/ILS/trunk@7514 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 12 ++++++++++++ Open-ILS/xul/staff_client/server/cat/copy_browser.xul | 3 +++ 2 files changed, 15 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index cefd92e1a5..8f430ae1bb 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -919,6 +919,18 @@ cat.copy_browser.prototype = { obj.show_my_libs( ml.value ); + obj.network.simple_request('FM_ACP_COUNT',[ obj.data.tree.aou.id(), obj.docid ],function(req){ + try { + var robj = req.getResultObject(); + var x = document.getElementById('consortial_total'); + if (x) x.setAttribute('value',robj[0].count); + x = document.getElementById('consortial_available'); + if (x) x.setAttribute('value',robj[0].available); + } catch(E) { + obj.error.standard_unexpected_error_alert('Error retrieving consortial copy count.',E); + } + }); + } catch(E) { this.error.standard_unexpected_error_alert('cat.copy_browser.init: ',E); } diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.xul b/Open-ILS/xul/staff_client/server/cat/copy_browser.xul index 447e3285ae..478a6a7cc4 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.xul @@ -126,6 +126,9 @@ + + -- 2.11.0