");
}
my @colcont=split(/\&/,$rows[$i]);
my $avespan=$lcm/($#colcont+1);
for ($j=0;$j<=$#colcont;$j++) {
my $rid=$colcont[$j];
-
my $metainfo =&get_buttons(\%hash,$rid).'
';
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('print(' bgcolor="'.
$ssibgcolor{$rid}.'"');
@@ -547,14 +516,17 @@ sub handler {
}
$r->print('>');
}
- $r->print($ssibody{$rid});
- unless ($target eq 'tex') {
+ unless (($cellexternal{$rid}) &&
+ ($target eq 'tex') && ($target eq 'tex_answer')) {
+ $r->print($ssibody{$rid});
+ }
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('');
}
if ($env{'course.'.
$env{'request.course.id'}.
'.pageseparators'} eq 'yes') {
- unless($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print(' ');
}
}
@@ -565,37 +537,43 @@ sub handler {
$r->print('>'.$metainfo.'');
} elsif (&Apache::lonnet::declutter($hash{'src_'.$rid}) !~/\.(sequence|page)$/) {
- $r->print($metainfo.''.$hash{'title_'.$rid}.' '.
- &mt('It is recommended that you use an up-to-date virus scanner before handling this file.').''.
- &Apache::londocs::entryline(0,&mt("Click to download or use your browser's Save Link function"),'/'.&Apache::lonnet::declutter($hash{'src_'.$rid})).' ');
+ $r->print($metainfo.''.$hash{'title_'.$rid}.' ');
+ unless ($cellemb{$rid} eq 'wrp') {
+ $r->print(&mt('It is recommended that you use an up-to-date virus scanner before handling this file.'));
+ }
+ $r->print(''.
+ &Apache::londocs::entryline(0,
+ &mt("Click to download or use your browser's Save Link function"),
+ '/'.&Apache::lonnet::declutter($hash{'src_'.$rid})).
+ ' ');
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print(' | ');
} else {
- for (my $incol=1;$incol<=$avespan;$incol++) {
- $r->print(' & ');
- }
+# for (my $incol=1;$incol<=$avespan;$incol++) {
+# $r->print(' & ');
+# }
}
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('
');
} else {
- $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
+# $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
}
}
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print("\n