--- loncom/publisher/lonpubdir.pm 2003/06/15 18:02:57 1.32 +++ loncom/publisher/lonpubdir.pm 2003/07/05 10:07:12 1.35 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.32 2003/06/15 18:02:57 www Exp $ +# $Id: lonpubdir.pm,v 1.35 2003/07/05 10:07:12 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -209,13 +209,13 @@ ENDPUBDIRSCRIPT $thisdisfn.'/ - LON-CAPA Construction Space\';'. $pubdirscript. '
'. - ''. ''. ''. - ''. + ''. '
'); + $uname.$thisdisfn."/default.meta'".'" value="Edit Directory Catalog Information" /> Force publication of unmodified files. '); if (($uname ne $ENV{'user.name'}) || ($udom ne $ENV{'user.domain'})) { $r->print('

Co-Author: '.$uname.' at '.$udom. @@ -310,13 +310,20 @@ sub putresource { $status.='
Retrieve'; } + my $editlink=''; + if ($filename=~/\.(xml|html|htm|xhtml|xhtm)$/) { + $editlink=' (Edit)'; + } + if ($filename=~/\.(problem|exam|quiz|assess|survey|form|library)$/) { + $editlink=' (EditXML)'; + } $r->print(''. ''.'Publish'. ''. ''. ''. - $filename.''. + $filename.''.$editlink. ''. ''.$title.''. ''.$status.''.