From: phasefx Date: Thu, 31 Jul 2008 05:05:11 +0000 (+0000) Subject: In Holdings Maintenance, we used to disable some render child behavior for the top... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=96f8231e00df020b03d48d35a078e99987b6f7c5;p=Evergreen.git 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@10208 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 e7e43ed0bb..6e307615c4 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -1220,8 +1220,7 @@ cat.copy_browser.prototype = { '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 @@ cat.copy_browser.prototype = { } 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 ); }