--- loncom/interface/lonmeta.pm 2004/01/15 20:22:47 1.59 +++ loncom/interface/lonmeta.pm 2004/04/06 15:07:41 1.62 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.59 2004/01/15 20:22:47 www Exp $ +# $Id: lonmeta.pm,v 1.62 2004/04/06 15:07:41 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -302,8 +302,8 @@ sub prettyprint { ($type eq 'sequsage_list')) { return join('
',map { my $url=&Apache::lonnet::clutter($_); - '
'.&Apache::lonnet::gettitle($url).''. - &Apache::lonhtmlcommon::crumbs($url,'preview',''); + ''.&Apache::lonnet::gettitle($url).''. + &Apache::lonhtmlcommon::crumbs($url,'preview','',undef,'+0'); } split(/\s*\,\s*/,$value)); } # Evaluations @@ -561,7 +561,7 @@ ENDHEAD 'goto','goto_list', 'course','course_list') { $r->print(''.$lt{$_}.''. - &prettyprint($dynmeta{$_})."\n"); + &prettyprint($_,$dynmeta{$_})."\n"); } $r->print(''); if ($uri=~/\.(problem|exam|quiz|assess|survey|form)\.meta$/) { @@ -570,14 +570,14 @@ ENDHEAD '

'.&mt('Assessment Statistical Data').'

'); foreach ('stdno','avetries','difficulty') { $r->print('\n"); + &prettyprint($_,$dynmeta{$_})."\n"); } $r->print('
'.$lt{$_}.''. - &prettyprint($dynmeta{$_})."
'); } $r->print('

'.&mt('Evaluation Data').'

'); foreach ('clear','depth','helpful','correct','technical') { $r->print('\n"); + &prettyprint($_,$dynmeta{$_})."\n"); } $r->print('
'.$lt{$_}.''. - &prettyprint($dynmeta{$_})."
'); $uri=~/^\/res\/(\w+)\/(\w+)\//; @@ -711,7 +711,7 @@ ENDEDIT print $mfh ' '.$_.'="'.$value.'"'; } print $mfh '>'. - &HTML::Entities::encode($Apache::lonpublisher::metadatafields{$unikey}) + &HTML::Entities::encode($Apache::lonpublisher::metadatafields{$unikey},'<>&"') .''; } }