version 1.132, 2005/11/22 19:43:53
|
version 1.133, 2005/11/22 23:20:40
|
Line 243 sub fieldnames {
|
Line 243 sub fieldnames {
|
'authorspace' => 'Author Space', |
'authorspace' => 'Author Space', |
'modifyinguser' => 'Last Modifying User', |
'modifyinguser' => 'Last Modifying User', |
'subject' => 'Subject', |
'subject' => 'Subject', |
|
'standards' => 'Standards', |
'keywords' => 'Keyword(s)', |
'keywords' => 'Keyword(s)', |
'notes' => 'Notes', |
'notes' => 'Notes', |
'abstract' => 'Abstract', |
'abstract' => 'Abstract', |
Line 254 sub fieldnames {
|
Line 255 sub fieldnames {
|
%fields = |
%fields = |
(%fields, |
(%fields, |
'domain' => 'Domain', |
'domain' => 'Domain', |
'standards' => 'Standards', |
|
'mime' => 'MIME Type', |
'mime' => 'MIME Type', |
'language' => 'Language', |
'language' => 'Language', |
'creationdate' => 'Creation Date', |
'creationdate' => 'Creation Date', |
Line 284 sub fieldnames {
|
Line 284 sub fieldnames {
|
'stdno' => 'Total number of students who have worked on this problem', |
'stdno' => 'Total number of students who have worked on this problem', |
'difficulty' => 'Degree of difficulty', |
'difficulty' => 'Degree of difficulty', |
'disc' => 'Degree of discrimination', |
'disc' => 'Degree of discrimination', |
'dependencies' => 'Resources used by this resource', |
'dependencies' => 'Resources used by this resource', |
); |
); |
} |
} |
return &Apache::lonlocal::texthash(%fields); |
return &Apache::lonlocal::texthash(%fields); |
Line 499 sub prettyinput {
|
Line 499 sub prettyinput {
|
} |
} |
# need to take instructor values out of list where instructor and student |
# need to take instructor values out of list where instructor and student |
# values may be mixed. |
# values may be mixed. |
if ($values && $stu_add) { |
if ($values) { |
foreach my $item (split(/,/,$values)) { |
foreach my $item (split(/,/,$values)) { |
$item =~ s/^\s+//; |
$item =~ s/^\s+//; |
$meta_options{$item} = $type; |
$meta_options{$item} = $item; |
} |
} |
foreach my $item (split(/,/,$value)) { |
foreach my $item (split(/,/,$value)) { |
$item =~ s/^\s+//; |
$item =~ s/^\s+//; |
Line 520 sub prettyinput {
|
Line 520 sub prettyinput {
|
} |
} |
if (($type eq 'keywords') || ($type eq 'subject') |
if (($type eq 'keywords') || ($type eq 'subject') |
|| ($type eq 'author')||($type eq 'notes') |
|| ($type eq 'author')||($type eq 'notes') |
|| ($type eq 'abstract')|| ($type eq 'title')) { |
|| ($type eq 'abstract')|| ($type eq 'title')|| ($type eq 'standards')) { |
if ($values) { |
if ($values) { |
if ($only_one) { |
if ($only_one) { |
$output .= (&Apache::loncommon::select_form($value,'new_'.$type,%meta_options)); |
$output .= (&Apache::loncommon::select_form($value,'new_'.$type,%meta_options)); |
Line 1071 ENDEDIT
|
Line 1071 ENDEDIT
|
my @fields; |
my @fields; |
if ($file_type eq 'portfolio') { |
if ($file_type eq 'portfolio') { |
@fields = ('author','title','subject','keywords','abstract','notes','lowestgradelevel', |
@fields = ('author','title','subject','keywords','abstract','notes','lowestgradelevel', |
'highestgradelevel','courserestricted'); |
'highestgradelevel','standards','courserestricted'); |
} else { |
} else { |
@fields = ('author','title','subject','keywords','abstract','notes', |
@fields = ('author','title','subject','keywords','abstract','notes', |
'copyright','customdistributionfile','language', |
'copyright','customdistributionfile','language', |