--- loncom/interface/londocs.pm 2010/02/02 01:30:46 1.325.2.7 +++ loncom/interface/londocs.pm 2009/07/14 12:27:52 1.380 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.325.2.7 2010/02/02 01:30:46 raeburn Exp $ +# $Id: londocs.pm,v 1.380 2009/07/14 12:27:52 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,6 @@ my $hadchanges; my %help=(); - sub mapread { my ($coursenum,$coursedom,$map)=@_; return @@ -73,7 +72,7 @@ sub storemap { &LONCAPA::map::storemap('/uploaded/'.$coursedom.'/'.$coursenum.'/'. $map,1); if ($errtext) { return ($errtext,2); } - + $hadchanges=1; return ($errtext,0); } @@ -117,17 +116,15 @@ sub authorhosts { sub dumpbutton { my ($home,$other,%outhash)=&authorhosts(); - my $crstype = &Apache::loncommon::course_type(); + my $type = &Apache::loncommon::course_type(); if ($home+$other==0) { return ''; } if ($home) { - return '
' - .&mt('[_1]Your IMS package[_2] is ready for download.' - ,'','') - .'
'; if ($copyresult) { $outcome .= '' .&mt('The following errors occurred during export - [_1]' ,$copyresult) .'
'; } + $outcome .= '' + .&mt('[_1]Your IMS package[_2] is ready for download.' + ,'','') + .'
'; } else { $outcome = '' .&mt('Unfortunately you will not be able to retrieve' @@ -367,31 +354,29 @@ sub exportcourse { .'
'; } } - $r->print(&Apache::loncommon::start_page('Export '.$crstype.' to IMS Package')); - $r->print(&Apache::lonhtmlcommon::breadcrumbs('IMS Export')); + $r->print(&Apache::loncommon::start_page('Export '.$type.' to IMS Package')); + $r->print(&Apache::lonhtmlcommon::breadcrumbs('IMS Export')); $r->print($outcome); $r->print(&Apache::loncommon::end_page()); } else { - my $display=' +SUPDOCFORM + + my $supnewfolderform=(<'.$error.'
'); } - } - $r->print(''); +$r->print(''); + } +$r->print(''); if ($allowed) { $r->print('