[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 25 Mar 2002 19:33:36 -0000


matthew		Mon Mar 25 14:33:36 2002 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  Now use the new 'only' feature of lonindexer.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.46 loncom/interface/lonparmset.pm:1.47
--- loncom/interface/lonparmset.pm:1.46	Tue Mar 19 14:55:52 2002
+++ loncom/interface/lonparmset.pm	Mon Mar 25 14:33:35 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.46 2002/03/19 19:55:52 matthew Exp $
+# $Id: lonparmset.pm,v 1.47 2002/03/25 19:33:35 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -730,9 +730,9 @@
     my $output='';
     if (! exists($values{'con_lost'})) {
         my %descriptions=
-	    ('url'            => '<b>Top Level Map</b>'.
+	    ('url'            => '<b>Top Level Map</b> '.
                                  '<a href="javascript:openbrowser'.
-                                 "('envform','url')\">".
+                                 "('envform','url','sequence')\">".
                                  'Browse</a><br><font color=red> '.
                                  'Modification may make assessment data '.
                                  'inaccessible</font>',
@@ -774,7 +774,7 @@
 <html>
 <script type="text/javascript" language="Javascript" >
     var editbrowser;
-    function openbrowser(formname,elementname) {
+    function openbrowser(formname,elementname,only,omit) {
         var url = '/res/?';
         if (editbrowser == null) {
             url += 'launch=1&';
@@ -782,6 +782,12 @@
         url += 'catalogmode=interactive&';
         url += 'mode=parmset&';
         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';