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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jul 31 01:05:18 EDT 2008


Author: phasefx
Date: 2008-07-31 01:05:11 -0400 (Thu, 31 Jul 2008)
New Revision: 10208

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
Log:
In Holdings Maintenance, we used to disable some render child behavior for the top of the org hierarchy, to prevent in the case of PINES, 200-odd libraries from being retrieved and rendered.  Now we check the can_have_vols for that org as well, to allow the interface to work with a single-org hierarchy

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2008-07-31 05:04:01 UTC (rev 10207)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2008-07-31 05:05:11 UTC (rev 10208)
@@ -1220,8 +1220,7 @@
 	'on_select_org' : function(org_id,twisty) {
 		var obj = this;
 		var org = obj.data.hash.aou[ org_id ];
-		if (obj.data.hash.aout[ org.ou_type() ].depth() == 0) return; 
-		/* otherwise, we'd show every system in the consortia */
+        if (obj.data.hash.aout[ org.ou_type() ].depth() == 0 && ! get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) ) return;
 		var funcs = [];
 		funcs.push( function() { 
 			document.getElementById('cmd_refresh_list').setAttribute('disabled','true'); 
@@ -1340,7 +1339,7 @@
 			}
 
 			if (document.getElementById('show_acns').checked) {
-				if ( obj.data.hash.aout[ org.ou_type() ].depth() != 0 ) {
+                if (! ( obj.data.hash.aout[ org.ou_type() ].depth() == 0 && ! get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) )) {
 					node.setAttribute('open','true');
 					setTimeout( function() { obj.on_select_org( org.id() ); }, 0 );
 				}



More information about the open-ils-commits mailing list