version 1.324, 2008/12/15 16:37:44
|
version 1.325, 2008/12/19 18:57:43
|
Line 280 sub exportcourse {
|
Line 280 sub exportcourse {
|
$env{'course.'.$env{'request.course.id'}.'.domain'}, $env{'course.'.$env{'request.course.id'}.'.num'}); |
$env{'course.'.$env{'request.course.id'}.'.domain'}, $env{'course.'.$env{'request.course.id'}.'.num'}); |
my $numdisc = keys(%discussiontime); |
my $numdisc = keys(%discussiontime); |
my $navmap = Apache::lonnavmaps::navmap->new(); |
my $navmap = Apache::lonnavmaps::navmap->new(); |
|
if (!defined($navmap)) { |
|
$r->print(&Apache::loncommon::start_page('Export '.lc($type).' to IMS content package'). |
|
'<h2>IMS Export Failed</h2>'. |
|
'<div class="LC_error">'. |
|
&mt('Unable to retrieve information about course contents'). |
|
'</div><a href="/adm/coursedocs">'.&mt('Return to Course Editor').'</a>'); |
|
&Apache::lonnet::logthis('IMS export failed - could not create navmap object in '.lc($type).':'.$env{'request.course.id'}); |
|
return; |
|
} |
my $it=$navmap->getIterator(undef,undef,undef,1,undef,undef); |
my $it=$navmap->getIterator(undef,undef,undef,1,undef,undef); |
my $curRes; |
my $curRes; |
my $outcome; |
my $outcome; |
Line 471 function containerCheck(item) {
|
Line 480 function containerCheck(item) {
|
$r->print($display.'</table>'. |
$r->print($display.'</table>'. |
'<p><input type="hidden" name="finishexport" value="1">'. |
'<p><input type="hidden" name="finishexport" value="1">'. |
'<input type="submit" name="exportcourse" value="'. |
'<input type="submit" name="exportcourse" value="'. |
&mt('Export '.$type.' DOCS').'" /></p></form>'. |
&mt('Export '.$type.' DOCS').'" /></p></form>'); |
&Apache::loncommon::end_page()); |
|
} |
} |
} |
} |
|
|
Line 2136 List Symbs
|
Line 2144 List Symbs
|
sub list_symbs { |
sub list_symbs { |
my ($r) = @_; |
my ($r) = @_; |
|
|
|
my $type = &Apache::loncommon::course_type(); |
$r->print(&Apache::loncommon::start_page('Symb List')); |
$r->print(&Apache::loncommon::start_page('Symb List')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Symb List')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Symb List')); |
my $navmap = Apache::lonnavmaps::navmap->new(); |
my $navmap = Apache::lonnavmaps::navmap->new(); |
$r->print("<pre>\n"); |
if (!defined($navmap)) { |
foreach my $res ($navmap->retrieveResources()) { |
$r->print('<h2>'.&mt('Retrieval of List Failed').'</h2>'. |
$r->print($res->compTitle()."\t".$res->symb()."\n"); |
'<div class="LC_error">'. |
|
&mt('Unable to retrieve information about course contents'). |
|
'</div>'); |
|
&Apache::lonnet::logthis('Symb list failed - could not create navmap object in '.lc($type).':'.$env{'request.course.id'}); |
|
} else { |
|
$r->print("<pre>\n"); |
|
foreach my $res ($navmap->retrieveResources()) { |
|
$r->print($res->compTitle()."\t".$res->symb()."\n"); |
|
} |
|
$r->print("\n</pre>\n"); |
} |
} |
$r->print("\n</pre>\n"); |
|
$r->print('<a href="/adm/coursedocs">'.&mt('Return to DOCS').'</a>'); |
$r->print('<a href="/adm/coursedocs">'.&mt('Return to DOCS').'</a>'); |
} |
} |
|
|
|
|
|
|
sub verifycontent { |
sub verifycontent { |
my ($r) = @_; |
my ($r) = @_; |
my $type = &Apache::loncommon::course_type(); |
my $type = &Apache::loncommon::course_type(); |