--- rat/client/Attic/code.html 2001/03/05 16:01:35 1.16 +++ rat/client/Attic/code.html 2001/05/28 22:23:00 1.32 @@ -11,6 +11,9 @@ Resource Assembly Tool 5/2,5/3,5/4,5/5,5/6,5/8,5/9,5/13,5/18,5/20,5/22,5/24,5/25, 6/7,6/8,6/9,6/10,6/12,6/15,7/4,7/26,7/28,7/31,8/5,8/19,8/24, 01/17/01,03/03,03/05 Gerd Kortemeyer with Scott Harrison +March/April 01 Scott Harrison +04/20 Gerd Kortemeyer +04/30 Scott Harrison --> @@ -72,6 +75,18 @@ var data4=new Array(1024); var data5=new Array(1024); var inf; +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"; +} // ------------------------------------------------ Insert a row into the table @@ -1281,6 +1296,12 @@ function infoclear() { } inf.document.writeln(''); inf.document.close(); + if (srchflag==1) { + srchclose(); + } + if (idxflag==1) { + idxclose(); + } parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1453,6 +1474,81 @@ function insertcondlink(cid,lnr) { joinres(nobj,tobj,0); } + + + +// ------------------------------------------------------ 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() { + if (srch && !srch.closed) { + srchflag=0; + srch.close(); + } +} + +// -------------------------------------------------------- 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() { + var options="scrollbars=1,resizable=1,menubar=0"; + srchflag=1; + srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); + srch.focus(); +} + +// -------------------------------------------- Interface function to searching + +function search() { + alert("Searching not yet implemented"); +} + +// ------------------------------------------------------- Do srch status check + +function srchcheck() { + if (!srch || srch.closed) { + srchopen(); + } + srch.focus(); +} + +// -------------------------------------------------------- Do idx status check + +function idxcheck() { + if (!idx || idx.closed) { + idxopen(); + } + idx.focus(); +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { @@ -1540,16 +1636,19 @@ function handler(infostr) { } } inf.document.write( - '
Title:' + ''); if ((data2[3]!='start') && (data2[3]!='finish')) { - inf.document.write('' +'' - +'' + +''); } inf.document.writeln( - '
Title:' +'
URL:' + inf.document.write('
URL:' +'
External:
' + inf.document.write('>' + +'Browse ' + +'Search
' +'
@@ -2472,6 +2588,8 @@ function leave() { Revert Undo Redo +Browse +Group Import Store