");
if ($env{'form.catalogmode'} eq 'interactive') {
my $quotable_filelink = &Apache::loncommon::escape_single($filelink);
$r->print("");
- $r->print("".
+ $r->print("".
"\n");
- $r->print(" | ");
+ $r->print(" | ");
} elsif ($env{'form.catalogmode'} eq 'import') {
- $r->print(" | ");
+ $r->print(" | ");
$hash{"pre_${fnum}_link"}=$filelink;
$fnum++;
}
# Form to open or close sequences
if ($filelink=~/\.(page|sequence)$/) {
my $curdir = $startdir.$filecom[0].'/';
- my $anchor = $curdir;
- $anchor =~ s/\///g;
&begin_form($r,$curdir);
$indent--;
}
# General indentation
if ($indent > 0 and $indent < 11) {
- $r->print("\n");
+ $r->print("\n");
} elsif ($indent >0) {
my $ten = int($indent/10.);
my $rem = $indent%10.0;
my $count = 0;
while ($count < $ten) {
- $r->print("\n");
+ $r->print("\n");
$count++;
}
- $r->print("\n") if $rem > 0;
+ $r->print("\n") if $rem > 0;
}
# Sequence open/close icon
if ($filelink=~/\.(page|sequence)$/) {
my $curdir = $startdir.$filecom[0].'/';
my $anchor = $curdir;
- $anchor =~ s/\///g;
+ $anchor =~ s/\W//g;
$r->print ('');
- $r->print ('print (' name="'.$msg.'" height="22" type="image" border="0" />'.
+ $r->print (' name="'.$msg.'" type="image" class="LC_indexer_icon" />'.
"\n");
}
# Filetype icons
- $r->print("\n");
+ $r->print("\n");
my $quotable_filelink = &Apache::loncommon::escape_single($filelink);
$r->print (" $listname ");
+ "','previewfile','450','500','no','yes','yes');\"".
+ " target=\"_self\">$listname ");
$r->print (" (metadata) ");
+ ".meta','metadatafile','500','550','no','yes','no');\" ".
+ " target=\"_self\">metadata) ");
# Close form to open/close sequence
if ($filelink=~/\.(page|sequence)$/) {
$r->print('');
@@ -1037,8 +1062,8 @@ sub display_line {
my $quotable_sourcelink = &Apache::loncommon::escape_single($sourcelink);
$r->print(' | '."Yes "." | \n");
+ "', 'previewsource', '700', '700', 'no', 'yes','yes');\"".
+ " target=\"_self\">Yes "."\n");
} else { #A cuddled else. :P
$r->print(" | \n");
}
@@ -1068,36 +1093,37 @@ sub display_line {
if ($fnptr == $dirptr) {
my $curdir = $startdir.$filecom[0].'/';
my $anchor = $curdir;
- $anchor =~ s/\///g;
- $r->print("