--- rat/client/Attic/code.html 2002/03/01 14:58:27 1.49 +++ rat/client/Attic/code.html 2002/05/24 18:08:39 1.57 @@ -4,7 +4,7 @@ The LearningOnline Network Resource Assembly Tool // -// $Id: code.html,v 1.49 2002/03/01 14:58:27 matthew Exp $ +// $Id: code.html,v 1.57 2002/05/24 18:08:39 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -118,12 +118,19 @@ var idxflag=-1; // 1 means currently ope // -1 means never yet opened/defined var idxmode=''; +var copydx; +var copydxflag=-1; // 1 means currently open + // 0 means closed (but has been open) + // -1 means never yet opened/defined +var copydxmode=''; + var parm; var parmflag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined var iconpath='/adm/lonIcons/'; +var raticons='/adm/rat/'; function testfunction() { inf.document.forms.resinfo.elements.t.value="ABC"; @@ -970,25 +977,25 @@ function drawcell (rtype,ctype,what,cm,o } parent.mapout.document.write (''); + +' src="'+raticons+'resource.gif">'); if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); } else { if (what=='c:') { parent.mapout.document.write (''); + +' src="'+raticons+'condition.gif">'); } else { if (what=='rs:') { mime=''; @@ -1003,20 +1010,20 @@ function drawcell (rtype,ctype,what,cm,o } parent.mapout.document.write (''); + +' src="'+raticons+'start.gif">'); if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); } else { if (what=='rf:') { @@ -1032,24 +1039,24 @@ function drawcell (rtype,ctype,what,cm,o } parent.mapout.document.write (''); + +' src="'+raticons+'finish.gif">'); if ((mime!='') && (ext!='true')) { parent.mapout.document.write - ('
'+ - ''); + ''); } else { parent.mapout.document.write - ('
'); + ('
'); } parent.mapout.document.write - ('
'); + ('
'); } else { parent.mapout.document.write (''); + +' src="'+raticons+rtype+'.'+ctype+'.'+what+'.gif">'); } } } @@ -1070,7 +1077,7 @@ function drawcell (rtype,ctype,what,cm,o parent.mapout.document.write ( '
'); + +' src="'+raticons+rtype+'.'+ctype+'.empty.gif">'); } parent.mapout.document.write(''); } @@ -1421,7 +1428,7 @@ function info(infostr) { inf.document.clear(); inf.document.writeln( ''+ - '
'); + '
'); data1=infostr.split('&'); if (data1[0]=='c') { inf.document.write('Condition ('); @@ -1509,14 +1516,13 @@ function escape(instring) { for (k=0;k

Group Copy from Map

'+ + '
'+ + '
'); + + copydx.document.writeln(''); + copydx.focus(); +} // --------------------------------------------------------- Open search window function srchopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; srchmode=mode; srchflag=1; - srch=open("/adm/searchcat?launch=1&catalogmode="+mode,"srchout",options); + srch=open("/adm/searchcat?launch=1&mode=rat&catalogmode="+mode,"srchout",options); srch.focus(); } @@ -1649,6 +1709,14 @@ function idxcheck(mode) { idx.focus(); } +// -------------------------------------------------------- Do idx status check +function copydxcheck(mode) { + if (!copydx || copydx.closed || copydxmode!=mode) { + copydxopen(mode); + } + copydx.focus(); +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { var k; @@ -1658,7 +1726,7 @@ function handler(infostr) { inf.document.clear(); inf.document.writeln( ''+ - '
'); + '
'); data1=infostr.split('&'); if (data1[0]=='c') { inf.document.writeln('Condition
'); @@ -1830,7 +1898,7 @@ function empty(rid,k) { inf.document.clear(); inf.document.writeln( ''+ - '
'+ + ' - + + +
'+ 'Empty Field
'); inf.document.writeln('
Redo 
Group search  Group import Save map Group copy Save map Save map and layout