version 1.155, 2013/09/17 15:04:30
|
version 1.158, 2014/12/01 22:52:48
|
Line 83 use Apache::lonrss();
|
Line 83 use Apache::lonrss();
|
use Apache::lonlocal; |
use Apache::lonlocal; |
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use Apache::lontemplate; |
use Apache::lontemplate; |
|
use Apache::longroup; |
use HTML::Entities(); |
use HTML::Entities(); |
use Image::Magick; |
use Image::Magick; |
|
|
Line 400 sub handler {
|
Line 401 sub handler {
|
|
|
} else { |
} else { |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
$r->print('\\\\\textbf{'.&mt('User Notes, Records of Face-To-Face Discussions, and Critical Messages in Course').'}\\\\'.&mt('Shared by course faculty and staff').'\\\\\\\\'); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom, 'tex'); |
&Apache::lonmsgdisplay::disfacetoface($r,$cnum,$cdom,$target); |
} |
} |
} |
} |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
Line 541 sub display_portfolio_header {
|
Line 542 sub display_portfolio_header {
|
title => &mt('Go to personal information page for [_1]',$name), |
title => &mt('Go to personal information page for [_1]',$name), |
no_mt => 1}, |
no_mt => 1}, |
{href => "/adm/$cdom/$cnum/aboutme/portfolio".$query_string, |
{href => "/adm/$cdom/$cnum/aboutme/portfolio".$query_string, |
text => 'Viewable files', |
text => &mt('Viewable files'), |
title => &mt('Viewable portfolio files for [_1]',$name), |
title => &mt('Viewable portfolio files for [_1]',$name), |
no_mt => 1} |
no_mt => 1} |
]; |
]; |
Line 630 sub portfolio_files {
|
Line 631 sub portfolio_files {
|
my $diroutput; |
my $diroutput; |
if ($is_course) { |
if ($is_course) { |
my %files_by_group; |
my %files_by_group; |
|
my %curr_groups = &Apache::longroup::coursegroups($cdom,$cnum); |
foreach my $filename (sort(keys(%access_controls))) { |
foreach my $filename (sort(keys(%access_controls))) { |
my ($group,$path) = split('/',$filename,2); |
my ($group,$path) = split('/',$filename,2); |
$files_by_group{$group}{$path} = $access_controls{$filename}; |
if (exists($curr_groups{$group})) { |
|
$files_by_group{$group}{$path} = $access_controls{$filename}; |
|
} |
} |
} |
foreach my $group (sort(keys(%files_by_group))) { |
foreach my $group (sort(keys(%files_by_group))) { |
my %fileshash; |
my %fileshash; |
Line 667 sub portfolio_files {
|
Line 671 sub portfolio_files {
|
sub build_hierarchy { |
sub build_hierarchy { |
my ($r,$cdom,$cnum,$portaccess,$is_course,$filecounts,$mode,$access_info, |
my ($r,$cdom,$cnum,$portaccess,$is_course,$filecounts,$mode,$access_info, |
$allfileshash,$group) = @_; |
$allfileshash,$group) = @_; |
|
my $clientip = $r->get_remote_host(); |
foreach my $filename (sort(keys(%{$access_info}))) { |
foreach my $filename (sort(keys(%{$access_info}))) { |
my $access_status = |
my $access_status = |
&Apache::lonnet::get_portfolio_access($cdom,$cnum,$filename,$group,$$access_info{$filename}); |
&Apache::lonnet::get_portfolio_access($cdom,$cnum,$filename,$group,$clientip, |
|
$access_info->{$filename}); |
if ($portaccess eq 'both') { |
if ($portaccess eq 'both') { |
if (($access_status ne 'ok') && |
if (($access_status ne 'ok') && |
($access_status !~ /^[^:]+:guest_/)) { |
($access_status !~ /^[^:]+:guest_/)) { |