--- loncom/interface/londocs.pm 2009/09/24 22:15:27 1.325.4.2
+++ loncom/interface/londocs.pm 2009/01/30 10:02:46 1.331
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.325.4.2 2009/09/24 22:15:27 raeburn Exp $
+# $Id: londocs.pm,v 1.331 2009/01/30 10:02:46 muellerd Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -44,7 +44,6 @@ use HTML::Entities;
use GDBM_File;
use Apache::lonlocal;
use Cwd;
-use Apache::londocsgci();
use LONCAPA qw(:DEFAULT :match);
my $iconpath;
@@ -60,7 +59,6 @@ my $hadchanges;
my %help=();
-
sub mapread {
my ($coursenum,$coursedom,$map)=@_;
return
@@ -121,11 +119,9 @@ sub dumpbutton {
my $type = &Apache::loncommon::course_type();
if ($home+$other==0) { return ''; }
if ($home) {
- return '
'.
- ''.
- &Apache::loncommon::help_open_topic('Docs_Dump_Course_Docs').
- '
';
+ &Apache::loncommon::help_open_topic('Docs_Dump_Course_Docs');
} else {
return ''.
&mt('Dump '.$type.
@@ -266,10 +262,9 @@ sub dumpcourse {
sub exportbutton {
my $type = &Apache::loncommon::course_type();
- return '
'.
- ''.
- &Apache::loncommon::help_open_topic('Docs_Export_Course_Docs').'
';
+ &Apache::loncommon::help_open_topic('Docs_Export_Course_Docs');
}
@@ -402,10 +397,10 @@ sub exportcourse {
$display .= '
![](/adm/lonIcons/whitespace1.gif)
![](/adm/lonIcons/whitespace1.gif)
'."\n";
}
if ($curRes->is_sequence()) {
- $display .= '
![](/adm/lonIcons/navmap.folder.open.gif)
'."\n";
+ $display .= '
![](/adm/lonIcons/navmap.folder.open.gif)
'."\n";
$lastcontainer = $count + $startcount + $boards;
} elsif ($curRes->is_page()) {
- $display .= '
![](/adm/lonIcons/navmap.page.open.gif)
'."\n";
+ $display .= '
![](/adm/lonIcons/navmap.page.open.gif)
'."\n";
$lastcontainer = $count + $startcount + $boards;
}
my $currelem = $count+$boards+$startcount;
@@ -479,7 +474,7 @@ function containerCheck(item) {
$scripttag));
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Export '.lc($type).' to IMS content package'));
$r->print($display.''.
- '
'.
+ '
'.
'
');
}
@@ -1228,7 +1223,7 @@ sub update_paste_buffer {
&Apache::lonnet::appenv({'docs.markedcopy_supplemental' => $title});
($title) = &parse_supplemental_title($title);
} elsif ($env{'docs.markedcopy_supplemental'}) {
- &Apache::lonnet::delenv('docs.markedcopy_supplemental');
+ &Apache::lonnet::delenv('docs\\.markedcopy_supplemental');
}
$url=~s{http(:|:)//https(:|:)//}{https$2//};
@@ -1332,7 +1327,7 @@ sub do_paste_from_buffer {
}
# published maps can only exists once, so remove it from paste buffer when done
if (($url=~/\.(page|sequence)$/) && ($url=~m {^/res/})) {
- &Apache::lonnet::delenv('docs.markedcopy');
+ &Apache::lonnet::delenv('docs\\.markedcopy');
}
if ($url=~ m{/smppg$}) {
my $db_name = &Apache::lonsimplepage::get_db_name($url);
@@ -1780,7 +1775,7 @@ sub entryline {
'