From: phasefx Date: Thu, 31 Jul 2008 05:04:01 +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=5a1064714a0ce09f002988e03d364441e9c97cbd;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/branches/rel_1_2_2@10207 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 ec56a8466a..023a07968f 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -1159,8 +1159,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'); @@ -1279,7 +1278,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 ); }