--- loncom/publisher/lonpubdir.pm 2006/12/06 22:22:39 1.98 +++ loncom/publisher/lonpubdir.pm 2007/11/02 19:24:44 1.105 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.98 2006/12/06 22:22:39 albertel Exp $ +# $Id: lonpubdir.pm,v 1.105 2007/11/02 19:24:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -211,16 +211,18 @@ sub startpage { {'body_title' => $pagetitle,})); } else { - $r->print(&Apache::loncommon::start_page('Construction Space',undef)); + $r->print(&Apache::loncommon::start_page('Construction Space',undef, + { 'only_body' => 1,})); $r->print($pagetitle); } + my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); my $pubdirscript=(< -top.document.title = '$thisdisfn/ - LON-CAPA Construction Space'; +top.document.title = '$esc_thisdisfn/ - LON-CAPA Construction Space'; // Store directory location for menu bar to find -parent.lastknownpriv='/~$uname$thisdisfn/'; +parent.lastknownpriv='/~$uname$esc_thisdisfn/'; // Confirmation dialogues @@ -354,16 +356,18 @@ sub dircontrols { ncrf => 'New custom rights file', nsty => 'New style file', nlib => 'New library file', + nbt => 'New bridgetask file', nsub => 'New subdirectory', renm => 'Rename current file to', move => 'Move current file to', copy => 'Copy current file to', type => 'Type Name Here', - go => 'Go', + go => 'Go', prnt => 'Print contents of directory', crea => 'Create a new directory or LON-CAPA document', acti => 'Actions for current directory', - updc => 'Upload a new document' + updc => 'Upload a new document', + pick => 'Please select an action to perform using the new filename', ); $r->print(< @@ -403,18 +407,29 @@ sub dircontrols {
-    + +   
@@ -609,7 +624,6 @@ sub putresource { $title = ''. &getTitleString($targetdir.'/'.$filename).''; - &Apache::lonnet::logthis("same $same meta $meta_same"); if ($same) { if (&Apache::lonnet::metadata($targetdir.'/'.$filename,'obsolete')) { $pubstatus = 'obsolete'; @@ -675,7 +689,7 @@ sub putresource { ''.($filename=~/[\#\~]$/?' ': '').''. ''.$pub_select.''. - ' '. + ''. ''. $filename.''.$editlink2.$editlink. ''. @@ -716,7 +730,7 @@ sub create_pubselect { '; + &HTML::Entities::encode($filename).'" />'; $$numres ++; }