Index: openacs-4/packages/fs-portlet/tcl/fs-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/fs-portlet/tcl/fs-portlet-procs.tcl,v diff -u -r1.16 -r1.17 --- openacs-4/packages/fs-portlet/tcl/fs-portlet-procs.tcl 1 Dec 2001 23:18:53 -0000 1.16 +++ openacs-4/packages/fs-portlet/tcl/fs-portlet-procs.tcl 6 Dec 2001 19:44:25 -0000 1.17 @@ -82,12 +82,10 @@ set query " select i.item_id as file_id, r.title as name, - i.live_revision, - content_item.get_path(i.item_id,file_storage.get_root_folder($config(community_id))) as path, + i.live_revision file_live_rev, r.mime_type as type, - to_char(o.last_modified,'YYYY-MM-DD HH24:MI') as last_modified, - r.content_length as content_size, - 1 as ordering_key + 1 as ordering_key, + 0 as num from cr_items i, cr_revisions r, acs_objects o where i.item_id = o.object_id and i.live_revision = r.revision_id (+) @@ -97,12 +95,10 @@ UNION select i.item_id as file_id, f.label as name, - 0, - content_item.get_path(f.folder_id) as path, + 0, 'Folder', - NULL, - 0, - 0 + 0, + (select count(*) from cr_items where parent_id = i.item_id) as num from cr_items i, cr_folders f where i.item_id = f.folder_id and i.parent_id = $config(folder_id) @@ -115,19 +111,25 @@ if { $config(shaded_p) == "f" } { db_foreach select_files_and_folders $query { - append data "$name$path$content_size$type$last_modified" + if {$type == "Folder"} { + append data "$name$type$num files" + + } else { +# http://dotlrn.openforce.net:8000/dotlrn/classes/ck1/ck1-asf-asef/file-storage/download/LICENSE?version_id=3952 + set type "File" + append data "$name$type(download)" + + } +#http://dotlrn.openforce.net:8000/dotlrn/classes/ck1/ck1-asf-asef/file-storage/file?file_id=3951 + + + + incr rowcount } set template " - - - - - - - - +
NameActionSize (bytes)TypeModified
$data
"