--- loncom/xml/lonxml.pm 2002/06/15 18:59:26 1.178
+++ loncom/xml/lonxml.pm 2002/07/01 15:29:23 1.179
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.178 2002/06/15 18:59:26 www Exp $
+# $Id: lonxml.pm,v 1.179 2002/07/01 15:29:23 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -331,10 +331,15 @@ sub registerurl {
my $forcereg=shift;
my $target = shift;
my $result = '';
+ if ($target eq 'edit') {
+ $result .="\n";
+ }
if ((($ENV{'request.publicaccess'}) ||
(!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) &&
(!$forcereg)) {
- return
+ return $result.
'';
}
if ($Apache::lonxml::registered && !$forcereg) { return ''; }
@@ -446,61 +451,6 @@ ENDREGTHIS
ENDDONOTREGTHIS
}
- if ($target eq 'edit') {
- # Javascript routines for construction space:
- # openbrowser and opensearcher will start the file browser
- # (lonindexer) and searcher (lonsearchcat) respectively.
- # Inputs are the name of the html form being used
- # and the name of the element the selected URL should
- # be placed in.
- # openbrowser also takes arguments only and omit, which are
- # comma deliminated lists of file extensions to (only) show
- # or omit.
- # Here we also set currentURL=null.
- $result .=<<"ENDBROWSERSCRIPT";
-
-ENDBROWSERSCRIPT
- }
return $result;
}