[open-ils-commits] r10206 -
branches/rel_1_2/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 31 01:02:30 EDT 2008
Author: phasefx
Date: 2008-07-31 01:02:23 -0400 (Thu, 31 Jul 2008)
New Revision: 10206
Modified:
branches/rel_1_2/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: branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-07-31 04:57:07 UTC (rev 10205)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-07-31 05:02:23 UTC (rev 10206)
@@ -1159,8 +1159,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');
@@ -1279,7 +1278,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