Index: openacs-4/packages/imsld/tcl/imsld-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/tcl/imsld-procs.xql,v diff -u -r1.14 -r1.15 --- openacs-4/packages/imsld/tcl/imsld-procs.xql 21 Mar 2006 15:35:54 -0000 1.14 +++ openacs-4/packages/imsld/tcl/imsld-procs.xql 21 Mar 2006 17:12:56 -0000 1.15 @@ -1929,20 +1929,75 @@ - + - select irp.role_part_id as role_part_id - from imsld_role_parts irp, - imsld_learning_activitiesi ilai, - acs_rels ar - where ilai.activity_id=:activity_id - and ar.object_id_two=ilai.item_id - and irp.activity_structure_id=ar.object_id_one + select role_part_id + from imsld_role_parts + where learning_activity_id = :leaf_id + + + + + select role_part_id + from imsld_role_parts + where support_activity_id = :leaf_id + + + + + + + select role_part_id + from imsld_role_partsi + where activity_structure_id = :leaf_id + + + + + + + + select ias.structure_id, ias.item_id as leaf_id + from imsld_activity_structuresi ias, acs_rels ar, imsld_learning_activitiesi la + where ar.object_id_one = ias.item_id + and ar.object_id_two = la.item_id + and content_revision__is_live(ias.structure_id) = 't' + and la.item_id = :leaf_id + + + + + + + + select ias.structure_id, ias.item_id as leaf_id + from imsld_activity_structuresi ias, acs_rels ar, imsld_support_activitiesi sa + where ar.object_id_one = ias.item_id + and ar.object_id_two = sa.item_id + and content_revision__is_live(ias.structure_id) = 't' + and sa.item_id = :leaf_id + + + + + + + + select ias.structure_id, ias.item_id as leaf_id + from imsld_activity_structuresi ias, acs_rels ar + where ar.object_id_one = ias.item_id + and ar.object_id_two = :leaf_id + and content_revision__is_live(ias.structure_id) = 't' + + + + + select iii.imsld_id as imsld_id