version 1.29, 2001/04/30 17:01:06
|
version 1.36, 2001/06/25 21:43:49
|
Line 14 Resource Assembly Tool
|
Line 14 Resource Assembly Tool
|
March/April 01 Scott Harrison |
March/April 01 Scott Harrison |
04/20 Gerd Kortemeyer |
04/20 Gerd Kortemeyer |
04/30 Scott Harrison |
04/30 Scott Harrison |
|
05/31 Scott Harrison |
|
06/11,06/25 Gerd Kortemeyer |
--> |
--> |
|
|
|
|
Line 79 var srch;
|
Line 81 var srch;
|
var srchflag=-1; // 1 means currently open |
var srchflag=-1; // 1 means currently open |
// 0 means closed (but has been open) |
// 0 means closed (but has been open) |
// -1 means never yet opened/defined |
// -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() { |
function testfunction() { |
inf.document.forms.resinfo.elements.t.value="ABC"; |
inf.document.forms.resinfo.elements.t.value="ABC"; |
Line 1295 function infoclear() {
|
Line 1309 function infoclear() {
|
if (srchflag==1) { |
if (srchflag==1) { |
srchclose(); |
srchclose(); |
} |
} |
|
if (idxflag==1) { |
|
idxclose(); |
|
} |
|
if (parmflag==1) { |
|
parmclose(); |
|
} |
parent.top.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
Line 1470 function insertcondlink(cid,lnr) {
|
Line 1490 function insertcondlink(cid,lnr) {
|
|
|
|
|
|
|
|
// ------------------------------------------------------ Clears indexer window |
|
|
|
function idxclear() { |
|
idx.document.clear(); |
|
} |
|
|
// ------------------------------------------------------- Clears search window |
// ------------------------------------------------------- Clears search window |
|
|
function srchclear() { |
function srchclear() { |
srch.document.clear(); |
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 |
// ------------------------------------------------------- Closes search window |
|
|
function srchclose() { |
function srchclose() { |
Line 1485 function srchclose() {
|
Line 1526 function srchclose() {
|
} |
} |
} |
} |
|
|
|
// ------------------------------------------------------- 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 |
// --------------------------------------------------------- Open search window |
|
|
function srchopen() { |
function srchopen(mode) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
|
srchmode=mode; |
srchflag=1; |
srchflag=1; |
srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); |
srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); |
srch.focus(); |
srch.focus(); |
Line 1502 function search() {
|
Line 1563 function search() {
|
|
|
// ------------------------------------------------------- Do srch status check |
// ------------------------------------------------------- Do srch status check |
|
|
function srchcheck() { |
function srchcheck(mode) { |
if (!srch || srch.closed) { |
if (!srch || srch.closed || srchmode!=mode) { |
srchopen(); |
srchopen(); |
} |
} |
srch.focus(); |
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 1604 function handler(infostr) {
|
Line 1674 function handler(infostr) {
|
+'<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><td align=right><a href="javascript:opener.srchcheck()">Search</a></td></tr>' |
inf.document.write('></td><td align=right>' |
|
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
|
+'<a href="javascript:opener' |
|
+'.srchcheck(\'interactive\')">Search</a></td></tr>' |
+'<tr><td colspan=3>' |
+'<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'"+'"'); |
Line 2312 function condense() {
|
Line 2385 function condense() {
|
function load() { |
function load() { |
message("Loading"); |
message("Loading"); |
schedule('load'); |
schedule('load'); |
checkdef(); |
|
} |
} |
|
|
function finishload() { |
function finishload() { |
Line 2339 function finishload() {
|
Line 2411 function finishload() {
|
if (data2[0]=='obj') { obj[data2[1]]=data2[2]; } |
if (data2[0]=='obj') { obj[data2[1]]=data2[2]; } |
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; } |
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; } |
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; } |
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; } |
|
if (data2[0]=='objparms') { |
|
if (objparms[data2[1]]==undefined) { |
|
objparms[data2[1]]=data2[data2[2]]; |
|
} else { |
|
objparms[data2[1]]+=':'+data2[data2[2]]; |
|
} |
|
} |
if (data2[0]=='rowcont') { rowcont[data2[1]]=data2[2]; } |
if (data2[0]=='rowcont') { rowcont[data2[1]]=data2[2]; } |
if (data2[0]=='row') { row[data2[1]]=1*data2[2]; } |
if (data2[0]=='row') { row[data2[1]]=1*data2[2]; } |
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; } |
if (data2[0]=='col') { col[data2[1]]=1*data2[2]; } |
Line 2357 function finishload() {
|
Line 2436 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]+"&parms="+objparms[resid]+ |
|
"&resid="+resid,"parmout",options); |
|
parm.focus(); |
} |
} |
|
|
// -------------------------------------------------------------- Undo function |
// -------------------------------------------------------------- Undo function |
Line 2422 function wheelswitch() {
|
Line 2506 function wheelswitch() {
|
// --------------------------------------------- Checks if server frame defined |
// --------------------------------------------- Checks if server frame defined |
|
|
function checkdef() { |
function checkdef() { |
if (parent.server!=undefined) { |
if (parent.flag==1) { |
if (parent.server.document!=undefined) { |
srvloaded(); |
if (parent.server.document.forms.storage.output.value!=undefined) { |
|
srvloaded(); |
|
} |
|
} |
|
} |
} |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
if ((finishdone==0) && (tim==0)) { setTimeout('checkdef()',100); } |
} |
} |
Line 2456 function schedule(action) {
|
Line 2536 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 2521 function leave() {
|
Line 2613 function leave() {
|
if (srch && !srch.closed) { |
if (srch && !srch.closed) { |
srchclose(); |
srchclose(); |
} |
} |
|
if (idx && !idx.closed) { |
|
srchclose(); |
|
} |
} |
} |
|
|
</script> |
</script> |
Line 2535 function leave() {
|
Line 2630 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> |