[open-ils-commits] r17892 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 22 15:31:12 EDT 2010


Author: phasefx
Date: 2010-09-22 15:31:07 -0400 (Wed, 22 Sep 2010)
New Revision: 17892

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
Log:
Holdings Maintenance used to make too many assumptions about what a decent org hierarchy looked like, and had these rules to suppress some of the fetch-render-happy behavior that existed when clicking on org units.  We can remove them now, and this allows volumes to render when owned by the top of the org tree

Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2010-09-22 19:16:26 UTC (rev 17891)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js	2010-09-22 19:31:07 UTC (rev 17892)
@@ -1251,7 +1251,6 @@
         var obj = this;
         try {
             var org = obj.data.hash.aou[ org_id ];
-            if (obj.data.hash.aout[ org.ou_type() ].depth() == 0 && ! get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) ) return;
             obj.funcs.push( function() { 
                 document.getElementById('cmd_refresh_list').setAttribute('disabled','true'); 
                 document.getElementById('cmd_show_libs_with_copies').setAttribute('disabled','true'); 
@@ -1376,10 +1375,8 @@
             }
 
             if (document.getElementById('show_acns').checked) {
-                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');
-                    obj.funcs.push( function() { obj.on_select_org( org.id() ); } );
-                }
+                node.setAttribute('open','true');
+                obj.funcs.push( function() { obj.on_select_org( org.id() ); } );
             }
 
         } catch(E) {



More information about the open-ils-commits mailing list