For Bin Lin, show consortial total copy count in Holdings Maintenance. Uses Bill...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Jul 2007 10:33:50 +0000 (10:33 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Jul 2007 10:33:50 +0000 (10:33 +0000)
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
Open-ILS/xul/staff_client/server/cat/copy_browser.xul

index cefd92e..8f430ae 100644 (file)
@@ -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);
                }
index 447e328..478a6a7 100644 (file)
                <hbox><label id="legend" style="font-size: large" class="has_copies" value="Green in the list below means the library has volumes for this record." hidden="true"/></hbox>
                <hbox>
                        <hbox id="x_lib_menu"/>
+                       <spacer flex="1"/>
+                       <label value="Consortial Total:"/><label id="consortial_total"/>
+                       <label value="Available:"/><label id="consortial_available"/>
                </hbox>
                <hbox>
                        <checkbox id="show_acns" label="Show Volumes" />