';
return ('',$warning);
@@ -852,33 +874,6 @@ sub get_coordinator_cloneable {
}
}
-sub instcode_selectors {
- my ($codedom,$formname,$officialjs,$codetitles) = @_;
- my ($output,%cat_titles,%cat_order,%cat_items);
- my ($jscript,$totcodes,$numtitles,$lasttitle) =
- &Apache::courseclassifier::instcode_selectors_data($codedom,$formname,
- \%cat_items,$codetitles,\%cat_titles,\%cat_order,$officialjs);
- if ($numtitles > 0) {
- my $official = ' checked="checked" ';
- my $unofficial = '';
- if ($env{'form.official'} eq 'off') {
- $unofficial = $official;
- $official = '';
- }
- $output .= ''.&mt('Official course:').' '.(' 'x3).' '.
- &Apache::courseclassifier::build_instcode_selectors($numtitles,
- $lasttitle,\%cat_items,$codetitles,\%cat_titles,\%cat_order)."\n".
- ''."\n".
- ''."\n";
-
- }
- return ($output,$jscript,$numtitles);
-}
-
sub search_courses {
my ($r,$type,$onlyown,$filter,$numtitles,$cloneruname,$clonerudom,$domcloner,$codetitles) = @_;
my (%courses,%showcourses,$cloner,$ccrole);
@@ -888,7 +883,7 @@ sub search_courses {
$ccrole = 'cc';
}
if (!$onlyown) {
- $r->print(&mt('Searching ...').'
');
+ $r->print('
'.&mt('Searching ...').'
');
$r->rflush();
if (($filter->{'ownerfilter'} ne '') ||
($filter->{'ownerdomfilter'} ne '')) {
@@ -987,7 +982,7 @@ sub course_chooser {
$output = &mt('No rights to clone')."\n";
}
} else {
- $output = ''."\n";
}
return $output;
@@ -1007,8 +1002,7 @@ sub gochoose_javascript {
list => 'courselist',
},
);
- my $output .= qq|
-
|;
- return $output;
+ return &Apache::lonhtmlcommon::scripttag($output);
}
1;
@@ -1285,7 +1283,7 @@ javascript functions used when user sele
=item
-(g) Scantron Operator uploading a scantron file to a course - course number is written to visible form element in opener window. Child window closes.
+(g) Bubblesheet Scanning Operator uploading a bubblesheet file to a course - course number is written to visible form element in opener window. Child window closes.
=item