--- loncom/interface/portfolio.pm 2006/10/19 20:36:12 1.165
+++ loncom/interface/portfolio.pm 2006/11/01 02:03:16 1.167
@@ -1,7 +1,7 @@
# The LearningOnline Network
# portfolio browser
#
-# $Id: portfolio.pm,v 1.165 2006/10/19 20:36:12 albertel Exp $
+# $Id: portfolio.pm,v 1.167 2006/11/01 02:03:16 rezaferry Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -95,6 +95,13 @@ sub display_common {
'createdir_label' =>
'Create subdirectory in current directory:');
my $escuri = &HTML::Entities::encode($r->uri,'&<>"');
+ my $help_fileupload = &Apache::loncommon::help_open_topic('Portfolio AddFiles');
+ my $help_createdir = &Apache::loncommon::help_open_topic('Portfolio CreateDirectory');
+
+ # TO BE DEPRECATED: This line should be deleted once Portfolio uses breadcrumbs
+ $r->print(&Apache::loncommon::help_open_topic('Portfolio About', 'Help on the portfolio'));
+ # END LINE TO BE DEPRECATED
+
$r->print(<<"TABLE");
@@ -109,7 +116,7 @@ sub display_common {
-
+ $help_fileupload
@@ -124,7 +131,7 @@ sub display_common {
-
+ $help_createdir
@@ -155,6 +162,7 @@ TABLE
}
}
$r->print('');
+ $r->print(&Apache::loncommon::help_open_topic('Portfolio ChangeDirectory'));
&Apache::lonhtmlcommon::store_recent($namespace,$current_path,$current_path);
$r->print(' '
@@ -550,9 +564,10 @@ sub delete_confirmed {
$env{'form.currentpath'}.
$delete_file);
if ($result ne 'ok') {
- $r->print(' An error occured ('.$result.
- ') while trying to delete '.
- &display_file(undef, $delete_file).' ');
+ $r->print(''.
+ &mt('An error occured ([_1]) while trying to delete
+ [_2].',$result,&display_file(undef, $delete_file)).
+ '
');
} else {
$r->print(&mt('File: [_1] deleted.',
&display_file(undef,$delete_file)));
@@ -563,7 +578,7 @@ sub delete_confirmed {
$group,$file_name);
if (keys(%access_controls) > 0) {
my %changes;
- foreach my $key (%{$access_controls{$file_name}}) {
+ foreach my $key (keys(%{$access_controls{$file_name}})) {
$changes{'delete'}{$key} = 1;
}
if (keys(%changes) > 0) {
@@ -573,15 +588,15 @@ sub delete_confirmed {
if ($outcome ne 'ok') {
$r->print(' '.&mt("An error occured ([_1]) while ".
"trying to delete access controls for the file.",$outcome).
- ' ');
+ '
');
} else {
if ($deloutcome eq 'ok') {
- $r->print(' '.&mt('Access controls also deleted for the file.'));
+ $r->print(' '.&mt('Access controls also deleted for the file.').'
');
} else {
$r->print(''.' '.
&mt("An error occured ([_1]) while ".
"trying to delete access controls for the file.",$deloutcome).
- ' ');
+ '
');
}
}
}
@@ -747,10 +762,12 @@ sub display_access {
if ($group eq '') {
$info .= (&mt("A listing of files viewable without log-in is available at: http://$ENV{'SERVER_NAME'}/adm/$udom/$uname/aboutme/portfolio. For logged in users a 'Display file listing' link will also appear (when there are viewable files) on your personal information page: http://$ENV{'SERVER_NAME'}/adm/$udom/$uname/aboutme "));
}
-
if ($can_setacl) {
&open_form($r,$url);
$r->print($header.$info);
+ $r->print (' '.&Apache::loncommon::help_open_topic('Portfolio ShareFile SetAccess', 'Help on setting up share access'));
+ $r->print (&Apache::loncommon::help_open_topic('Portfolio ShareFile ChangeSetting', 'Help on changing settings'));
+ $r->print (&Apache::loncommon::help_open_topic('Portfolio ShareFile StopAccess', 'Help on removing share access'));
&access_setting_table($r,$access_controls{$file_name});
my $button_text = {
'continue' => &mt('Proceed'),