version 1.14, 2001/03/03 16:45:10
|
version 1.34, 2001/06/11 19:25:12
|
Line 10 Resource Assembly Tool
|
Line 10 Resource Assembly Tool
|
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, |
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, |
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, |
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 Gerd Kortemeyer with Scott Harrison |
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 |
|
05/31 Scott Harrison |
|
06/11 Gerd Kortemeyer |
--> |
--> |
|
|
|
|
Line 72 var data4=new Array(1024);
|
Line 77 var data4=new Array(1024);
|
var data5=new Array(1024); |
var data5=new Array(1024); |
|
|
var inf; |
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 srchmode=''; |
|
|
|
var idx; |
|
var idxflag=-1; // 1 means currently open |
|
// 0 means closed (but has been open) |
|
// -1 means never yet opened/defined |
|
var idxmode=''; |
|
|
|
var parm; |
|
var parmflag=-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 |
// ------------------------------------------------ Insert a row into the table |
|
|
Line 1281 function infoclear() {
|
Line 1306 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
parent.focus(); |
if (srchflag==1) { |
|
srchclose(); |
|
} |
|
if (idxflag==1) { |
|
idxclose(); |
|
} |
|
if (parmflag==1) { |
|
parmclose(); |
|
} |
|
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
lastinfo=''; |
lastinfo=''; |
Line 1374 function info(infostr) {
|
Line 1408 function info(infostr) {
|
} |
} |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.writeln('</td></tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
parent.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=0; |
notclear=0; |
lastinfo=infostr; |
lastinfo=infostr; |
Line 1453 function insertcondlink(cid,lnr) {
|
Line 1487 function insertcondlink(cid,lnr) {
|
joinres(nobj,tobj,0); |
joinres(nobj,tobj,0); |
} |
} |
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------ Clears indexer window |
|
|
|
function idxclear() { |
|
idx.document.clear(); |
|
} |
|
|
|
// ------------------------------------------------------- Clears search window |
|
|
|
function srchclear() { |
|
srch.document.clear(); |
|
} |
|
|
|
// --------------------------------------------------------- Clears parm window |
|
|
|
function parmclear() { |
|
parm.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(); |
|
} |
|
} |
|
|
|
// ------------------------------------------------------- Closes search window |
|
|
|
function parmclose() { |
|
if (parm && !parm.closed) { |
|
parmflag=0; |
|
parm.close(); |
|
} |
|
} |
|
|
|
// -------------------------------------------------------- Open indexer window |
|
|
|
function idxopen(mode) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxmode=mode; |
|
idxflag=1; |
|
idx=open("/res?catalogmode="+mode,"idxout",options); |
|
idx.focus(); |
|
} |
|
|
|
// --------------------------------------------------------- Open search window |
|
|
|
function srchopen(mode) { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
srchmode=mode; |
|
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(mode) { |
|
if (!srch || srch.closed || srchmode!=mode) { |
|
srchopen(); |
|
} |
|
srch.focus(); |
|
} |
|
|
|
// -------------------------------------------------------- Do idx status check |
|
|
|
function idxcheck(mode) { |
|
if (!idx || idx.closed || idxmode!=mode) { |
|
idxopen(mode); |
|
} |
|
idx.focus(); |
|
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
|
|
function handler(infostr) { |
function handler(infostr) { |
Line 1540 function handler(infostr) {
|
Line 1666 function handler(infostr) {
|
} |
} |
} |
} |
inf.document.write( |
inf.document.write( |
'<form name=resinfo><table><tr><td>Title:</td><td>' |
'<form name=resinfo><table><tr><td>Title:</td><td colspan=2>' |
+'<input type=text name=t size=30 value="' |
+'<input type=text name=t size=30 value="' |
+data2[0]+'"><input type=hidden name=h value='+data2[3]+'></td></tr>'); |
+data2[0]+'"><input type=hidden name=h value='+data2[3]+'></td></tr>'); |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
if ((data2[3]!='start') && (data2[3]!='finish')) { |
inf.document.write('<tr><td>URL:</td><td>' |
inf.document.write('<tr><td>URL:</td><td colspan=2>' |
+'<input type=text name=u size=30 value="'+data2[1]+'"></td></tr>' |
+'<input type=text name=u size=30 value="'+data2[1]+'"></td></tr>' |
+'<tr><td>External:</td><td><input type=checkbox name=e'); |
+'<tr><td>External:</td><td><input type=checkbox name=e'); |
if (data2[2]=='true') { inf.document.write(' checked'); } |
if (data2[2]=='true') { inf.document.write(' checked'); } |
inf.document.write('></td></tr>' |
inf.document.write('></td><td align=right>' |
+'<tr><td colspan=2>' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
|
+'<a href="javascript:opener' |
|
+'.srchcheck(\'interactive\')">Search</a></td></tr>' |
|
+'<tr><td colspan=3>' |
+'<input type=radio name=y value=normal '+ |
+'<input type=radio name=y value=normal '+ |
'onClick="self.document.forms.resinfo.elements.h.value='+"'normal'"+'"'); |
'onClick="self.document.forms.resinfo.elements.h.value='+"'normal'"+'"'); |
if (data2[3]=='normal') { inf.document.write(' checked'); } |
if (data2[3]=='normal') { inf.document.write(' checked'); } |
Line 1568 function handler(infostr) {
|
Line 1697 function handler(infostr) {
|
+'<input type=hidden name=u value=""></td></tr>'); |
+'<input type=hidden name=u value=""></td></tr>'); |
} |
} |
inf.document.writeln( |
inf.document.writeln( |
'<tr><td colspan=2><a href="javascript:opener.editmode=0;' |
'<tr><td colspan=3><a href="javascript:opener.editmode=0;' |
+'opener.notclear=0;opener.objcont['+data1[1] |
+'opener.notclear=0;opener.objcont['+data1[1] |
+']=opener.escape(self.document.forms.resinfo.elements.t.value)+'+"':'" |
+']=opener.escape(self.document.forms.resinfo.elements.t.value)+'+"':'" |
+'+opener.escape(self.document.forms.resinfo.elements.u.value)+'+"':'" |
+'+opener.escape(self.document.forms.resinfo.elements.u.value)+'+"':'" |
Line 1974 function insrestab(irow,be,af,typ) {
|
Line 2103 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linked to from above</a><br>'); |
+'Insert resource linked to from above</a><br>'); |
Line 1983 function insrestab(irow,be,af,typ) {
|
Line 2113 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
+'parent.code.joinres('+be+',parent.code.mostrecent,0);' |
|
+"parent.code.save();" |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linked to from above and linking to below</a><br>'); |
+'Insert resource linked to from above and linking to below</a><br>'); |
Line 1993 function insrestab(irow,be,af,typ) {
|
Line 2125 function insrestab(irow,be,af,typ) {
|
'<a href="javascript:parent.code.insertrow(' |
'<a href="javascript:parent.code.insertrow(' |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+irow+');parent.code.newresource(parent.code.maxrow,'+rcol[0] |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
+",'','','false','normal');parent.code.mostrecent=parent.code.obj.length-1;" |
|
+"parent.code.save();" |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.joinres(parent.code.mostrecent,'+af+',0);' |
+'parent.code.draw();">' |
+'parent.code.draw();">' |
+'Insert resource linking to below</a><br>'); |
+'Insert resource linking to below</a><br>'); |
Line 2252 function condense() {
|
Line 2385 function condense() {
|
function load() { |
function load() { |
message("Loading"); |
message("Loading"); |
schedule('load'); |
schedule('load'); |
checkdef(); |
|
} |
} |
|
|
function finishload() { |
function finishload() { |
Line 2297 function finishload() {
|
Line 2429 function finishload() {
|
// -------------------------------------------------------------- Parameter set |
// -------------------------------------------------------------- Parameter set |
|
|
function setparms(resid) { |
function setparms(resid) { |
alert('Called setparms for '+resid); |
var options="scrollbars=1,resizable=1,menubar=0"; |
|
parmflag=1; |
|
data1=objcont[resid].split(':'); |
|
parm=open("/adm/ratparms?url="+data1[1],"parmout",options); |
|
parm.focus(); |
} |
} |
|
|
// -------------------------------------------------------------- Undo function |
// -------------------------------------------------------------- Undo function |
Line 2362 function wheelswitch() {
|
Line 2498 function wheelswitch() {
|
// --------------------------------------------- Checks if server frame defined |
// --------------------------------------------- Checks if server frame defined |
|
|
function checkdef() { |
function checkdef() { |
if (parent.server.document.forms.storage.output.value!=undefined) { |
if (parent.flag==1) { |
srvloaded(); |
srvloaded(); |
} |
} |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
} |
} |
Line 2392 function schedule(action) {
|
Line 2528 function schedule(action) {
|
reqaction=action; |
reqaction=action; |
tim=0; |
tim=0; |
finishdone=0; |
finishdone=0; |
canceltim=setTimeout('tim=1;',20000) |
canceltim=setTimeout('tim=1;',20000); |
|
checkdef(); |
wait(); |
wait(); |
} |
} |
|
|
|
// ----------------------------------------------------- launch indexer browser |
|
|
|
function groupsearch() { |
|
alert('not yet implemented'); |
|
} |
|
|
|
function groupimport() { |
|
idxcheck('groupimport'); |
|
} |
|
|
// -------------------------------------------------------------- Store changes |
// -------------------------------------------------------------- Store changes |
|
|
function storechange() { |
function storechange() { |
var k; |
var k; |
|
parent.flag=0; |
parent.server.document.forms.storage.submit(); |
parent.server.document.forms.storage.submit(); |
schedule('save'); |
schedule('save'); |
} |
} |
Line 2454 function leave() {
|
Line 2602 function leave() {
|
if (!inf.closed) { |
if (!inf.closed) { |
inf.close(); |
inf.close(); |
} |
} |
|
if (srch && !srch.closed) { |
|
srchclose(); |
|
} |
|
if (idx && !idx.closed) { |
|
srchclose(); |
|
} |
} |
} |
|
|
</script> |
</script> |
Line 2468 function leave() {
|
Line 2622 function leave() {
|
<a href="javascript:revert();">Revert</a> |
<a href="javascript:revert();">Revert</a> |
<a href="javascript:undo();">Undo</a> |
<a href="javascript:undo();">Undo</a> |
<a href="javascript:redo();">Redo</a> |
<a href="javascript:redo();">Redo</a> |
|
<a href="javascript:groupsearch();">Group Search</a> |
|
<a href="javascript:groupimport();">Group Import</a> |
<a href="javascript:storechange();">Store</a> |
<a href="javascript:storechange();">Store</a> |
</body> |
</body> |
</html> |
</html> |