[open-ils-commits] r7514 - trunk/Open-ILS/xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jul 5 06:37:40 EDT 2007


Author: phasefx
Date: 2007-07-05 06:33:50 -0400 (Thu, 05 Jul 2007)
New Revision: 7514

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
   trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul
Log:
For Bin Lin, show consortial total copy count in Holdings Maintenance.  Uses Bill's open-ils.search.biblio.record.copy_count.staff.  Thanks Bill

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2007-07-04 19:02:27 UTC (rev 7513)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2007-07-05 10:33:50 UTC (rev 7514)
@@ -919,6 +919,18 @@
 
 			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);
 		}

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul	2007-07-04 19:02:27 UTC (rev 7513)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.xul	2007-07-05 10:33:50 UTC (rev 7514)
@@ -126,6 +126,9 @@
 		<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" />



More information about the open-ils-commits mailing list