LP#1346381: remove searching child org units, requirement to have volumes and adds...
authorRogan Hamby <rogan.hamby@gmail.com>
Mon, 12 Jun 2017 17:41:02 +0000 (13:41 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 7 Nov 2017 21:43:11 +0000 (16:43 -0500)
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/opac/copyloc.js

index ddd1a5c..08023d6 100644 (file)
@@ -10,11 +10,6 @@ function apply_adv_copy_locations() {
     var selected_id = sel.options[sel.selectedIndex].getAttribute('value');
     var org_unit = aou_hash[selected_id];
 
-    if (org_unit.can_have_vols != 't') {
-        dojo.addClass('adv_chunk_copy_location', 'hidden');
-        return;
-    }
-
     var display_orgs = [];
 
     // we want to display copy locations at the selected org,
@@ -34,7 +29,7 @@ function apply_adv_copy_locations() {
         collect_parent_orgs(aou_hash[org_id].parent_ou);
     }
 
-    collect_child_orgs(org_unit.id);
+    display_orgs.push(org_unit.id);
     collect_parent_orgs(org_unit.parent_ou);
     fetch_adv_copy_locations(display_orgs);
 }