version 1.127.2.3, 2020/09/09 00:23:50
|
version 1.132, 2023/07/29 20:33:25
|
Line 36 use Apache::lonlocal;
|
Line 36 use Apache::lonlocal;
|
use Apache::lonnavmaps(); |
use Apache::lonnavmaps(); |
use Apache::longroup(); |
use Apache::longroup(); |
use Apache::portfolio(); |
use Apache::portfolio(); |
|
use Apache::lonuserutils(); |
use Apache::Constants qw(:common :http); |
use Apache::Constants qw(:common :http); |
use HTML::Entities; |
use HTML::Entities; |
use LONCAPA::map(); |
use LONCAPA::map(); |
Line 428 END
|
Line 429 END
|
$numlinks ++; |
$numlinks ++; |
} elsif ($hidden) { |
} elsif ($hidden) { |
my $numtools = 0; |
my $numtools = 0; |
my $refarg = '&ref=grouplist'; |
my $refarg = '&ref=grouplist'; |
my $output = |
my $output = |
&Apache::longroup::display_group_links($r,$env{'form.grade_target'},$group,'view', |
&Apache::longroup::display_group_links($r,$env{'form.grade_target'},$group,'view', |
$refarg,\$numtools,$hidden,%group_info); |
$refarg,\$numtools,$hidden,%group_info); |
Line 1818 sub get_quota_constraints {
|
Line 1819 sub get_quota_constraints {
|
my ($crsquota,$freespace,$maxposs); |
my ($crsquota,$freespace,$maxposs); |
$crsquota = $env{'course.'.$env{'request.course.id'}.'.internal.coursequota'}; |
$crsquota = $env{'course.'.$env{'request.course.id'}.'.internal.coursequota'}; |
if ($crsquota eq '') { |
if ($crsquota eq '') { |
$crsquota = 20; |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
|
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
|
my $crstype = &Apache::loncommon::course_type(); |
|
my %domdefs = &Apache::lonnet::get_domain_defaults($cdom); |
|
my %coursehash = ( |
|
'internal.coursecode' => $env{'course.'.$env{'request.course.id'}.'.internal.coursecode'}, |
|
'internal.textbook' => $env{'course.'.$env{'request.course.id'}.'.internal.textbook'}, |
|
); |
|
my %staticdefaults = ( |
|
coursequota => 20, |
|
); |
|
my $quotatype = &Apache::lonuserutils::get_extended_type($cdom,$cnum,$crstype,\%coursehash); |
|
if ($crsquota eq '') { |
|
$crsquota = $domdefs{$quotatype.'coursequota'}; |
|
if ($crsquota eq '') { |
|
$crsquota = $staticdefaults{'coursequota'}; |
|
} |
|
} |
} |
} |
$freespace = $crsquota - &Apache::longroup::sum_quotas(); |
$freespace = $crsquota - &Apache::longroup::sum_quotas(); |
if ($action eq 'create') { |
if ($action eq 'create') { |