--- rat/lonratedt.pm 2006/05/30 17:15:10 1.78 +++ rat/lonratedt.pm 2006/07/20 04:17:45 1.82 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Edit Handler for RAT Maps # -# $Id: lonratedt.pm,v 1.78 2006/05/30 17:15:10 www Exp $ +# $Id: lonratedt.pm,v 1.82 2006/07/20 04:17:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -691,7 +691,7 @@ function srchclose() { // -------------------------------------------------------- Open indexer window function idxopen(mode) { - var options="scrollbars=1,resizable=1,menubar=0"; + var options="scrollbars=1,resizable=1,menubar=0,location=1,toolbar=1"; idxmode=mode; idxflag=1; idx=open("$resurl/?launch=1&mode=$mode&catalogmode="+mode,"idxout",options); @@ -699,10 +699,10 @@ function idxopen(mode) { } // ------------------------------------------------------ Open groupsort window -function groupopen(url,recover) { +function groupopen(url,recover,bookmarks) { var options="scrollbars=1,resizable=1,menubar=0"; idxflag=1; - idx=open("/adm/groupsort?mode=$mode&recover="+recover+"&readfile="+url,"idxout",options); + idx=open("/adm/groupsort?mode=$mode&recover="+recover+"&readfile="+url+"&bookmarks="+bookmarks,"idxout",options); idx.focus(); } @@ -716,11 +716,11 @@ function srchopen(mode) { } // ----------------------------------------------------- launch indexer browser function groupsearch() { - srchcheck('groupsearch'); + srchcheck('import'); } function groupimport() { - idxcheck('groupimport'); + idxcheck('import'); } // ------------------------------------------------------- Do srch status check @@ -757,7 +757,7 @@ function idxcheck(mode) { } url += 'element=' + elementname + ''; var title = 'Browser'; - var options = 'scrollbars=1,resizable=1,menubar=0'; + var options = 'scrollbars=1,resizable=1,menubar=0,toolbar=1,location=1'; options += ',width=700,height=600'; editbrowser = open(url,title,options,'1'); editbrowser.focus(); @@ -1037,6 +1037,7 @@ sub smpedt { 'nt' => 'New Title', 'se' => 'Search', 'im' => 'Import', + 'bk' => 'Import Bookmarks', 'vi' => 'View', 'lm' => 'Load Map', 'ds' => 'Discard Selected', @@ -1100,10 +1101,9 @@ sub smpedt { ENDJS my $start_page = &Apache::loncommon::start_page(undef,$js). - &Apache::loncommon::help_open_menu('', - 'Sequence_Simple_Editor_Creation', + &Apache::loncommon::help_open_menu('Sequence_Simple_Editor_Creation', 'Sequence_Simple_Editor_Creation', - '',6,'RAT'); + 6,'RAT'); my $end_page = &Apache::loncommon::end_page(); $r->print(< +"javascript:impfortarget.value=1;groupopen(0,1,1);" value="$lt{'bk'}"> + $lt{'as'}
@@ -1195,7 +1197,7 @@ sub viewmap { my ($r,$url,$adv,$errtext)=@_; $r->print( &Apache::loncommon::start_page('Edit Content of a Map'). - &Apache::loncommon::help_open_menu('','','','',6,'RAT'). + &Apache::loncommon::help_open_menu('','',6,'RAT'). &buttons($adv)); if ($errtext) { $r->print($errtext.'
');