Index: openacs-4/packages/file-storage/www/file-delete.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/Attic/file-delete.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/file-storage/www/file-delete.adp 20 Apr 2001 20:51:10 -0000 1.1 +++ openacs-4/packages/file-storage/www/file-delete.adp 22 Sep 2001 05:46:56 -0000 1.2 @@ -1,5 +1,5 @@ -Delete @file_name@ +Delete @title@ @context_bar@ @@ -14,7 +14,7 @@ -

Are you sure you want to delete the file "@file_name@" and all of +

Are you sure you want to delete the file "@title@" and all of its versions? This action cannot be reversed.

Index: openacs-4/packages/file-storage/www/file-edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/file-edit.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/file-storage/www/file-edit.adp 20 Apr 2001 20:51:10 -0000 1.1 +++ openacs-4/packages/file-storage/www/file-edit.adp 22 Sep 2001 05:48:40 -0000 1.2 @@ -8,7 +8,7 @@

Please enter the new name for this file: -

+

Index: openacs-4/packages/file-storage/www/file-move.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/Attic/file-move.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/file-storage/www/file-move.tcl 20 Apr 2001 20:51:10 -0000 1.1 +++ openacs-4/packages/file-storage/www/file-move.tcl 22 Sep 2001 05:50:43 -0000 1.2 @@ -28,7 +28,7 @@ set file_name [db_exec_plsql file_name " begin - :1 := content_item.get_title(:file_id); + :1 := file_storage.get_title(:file_id); end;"] set context_bar [fs_context_bar_list -final "Move" $file_id] Index: openacs-4/packages/file-storage/www/file-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/Attic/file-oracle.xql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/file-storage/www/file-oracle.xql 20 Aug 2001 17:31:05 -0000 1.3 +++ openacs-4/packages/file-storage/www/file-oracle.xql 22 Sep 2001 05:51:00 -0000 1.4 @@ -7,9 +7,8 @@ select person.name(o.creation_user) as owner, - i.name, - r.title, - content_item.get_path(i.item_id,file_storage.get_root_folder([ad_conn package_id])) as file_path, + i.name as title, + r.title as name, acs_permission.permission_p(:file_id,:user_id,'write') as write_p, acs_permission.permission_p(:file_id,:user_id,'delete') as delete_p, acs_permission.permission_p(:file_id,:user_id,'admin') as admin_p @@ -25,16 +24,19 @@ select r.title, r.revision_id as version_id, + file_storage.get_path(i.item_id,file_storage.get_root_folder([ad_conn package_id]),r.revision_id) as file_path, person.name(o.creation_user) as author, r.mime_type as type, to_char(o.last_modified,'YYYY-MM-DD HH24:MI') as last_modified, r.description, acs_permission.permission_p(r.revision_id,:user_id,'admin') as admin_p, acs_permission.permission_p(r.revision_id,:user_id,'delete') as delete_p, - dbms_lob.getlength(r.content) as content_size - from acs_objects o, cr_revisions r + r.content_length as content_size + from acs_objects o, cr_revisions r, cr_items i where o.object_id = r.revision_id and acs_permission.permission_p(r.revision_id, :user_id, 'read') = 't' + and r.item_id = i.item_id + and r.item_id = :file_id $show_versions @@ -43,15 +45,13 @@ - and r.item_id = :file_id - - and r.revision_id = (select live_revision from cr_items where item_id = :file_id) + and r.revision_id = i.live_revision Index: openacs-4/packages/file-storage/www/file-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/Attic/file-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/file-storage/www/file-postgresql.xql 20 Aug 2001 17:31:14 -0000 1.2 +++ openacs-4/packages/file-storage/www/file-postgresql.xql 22 Sep 2001 05:51:14 -0000 1.3 @@ -7,9 +7,8 @@ select person__name(o.creation_user) as owner, - i.name, - r.title, - content_item__get_path(i.item_id,file_storage__get_root_folder([ad_conn package_id])) as file_path, + i.name as title, + r.title as name, acs_permission__permission_p(:file_id,:user_id,'write') as write_p, acs_permission__permission_p(:file_id,:user_id,'delete') as delete_p, acs_permission__permission_p(:file_id,:user_id,'admin') as admin_p @@ -25,16 +24,19 @@ select r.title, r.revision_id as version_id, + file_storage__get_path(i.item_id,file_storage__get_root_folder([ad_conn package_id]),r.revision_id) as file_path, person__name(o.creation_user) as author, r.mime_type as type, to_char(o.last_modified,'YYYY-MM-DD HH24:MI') as last_modified, r.description, acs_permission__permission_p(r.revision_id,:user_id,'admin') as admin_p, acs_permission__permission_p(r.revision_id,:user_id,'delete') as delete_p, - lob_length(r.lob) as content_size - from acs_objects o, cr_revisions r + r.content_length as content_size + from acs_objects o, cr_revisions r, cr_items i where o.object_id = r.revision_id and acs_permission__permission_p(r.revision_id, :user_id, 'read') = 't' + and r.item_id = i.item_id + and r.item_id = :file_id $show_versions @@ -43,15 +45,13 @@ - and r.item_id = :file_id - - and r.revision_id = (select live_revision from cr_items where item_id = :file_id) + and r.revision_id = i.live_revision Index: openacs-4/packages/file-storage/www/file.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/file.adp,v diff -u -r1.1 -r1.2 --- openacs-4/packages/file-storage/www/file.adp 20 Apr 2001 20:51:10 -0000 1.1 +++ openacs-4/packages/file-storage/www/file.adp 22 Sep 2001 05:51:30 -0000 1.2 @@ -4,7 +4,7 @@ @context_bar@