version 1.510, 2012/11/27 23:34:41
|
version 1.513, 2012/12/01 15:59:01
|
Line 2434 $form_common.'
|
Line 2434 $form_common.'
|
if ($title) { |
if ($title) { |
$url .= '&title='.&HTML::Entities::encode($renametitle,'<>&"'); |
$url .= '&title='.&HTML::Entities::encode($renametitle,'<>&"'); |
} |
} |
if ($orderidx) { |
if ($isexternal && $orderidx) { |
$url .= '&idx='.$orderidx; |
$url .= '&idx='.$orderidx; |
} |
} |
} |
} |
Line 2451 $form_common.'
|
Line 2451 $form_common.'
|
my $fileloc = |
my $fileloc = |
&Apache::lonnet::declutter(&Apache::lonnet::filelocation('',$orig_url)); |
&Apache::lonnet::declutter(&Apache::lonnet::filelocation('',$orig_url)); |
if ($isexternal) { |
if ($isexternal) { |
$editlink = |
$editlink = ' '. |
&Apache::lonextresedit::extedit_form(0,$residx,$orig_url,$title,$pathitem); |
&Apache::lonextresedit::extedit_form(0,$residx,$orig_url,$title,$pathitem); |
} else { |
} elsif (!$isfolder && !$ispage) { |
my ($cfile,$home,$switchserver,$forceedit,$forceview) = |
my ($cfile,$home,$switchserver,$forceedit,$forceview) = |
&Apache::lonnet::can_edit_resource($fileloc,$coursenum,$coursedom,$orig_url); |
&Apache::lonnet::can_edit_resource($fileloc,$coursenum,$coursedom,$orig_url); |
my $geteditlink; |
if (($cfile ne '') && ($symb ne '' || $supplementalflag)) { |
if ($supplementalflag) { |
|
if ($orig_url eq "/adm/$env{'user.domain'}/$env{'user.name'}/aboutme") { |
|
$geteditlink = 1; |
|
} |
|
} elsif (($cfile ne '') && ($symb ne '')) { |
|
$geteditlink = 1; |
|
} |
|
if ($geteditlink) { |
|
my $jscall = |
my $jscall = |
&Apache::lonhtmlcommon::jump_to_editres($cfile,$home, |
&Apache::lonhtmlcommon::jump_to_editres($cfile,$home, |
$switchserver, |
$switchserver, |
$forceedit, |
$forceedit, |
undef,$symb); |
undef,$symb, |
|
&escape($env{'form.folderpath'}), |
|
$renametitle); |
if ($jscall) { |
if ($jscall) { |
$editlink = ' <a class="LC_docs_ext_edit" href="javascript:'. |
$editlink = ' <a class="LC_docs_ext_edit" href="javascript:'. |
$jscall.'" >'.&mt('Edit').'</a>'; |
$jscall.'" >'.&mt('Edit').'</a>'; |
Line 3298 sub handler {
|
Line 3292 sub handler {
|
if ($mapurl eq 'default') { |
if ($mapurl eq 'default') { |
$maptitle = 'Main Course Documents'; |
$maptitle = 'Main Course Documents'; |
} |
} |
$path .= ($path ne '')? '&' : ''. |
$path .= (($path ne '')? '&' : ''). |
&Apache::lonhtmlcommon::entity_encode($mapurl).'&'. |
&Apache::lonhtmlcommon::entity_encode($mapurl).'&'. |
&Apache::lonhtmlcommon::entity_encode($maptitle). |
&Apache::lonhtmlcommon::entity_encode($maptitle). |
':'.$mapresobj->randompick(). |
':'.$mapresobj->randompick(). |
Line 3602 sub handler {
|
Line 3596 sub handler {
|
'prev' => 'Preview', |
'prev' => 'Preview', |
'lnk' => 'Add Link', |
'lnk' => 'Add Link', |
'parse' => 'Upload embedded images/multimedia files if HTML file', |
'parse' => 'Upload embedded images/multimedia files if HTML file', |
'nd' => 'Upload Document', |
|
'pm' => 'Published Map', |
|
'sd' => 'Special Document', |
|
'mo' => 'More Options', |
|
); |
); |
# ----------------------------------------------------------------------------- |
# ----------------------------------------------------------------------------- |
my $fileupload=(<<FIUP); |
my $fileupload=(<<FIUP); |