--- loncom/interface/londocs.pm 2025/01/07 21:01:37 1.722 +++ loncom/interface/londocs.pm 2025/02/03 22:52:36 1.723 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.722 2025/01/07 21:01:37 raeburn Exp $ +# $Id: londocs.pm,v 1.723 2025/02/03 22:52:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2526,6 +2526,15 @@ sub print_paste_buffer { &LONCAPA::map::qtescape($env{'docs.markedcopy_title_'.$suffix}); } else { my $icon = &Apache::loncommon::icon($extension); + my $icontext; + if ($extension eq 'sequence') { + $icontext = &mt('folder icon'); + } elsif ($extension eq 'page') { + $icontext = &mt('composite page icon'); + } else { + $icontext = &mt('file icon'); + } + $icontext = &HTML::Entities::encode($icontext); if ($extension eq 'sequence' && $url =~ m{/default_\d+\.sequence$}x) { $icon = &Apache::loncommon::lonhttpdurl($r->dir_config('lonIconsURL')); @@ -2535,7 +2544,7 @@ sub print_paste_buffer { if ($title eq '') { ($title) = ($url =~ m{/([^/]+)$}); } - $buffer = ''. + $buffer = ''.$icontext.''. ': '. &Apache::loncommon::parse_supplemental_title( &LONCAPA::map::qtescape($title)); @@ -4971,16 +4980,18 @@ sub editor { if (!$allowed) { $helpitem = 'Supplemental_Navigation'; } - $toolslink = '' - .'
' + $toolslink = '
' + .'
' .&Apache::loncommon::help_open_menu('Navigation Screen', $helpitem,undef,'RAT') - .'
'.&mt('Tools:').'
    ' + .'
    '.&mt('Tools:').'
    ' + .'
    '."\n".'

'; + .''."\n" + .'

'."\n"; } if ($shown) { if ($allowed) { @@ -5483,7 +5494,7 @@ ENDCOPY $copylink=(< $form_common -$lt{'cp'} + $form_end ENDCOPY if (($ishash) && (ref($filtersref->{'cancopy'}) eq 'ARRAY')) { @@ -5501,7 +5512,7 @@ ENDCUT
$form_common -$lt{'ct'} + $form_end ENDCUT if (($ishash) && (ref($filtersref->{'cancut'}) eq 'ARRAY')) { @@ -5520,7 +5531,7 @@ ENDREM $form_common -$lt{'rm'} + $form_end ENDREM if (($ishash) && (ref($filtersref->{'canremove'}) eq 'ARRAY')) { @@ -5565,8 +5576,17 @@ $copylink END } + my $icontext; # Figure out what kind of a resource this is my ($extension)=($url=~/\.(\w+)$/); + if ($extension eq 'sequence') { + $icontext = &mt('folder icon'); + } elsif ($extension eq 'page') { + $icontext = &mt('composite page icon'); + } else { + $icontext = &mt('file icon'); + } + $icontext = &HTML::Entities::encode($icontext); my $uploaded=($url=~/^\/*uploaded\//); my $icon=&Apache::loncommon::icon($url); my $isfolder; @@ -5908,9 +5928,9 @@ $form_end; } } if ($nolink) { - $line .= ''; + $line .= ''.$icontext.''; } else { - $line.=''; + $line.=''.$icontext.''; } } elsif ($url) { if ($anchor ne '') { @@ -5940,16 +5960,16 @@ $form_end; } } if ($nolink) { - $line.=''; + $line.=''.$icontext.''; } elsif ($nomodal) { $line.=''. - ''; + ''.$icontext.''; } else { $line.=&Apache::loncommon::modal_link($link, - '',600,500); + ''.$icontext.'',600,500); } } else { - $line.=''; + $line.=''.$icontext.''; } $line.=''; if (($url=~m{/adm/(coursedocs|supplemental)}) || (!$allowed && $url)) { @@ -7591,10 +7611,6 @@ sub handler { my $quotainfo = '

'.&mt('Currently using [_1] of the [_2] available.', $percent.'%',$quota.' MB').'

'; - my $fileupload=(< -FIUP my $checkbox=(<$lt{'parse'}? @@ -7613,8 +7629,9 @@ CHBO