From 8a00b62887989433ed3c689909610d8d976dcbb2 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 31 Jul 2008 05:02:23 +0000 Subject: [PATCH] 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@10206 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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..b79e29f57a 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 ); } -- 2.11.0