--- rat/client/Attic/code.html 2001/05/28 22:23:00 1.32 +++ rat/client/Attic/code.html 2001/06/25 21:43:49 1.36 @@ -14,6 +14,8 @@ Resource Assembly Tool March/April 01 Scott Harrison 04/20 Gerd Kortemeyer 04/30 Scott Harrison +05/31 Scott Harrison +06/11,06/25 Gerd Kortemeyer --> @@ -79,10 +81,18 @@ var srch; var srchflag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined +var srchmode=''; + var idx; var idxflag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined +var idxmode=''; + +var parm; +var parmflag=-1; // 1 means currently open + // 0 means closed (but has been open) + // -1 means never yet opened/defined function testfunction() { inf.document.forms.resinfo.elements.t.value="ABC"; @@ -1302,6 +1312,9 @@ function infoclear() { if (idxflag==1) { idxclose(); } + if (parmflag==1) { + parmclose(); + } parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1489,6 +1502,12 @@ function srchclear() { srch.document.clear(); } +// --------------------------------------------------------- Clears parm window + +function parmclear() { + parm.document.clear(); +} + // ------------------------------------------------------ Closes indexer window function idxclose() { @@ -1507,19 +1526,30 @@ function srchclose() { } } +// ------------------------------------------------------- Closes search window + +function parmclose() { + if (parm && !parm.closed) { + parmflag=0; + parm.close(); + } +} + // -------------------------------------------------------- Open indexer window -function idxopen() { +function idxopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; + idxmode=mode; idxflag=1; - idx=open("/res?catalogmode=interactive","idxout",options); + idx=open("/res?catalogmode="+mode,"idxout",options); idx.focus(); } // --------------------------------------------------------- Open search window -function srchopen() { +function srchopen(mode) { var options="scrollbars=1,resizable=1,menubar=0"; + srchmode=mode; srchflag=1; srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); srch.focus(); @@ -1533,8 +1563,8 @@ function search() { // ------------------------------------------------------- Do srch status check -function srchcheck() { - if (!srch || srch.closed) { +function srchcheck(mode) { + if (!srch || srch.closed || srchmode!=mode) { srchopen(); } srch.focus(); @@ -1542,9 +1572,9 @@ function srchcheck() { // -------------------------------------------------------- Do idx status check -function idxcheck() { - if (!idx || idx.closed) { - idxopen(); +function idxcheck(mode) { + if (!idx || idx.closed || idxmode!=mode) { + idxopen(mode); } idx.focus(); } @@ -1645,9 +1675,9 @@ function handler(infostr) { +'