--- loncom/interface/lonhelper.pm 2003/05/16 17:20:51 1.31 +++ loncom/interface/lonhelper.pm 2003/05/21 13:41:00 1.33 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.31 2003/05/16 17:20:51 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.33 2003/05/21 13:41:00 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1922,6 +1922,8 @@ no strict; @ISA = ("Apache::lonhelper::element"); use strict; +use Apache::lonpubdir; # for getTitleString + BEGIN { &Apache::lonhelper::register('Apache::lonhelper::files', ('files', 'filechoice', 'filefilter')); @@ -2078,6 +2080,9 @@ BUTTONS $color = ''; } + # Get the title + my $title = Apache::lonpubdir::getTitleString($fileName); + # Netscape 4 is stupid and there's nowhere to put the # information on the input tag that the file is Published, # Unpublished, etc. In *real* browsers we can just say @@ -2104,8 +2109,9 @@ BUTTONS if (!$self->{'multichoice'} && $choices == 0) { $result .= ' checked'; } - $result .= "/>" . $file . - "$status\n"; + $result .= "/>" . $file . "" . + "$title" . + "$status" . "\n"; $choices++; } }