version 1.32, 2001/05/28 22:23:00
|
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 idx; |
var idxflag=-1; // 1 means currently open |
var idxflag=-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 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 1302 function infoclear() {
|
Line 1312 function infoclear() {
|
if (idxflag==1) { |
if (idxflag==1) { |
idxclose(); |
idxclose(); |
} |
} |
|
if (parmflag==1) { |
|
parmclose(); |
|
} |
parent.top.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
Line 1489 function srchclear() {
|
Line 1502 function srchclear() {
|
srch.document.clear(); |
srch.document.clear(); |
} |
} |
|
|
|
// --------------------------------------------------------- Clears parm window |
|
|
|
function parmclear() { |
|
parm.document.clear(); |
|
} |
|
|
// ------------------------------------------------------ Closes indexer window |
// ------------------------------------------------------ Closes indexer window |
|
|
function idxclose() { |
function idxclose() { |
Line 1507 function srchclose() {
|
Line 1526 function srchclose() {
|
} |
} |
} |
} |
|
|
|
// ------------------------------------------------------- Closes search window |
|
|
|
function parmclose() { |
|
if (parm && !parm.closed) { |
|
parmflag=0; |
|
parm.close(); |
|
} |
|
} |
|
|
// -------------------------------------------------------- Open indexer window |
// -------------------------------------------------------- Open indexer window |
|
|
function idxopen() { |
function idxopen(mode) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxmode=mode; |
idxflag=1; |
idxflag=1; |
idx=open("/res?catalogmode=interactive","idxout",options); |
idx=open("/res?catalogmode="+mode,"idxout",options); |
idx.focus(); |
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 1533 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(); |
Line 1542 function srchcheck() {
|
Line 1572 function srchcheck() {
|
|
|
// -------------------------------------------------------- Do idx status check |
// -------------------------------------------------------- Do idx status check |
|
|
function idxcheck() { |
function idxcheck(mode) { |
if (!idx || idx.closed) { |
if (!idx || idx.closed || idxmode!=mode) { |
idxopen(); |
idxopen(mode); |
} |
} |
idx.focus(); |
idx.focus(); |
} |
} |
Line 1645 function handler(infostr) {
|
Line 1675 function handler(infostr) {
|
+'<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>' |
inf.document.write('></td><td align=right>' |
+'<a href="javascript:opener.idxcheck()">Browse</a> ' |
+'<a href="javascript:opener.idxcheck(\'interactive\')">Browse</a> ' |
+'<a href="javascript:opener' |
+'<a href="javascript:opener' |
+'.srchcheck()">Search</a></td></tr>' |
+'.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 2381 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 2399 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 2501 function schedule(action) {
|
Line 2543 function schedule(action) {
|
|
|
// ----------------------------------------------------- launch indexer browser |
// ----------------------------------------------------- launch indexer browser |
|
|
function browse() { |
function groupsearch() { |
alert('not yet implemented'); |
alert('not yet implemented'); |
} |
} |
|
|
function groupimport() { |
function groupimport() { |
alert('not yet implemented'); |
idxcheck('groupimport'); |
} |
} |
|
|
// -------------------------------------------------------------- Store changes |
// -------------------------------------------------------------- Store changes |
Line 2588 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:browse();">Browse</a> |
<a href="javascript:groupsearch();">Group Search</a> |
<a href="javascript:groupimport();">Group Import</a> |
<a href="javascript:groupimport();">Group Import</a> |
<a href="javascript:storechange();">Store</a> |
<a href="javascript:storechange();">Store</a> |
</body> |
</body> |