--- loncom/publisher/lonpubdir.pm 2005/05/29 01:46:16 1.83
+++ loncom/publisher/lonpubdir.pm 2005/07/14 21:31:34 1.88
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.83 2005/05/29 01:46:16 www Exp $
+# $Id: lonpubdir.pm,v 1.88 2005/07/14 21:31:34 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -111,7 +111,7 @@ sub handler {
'
- Actions for current directory |
- Upload a new document |
- Create a new directory or LON-CAPA document |
+ $lt{'acti'} |
+ $lt{'updc'} |
+ $lt{'crea'} |
@@ -349,23 +392,24 @@ sub dircontrols {
|
@@ -381,7 +425,7 @@ sub pubbuttons {
'');
}
@@ -480,15 +524,15 @@ sub putdirectory {
$actionitem =
'';
@@ -496,9 +540,9 @@ sub putdirectory {
}
$r->print(' |
'.
' | '.
+ $Apache::lonnet::perlvar{'lonIconsURL'}.'/folder_closed.gif" alt="folder" />'.
''.$actionitem.' | '.
- ''.
+ ' | '.
$disfilename.' | '.
''.($kaputt?&Apache::lonhtmlcommon::authorbombs($resdir.'/'.$disfilename.'/'):'').$Apache::lonpublisher::metadatafields{'title'}.' '.
$Apache::lonpublisher::metadatafields{'subject'}.' '.
@@ -564,7 +608,7 @@ sub putresource {
}
}
$title.="\n".' '.
- ($$bombs{$targetdir.'/'.$filename}?'':'Edit Metadata').'';
+ ($$bombs{$targetdir.'/'.$filename}?'':'Edit Metadata').'';
$status.="\n".' '.&mt('Retrieve').'';
}
@@ -589,7 +633,7 @@ sub putresource {
&create_pubselect($r,\$pub_select,$udom,$uname,$thisdisfn,$filename,$resdir,$pubstatus,$publish_button,$numres);
$r->print(' |
'.
''.($filename=~/[\#\~]$/?' ':
- ' | ').
+ '').''.
''.$pub_select.' | '.
''.
''.
@@ -606,7 +650,7 @@ sub create_pubselect {
my ($r,$pub_select,$udom,$uname,$thisdisfn,$filename,$resdir,$pubstatus,$publish_button,$numres) = @_;
$$pub_select = '
';
+ &HTML::Entities::encode($uname.$thisdisfn.'/'.$filename,'<>&"').'" />';
$$numres ++;
}
|