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 -N -r1.42 -r1.43
--- openacs-4/packages/imsld/tcl/imsld-procs.xql 22 Oct 2008 10:55:35 -0000 1.42
+++ openacs-4/packages/imsld/tcl/imsld-procs.xql 18 Dec 2008 19:12:17 -0000 1.43
@@ -1730,6 +1730,23 @@
+
+
+
+ select ci.item_id as page_id, ci.name as file_name
+ from acs_rels ar, imsld_res_files_rels map,
+ cr_revisions cr, cr_items ci
+ where ar.object_id_one = :resource_item_id
+ and ar.object_id_two = cr.item_id
+ and cr.item_id = ci.item_id
+ and ar.rel_id = map.rel_id
+ and content_revision__is_live(cr.revision_id) = 't'
+ and map.displayable_p = 't'
+
+
+
+
+
select content_item__get_path(:parent_id,:root_folder_id);