--- loncom/html/adm/helper/newslot.helper 2018/06/27 14:35:09 1.30.4.1 +++ loncom/html/adm/helper/newslot.helper 2015/09/23 23:05:04 1.31 @@ -184,34 +184,11 @@ delete($helper->{'VARS'}{'startreserve'}); delete($helper->{'VARS'}{'endreserve'}); delete($helper->{'VARS'}{'maxspace'}); + delete($helper->{'VARS'}{'startunique'}); + delete($helper->{'VARS'}{'endunique'}); - -

Period of time when this slot can only be uniquely assigned:
   Start: - - - - my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); - if ($default eq 'anytime') { return 'anytime' }; - if (ref($default)) { return $default->[0]; } - return 'anytime'; - - -
   End:
- - - my $default=&{$helper->{DATA}{origslot}}('uniqueperiod','anytime'); - if ($default eq 'anytime') { return 'anytime' }; - if (ref($default)) { return $default->[1]; } - return 'anytime'; - - - if (defined($val) && $val < $helper->{'VARS'}{'startunique'}) { - return 'End time must be later than the start time.'; - } - return undef; - - +

Proctored access: @@ -243,11 +220,19 @@ usable for any resource. + restricted to resources in a specific folder/composite page. restricted to a specific resource. my $default=&{$helper->{DATA}{origslot}}('symb'); - if ($default) { return 'resource'; } - return 'any'; + if ($default) { + if ($default =~ /\.(page|sequence)$/) { + return 'map'; + } else { + return 'resource'; + } + } else { + return 'any'; + } @@ -279,6 +264,18 @@ + + + PROCTOR + + + return $res->is_map() + return $res->symb() + + return &{$helper->{DATA}{origslot}}('symb'); + + +