--- rat/client/Attic/code.html 2001/03/12 17:29:02 1.19 +++ rat/client/Attic/code.html 2001/03/15 14:48:44 1.23 @@ -1286,6 +1286,8 @@ function infoclear() { } inf.document.writeln(''); inf.document.close(); + srchclose(); + parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1470,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?catalogmode=editresource","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 @@ -1526,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" @@ -1626,7 +1595,7 @@ function handler(infostr) { +'' +'External:Search' + inf.document.write('>Search' +'' +'