--- loncom/interface/portfolio.pm 2010/02/12 19:19:21 1.212.2.4 +++ loncom/interface/portfolio.pm 2009/04/21 23:25:03 1.213 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.212.2.4 2010/02/12 19:19:21 raeburn Exp $ +# $Id: portfolio.pm,v 1.213 2009/04/21 23:25:03 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -88,13 +88,13 @@ sub display_common { my $iconpath= $r->dir_config('lonIconsURL') . "/"; my %lt=&Apache::lonlocal::texthash( - 'upload' => 'Upload', - 'upload_label' => 'Upload file to current directory', - 'createdir' => 'Create Subdirectory', - 'createdir_label' => 'Create subdirectory in current directory', - 'parse' => 'Upload embedded images/multimedia/css/linked files if HTML file', - ); - + 'upload' => 'Upload', + 'upload_label' => 'Upload file to current directory', + 'createdir' => 'Create Subdirectory', + 'createdir_label' => + 'Create subdirectory in current directory', + 'parse' => 'If HTML file, upload embedded images/multimedia/css/linked files' + ); 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'); @@ -105,9 +105,8 @@ sub display_common { $parse_check = <<"END";
- END @@ -118,7 +117,7 @@ END $r->print('
' .'
' .'
' - .''.$lt{'upload_label'}.'' + .''.$lt{'upload_label'}.'' .$groupitem .'' .'' @@ -136,7 +135,7 @@ END $r->print('
' .'' .'
' - .''.$lt{'createdir_label'}.'' + .''.$lt{'createdir_label'}.'' .''.$groupitem .'' .'' @@ -159,7 +158,6 @@ END 'fieldname' => $env{"form.fieldname"}, 'continue' => $env{"form.continue"} ); - $r->print('
'); $r->print(''.&make_anchor($url,\%anchor_fields,$port_path).'/'); if (@tree > 1){ my $newCurrentPath = '/'; @@ -237,7 +235,7 @@ sub display_directory_line { $r->print($line); # contains first two cells of table my $lock_info; if ($version_flag) { # versioned can't be versioned, so TRUE when root file - $r->print(''); + $r->print(''); $r->print(''.$version_flag.''); } else { # this is a graded or handed back file my ($user,$domain) = &get_name_dom($env{'form.group'}); @@ -415,7 +413,7 @@ sub display_directory { $colspan_fill=' colspan="4"'; } $r->print(''); - $r->print(''.&mt('closed folder').'' + $r->print(''.&mt('closed folder').'' .''.&mt('Go to ...').''); my %anchor_fields = ( 'selectfile' => $filename.'/', @@ -454,7 +452,8 @@ sub display_directory { $line .= ''; } if ($can_modify) { - my $cat=''.&mt('Metadata').''; + my $cat=''.&mt('Metadata').''; +# src="'.#&Apache::loncommon::lonhttpdurl('/res/adm/pages/catalog.gif').'" />'; my %anchor_fields = ( 'rename' => $filename, currentpath => $current_path @@ -522,7 +521,7 @@ sub display_directory {


- +

'); @@ -1358,7 +1357,7 @@ sub standard_settings { &build_access_summary($r,$count,$chg,%conditionals); $r->print(&Apache::loncommon::end_data_table()); } else { - $r->print(&make_anchor($url,\%anchor_fields,&mt('Add conditional access')).' '.&mt('based on domain, username, or course/community affiliation.')); + $r->print(&make_anchor($url,\%anchor_fields,&mt('Add conditional access')).' '.&mt('based on domain, username, or course affiliation.')); } } @@ -1546,13 +1545,13 @@ sub course_row { $r->print(''); } $r->print('
'.&mt('Add a roles-based condition'). - ' {'domain'}','$content->{'number'}', '$uctype'".')" value="" />'); $newrole_id = $max_id; } else { - $r->print(''); + $r->print(''); } $r->print(&add_course_role($num,$newrole_id)); $r->print(''); @@ -1580,7 +1579,7 @@ sub domains_row { foreach my $dom (@{$all_doms}) { if ((@{$content->{'dom'}} > 0) && (grep(/^\Q$dom\E$/,@{$content->{'dom'}}))) { - $dom_select .= ''; } else { $dom_select .= ''; @@ -1722,7 +1721,7 @@ sub role_selectors { if ($caller eq 'display') { if ((@{$$content{'roles'}{$role_id}{$item}} > 0) && (grep(/^\Q$entry\E$/,@{$$content{'roles'}{$role_id}{$item}}))) { - $output .= ' '; next; } @@ -2274,7 +2273,7 @@ sub handler { } else { ($uname,$udom) = &get_name_dom(); $portfolio_root = &get_portfolio_root(); - $title = &mt('Portfolio Manager'); + $title = &mt('My Space'); $can_modify = 1; $can_delete = 1; $can_upload = 1;