--- rat/client/Attic/code.html 2001/03/12 15:35:55 1.17 +++ rat/client/Attic/code.html 2001/03/15 17:59:45 1.24 @@ -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,50 +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("","srchout",options); - 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 @@ -1521,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" @@ -1621,7 +1595,7 @@ function handler(infostr) { +'' +'External:Search' + inf.document.write('>Search' +'' +'