--- rat/client/Attic/code.html 2001/05/28 19:22:45 1.31 +++ rat/client/Attic/code.html 2001/05/28 22:23:00 1.32 @@ -79,6 +79,10 @@ var srch; var srchflag=-1; // 1 means currently open // 0 means closed (but has been open) // -1 means never yet opened/defined +var idx; +var idxflag=-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"; @@ -1295,6 +1299,9 @@ function infoclear() { if (srchflag==1) { srchclose(); } + if (idxflag==1) { + idxclose(); + } parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1470,12 +1477,27 @@ function insertcondlink(cid,lnr) { +// ------------------------------------------------------ Clears indexer window + +function idxclear() { + idx.document.clear(); +} + // ------------------------------------------------------- Clears search window function srchclear() { srch.document.clear(); } +// ------------------------------------------------------ Closes indexer window + +function idxclose() { + if (idx && !idx.closed) { + idxflag=0; + idx.close(); + } +} + // ------------------------------------------------------- Closes search window function srchclose() { @@ -1485,6 +1507,15 @@ function srchclose() { } } +// -------------------------------------------------------- Open indexer window + +function idxopen() { + var options="scrollbars=1,resizable=1,menubar=0"; + idxflag=1; + idx=open("/res?catalogmode=interactive","idxout",options); + idx.focus(); +} + // --------------------------------------------------------- Open search window function srchopen() { @@ -1509,6 +1540,15 @@ function srchcheck() { srch.focus(); } +// -------------------------------------------------------- Do idx status check + +function idxcheck() { + if (!idx || idx.closed) { + idxopen(); + } + idx.focus(); +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { @@ -1604,7 +1644,10 @@ function handler(infostr) { +'' +'External:Search' + inf.document.write('>' + +'Browse ' + +'Search' +'' +' @@ -2532,6 +2588,8 @@ function leave() { Revert Undo Redo +Browse +Group Import Store