--- rat/client/Attic/code.html 2000/08/02 15:27:10 1.10 +++ rat/client/Attic/code.html 2001/03/12 15:35:55 1.17 @@ -9,8 +9,8 @@ Resource Assembly Tool 1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31, 2/2,2/3,2/10,2/12,2/13,2/14,2/15,2/17,2/18,2/19,2/20,2/21,2/22, 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 -Gerd Kortemeyer with Scott Harrison +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 --> @@ -30,6 +30,7 @@ var colmap5=new Array(); var colmap6=new Array(); var obj=new Array(); var objcont=new Array(); +var objparms=new Array(); var objlinks=new Array(); var rowcont=new Array(); var rowtype=new Array(); @@ -71,6 +72,7 @@ var data4=new Array(1024); var data5=new Array(1024); var inf; +var srch; // ------------------------------------------------ Insert a row into the table @@ -92,7 +94,7 @@ function insertrow(j,ex1,ex2) { objects=objects1+':'+objects2; data1=objects.split(':'); for (kj=0;kj'); - if (what!='') { - if (obj1!='') { + if ((what!='') && (what!=undefined)) { + if ((obj1!='') && (obj1!=undefined)) { obj1="'"+obj1+"'"; parent.mapout.document.write ('
'+ + ''+ + ''+ + ''+ + '
Resource Library Search
'+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
title
author
subject
notes
abstract
mime
language
creationdate
lastrevisiondate
owner
copyright
'+ + ''+ + '
'); +} + +// -------------------------------------------- Interface function to searching + +function search() { + alert("Searching not yet implemented"); +} + +// ------------------------------------------------------- Do srch status check + +function srchcheck() { + if (srch.closed) { + srchopen(); + } +} + // ---------------------------------------------------- Handles "click to edit" function handler(infostr) { @@ -1517,16 +1613,16 @@ function handler(infostr) { } } inf.document.write( - '
Title:' + ''); if ((data2[3]!='start') && (data2[3]!='finish')) { - inf.document.write('' +'' - +'' + +''); } inf.document.writeln( - ''); + 'Link resource'); } + parent.mapout.document.writeln( + '
Set Parameters'); + + parent.mapout.document.writeln(''); parent.mapout.document.writeln('
Title:' +'
URL:' + inf.document.write('
URL:' +'
External:
' + inf.document.write('>Search
' +'
Link Resource'); } + inf.document.writeln( + '
Set Parameters'); + } } else { linkmode=0; @@ -1620,7 +1721,8 @@ function empty(rid,k) { 'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw(' +');">Insert resource'); - if ((mostrecent!=0) && (objcont[mostrecent]!='')) { + if ((mostrecent!=0) && (objcont[mostrecent]!='') && + (objcont[mostrecent]!=undefined)) { inf.document.writeln('
'+ - 'Link resource
'); for (j=2;j' +'Insert resource linked to from above
'); @@ -1951,7 +2057,9 @@ function insrestab(irow,be,af,typ) { '' +'Insert resource linked to from above and linking to below
'); @@ -1961,6 +2069,7 @@ function insrestab(irow,be,af,typ) { '' +'Insert resource linking to below
'); @@ -1981,7 +2090,7 @@ function simpletabledraw() { var cck; var condid; var sortstr=sortobjs(); - if (sortstr!='') { + if ((sortstr!='') && (sortstr!=undefined)) { objsorted=sortstr.split('&'); for (k=0;k'); var k; for (k=0;k