[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 25 Mar 2002 20:06:08 -0000


matthew		Mon Mar 25 15:06:08 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Update of openbrowser to use 'only' and 'omit' with lonindexer.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.161 loncom/xml/lonxml.pm:1.162
--- loncom/xml/lonxml.pm:1.161	Fri Mar 22 12:52:20 2002
+++ loncom/xml/lonxml.pm	Mon Mar 25 15:06:08 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.161 2002/03/22 17:52:20 albertel Exp $
+# $Id: lonxml.pm,v 1.162 2002/03/25 20:06:08 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -443,7 +443,7 @@
         $result .=<<"ENDBROWSERSCRIPT";
 <script>
     var editbrowser;
-    function openbrowser(formname,elementname) {
+    function openbrowser(formname,elementname,only,omit) {
         var url = '/res/?';
         if (editbrowser == null) {
             url += 'launch=1&';
@@ -451,6 +451,12 @@
         url += 'catalogmode=interactive&';
         url += 'mode=edit&';
         url += 'form=' + formname + '&';
+        if (only != null) {
+            url += 'only=' + only + '&';
+        } 
+        if (omit != null) {
+            url += 'omit=' + omit + '&';
+        }
         url += 'element=' + elementname + '';
         var title = 'Browser';
         var options = 'scrollbars=1,resizable=1,menubar=0';