--- rat/client/Attic/code.html 2001/03/12 15:47:46 1.18 +++ rat/client/Attic/code.html 2001/03/15 14:48:44 1.23 @@ -74,6 +74,10 @@ var data5=new Array(1024); var inf; var srch; +function testfunction() { + inf.document.forms.resinfo.elements.t.value="ABC"; +} + // ------------------------------------------------ Insert a row into the table function insertrow(j,ex1,ex2) { @@ -1282,6 +1286,8 @@ function infoclear() { } inf.document.writeln(''); inf.document.close(); + srchclose(); + parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1466,51 +1472,17 @@ function srchclear() { // ------------------------------------------------------- Closes search window function srchclose() { - srch.close(); + if (!srch.closed) { + srch.close(); + } } // --------------------------------------------------------- Open search window function srchopen() { var options="scrollbars=1,resizable=1,menubar=0"; - srch=open("/adm/searchcat","srchout",options); - return; - srchclear(); - srch.document.writeln( - '
'+ - ''+ - ''+ - ''+ - '
Resource Library Search
'+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - '
title
author
subject
notes
abstract
mime
language
creationdate
lastrevisiondate
owner
copyright
'+ - ''+ - '
'); + srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); + srch.focus(); } // -------------------------------------------- Interface function to searching @@ -1522,9 +1494,10 @@ function search() { // ------------------------------------------------------- Do srch status check function srchcheck() { - if (srch.closed) { + if (!srch || srch.closed) { srchopen(); } + srch.focus(); } // ---------------------------------------------------- Handles "click to edit" @@ -1622,7 +1595,7 @@ function handler(infostr) { +'' +'External:Search' + inf.document.write('>Search' +'' +'