--- loncom/interface/londocs.pm 2012/12/01 15:59:01 1.513 +++ loncom/interface/londocs.pm 2012/12/02 18:54:40 1.517 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.513 2012/12/01 15:59:01 raeburn Exp $ +# $Id: londocs.pm,v 1.517 2012/12/02 18:54:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2142,7 +2142,7 @@ sub entryline { &Apache::lonnet::declutter($currurl)); } } - my %lt; + my ($renamelink,%lt); if ($allowed) { my $incindex=$index+1; my $selectbox=''; @@ -2239,7 +2239,7 @@ sub entryline { $nocopy=1; } } - my ($copylink,$cutlink,$removelink,$renamelink); + my ($copylink,$cutlink,$removelink); my $skip_confirm = 0; if ( $folder =~ /^supplemental/ || ($url =~ m{( /smppg$ @@ -2313,7 +2313,6 @@ END $removelink -$renamelink $cutlink $copylink @@ -2451,7 +2450,7 @@ $form_common.' my $fileloc = &Apache::lonnet::declutter(&Apache::lonnet::filelocation('',$orig_url)); if ($isexternal) { - $editlink = ' '. + $editlink = &Apache::lonextresedit::extedit_form(0,$residx,$orig_url,$title,$pathitem); } elsif (!$isfolder && !$ispage) { my ($cfile,$home,$switchserver,$forceedit,$forceview) = @@ -2466,7 +2465,7 @@ $form_common.' $renametitle); if ($jscall) { $editlink = ' '.&mt('Edit').''; + $jscall.'" >'.&mt('Edit').' '; } } } @@ -2477,7 +2476,7 @@ $form_common.' } else { $reinit = &mt('(re-initialize course to access)'); } - $line.=''; + $line.=''.$editlink.$renamelink; if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) { $line.=''; } elsif ($url) { @@ -2486,7 +2485,7 @@ $form_common.' } else { $line.=''; } - $line.=''; + $line.=''; if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) { $line.=''.$title.''; } elsif ($url) { @@ -2495,7 +2494,7 @@ $form_common.' } else { $line.=$title.' '.$reinit.''; } - $line.=$editlink.""; + $line.=''; $rand_pick_text = ' ' if ($rand_pick_text eq ''); $rand_order_text = ' ' if ($rand_order_text eq ''); if (($allowed) && ($folder!~/^supplemental/)) { @@ -3619,7 +3618,7 @@ CHBO $lt{'imsf'} $help{'Importing_IMS_Course'}
-