version 1.19, 2001/03/12 17:29:02
|
version 1.32, 2001/05/28 22:23:00
|
Line 11 Resource Assembly Tool
|
Line 11 Resource Assembly Tool
|
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,03/05 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 |
--> |
--> |
|
|
|
|
Line 73 var data5=new Array(1024);
|
Line 76 var data5=new Array(1024);
|
|
|
var inf; |
var inf; |
var srch; |
var srch; |
|
var srchflag=-1; // 1 means currently open |
|
// 0 means closed (but has been open) |
|
// -1 means never yet opened/defined |
|
var idx; |
|
var idxflag=-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 1286 function infoclear() {
|
Line 1296 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
if (srchflag==1) { |
|
srchclose(); |
|
} |
|
if (idxflag==1) { |
|
idxclose(); |
|
} |
parent.top.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
Line 1461 function insertcondlink(cid,lnr) {
|
Line 1477 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(); |
} |
} |
|
|
|
// ------------------------------------------------------ Closes indexer window |
|
|
|
function idxclose() { |
|
if (idx && !idx.closed) { |
|
idxflag=0; |
|
idx.close(); |
|
} |
|
} |
|
|
// ------------------------------------------------------- Closes search window |
// ------------------------------------------------------- Closes search window |
|
|
function srchclose() { |
function srchclose() { |
srch.close(); |
if (srch && !srch.closed) { |
|
srchflag=0; |
|
srch.close(); |
|
} |
|
} |
|
|
|
// -------------------------------------------------------- Open indexer window |
|
|
|
function idxopen() { |
|
var options="scrollbars=1,resizable=1,menubar=0"; |
|
idxflag=1; |
|
idx=open("/res?catalogmode=interactive","idxout",options); |
|
idx.focus(); |
} |
} |
|
|
// --------------------------------------------------------- Open search window |
// --------------------------------------------------------- Open search window |
|
|
function srchopen() { |
function srchopen() { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
srch=open("/adm/searchcat?catalogmode=editresource","srchout",options); |
srchflag=1; |
return; |
srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); |
srchclear(); |
srch.focus(); |
srch.document.writeln( |
|
'<html><body bgcolor="#AAFFAA"><form>'+ |
|
'<table width="100%">'+ |
|
'<tr><td><b>Resource Library Search</b></td>'+ |
|
'<td align=right><input type=button value="Close"'+ |
|
' onClick="javascript:opener.srchclose();"></td>'+ |
|
'</tr></table>'+ |
|
'<table bgcolor="#ffffff">'+ |
|
'<tr><td><b>title</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="title"></td>'+ |
|
'</tr><tr><td><b>author</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="author"></td>'+ |
|
'</tr><tr><td><b>subject</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="subject"></td>'+ |
|
'</tr><tr><td><b>notes</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="notes"></td>'+ |
|
'</tr><tr><td><b>abstract</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="abstract"></td>'+ |
|
'</tr><tr><td><b>mime</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="mime"></td>'+ |
|
'</tr><tr><td><b>language</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="language"></td>'+ |
|
'</tr><tr><td><b>creationdate</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="creationdate"></td>'+ |
|
'</tr><tr><td><b>lastrevisiondate</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="lastrevisiondate"></td>'+ |
|
'</tr><tr><td><b>owner</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="owner"></td>'+ |
|
'</tr><tr><td><b>copyright</b> </td>'+ |
|
'<td><INPUT TYPE="TEXT" NAME="copyright"></td>'+ |
|
'</tr>'+ |
|
'</table>'+ |
|
'<input type="button" value="Search the global catalog"'+ |
|
' onClick="javascript:opener.search()">'+ |
|
'</form></body></html>'); |
|
} |
} |
|
|
// -------------------------------------------- Interface function to searching |
// -------------------------------------------- Interface function to searching |
Line 1526 function search() {
|
Line 1534 function search() {
|
// ------------------------------------------------------- Do srch status check |
// ------------------------------------------------------- Do srch status check |
|
|
function srchcheck() { |
function srchcheck() { |
if (srch.closed) { |
if (!srch || srch.closed) { |
srchopen(); |
srchopen(); |
} |
} |
|
srch.focus(); |
|
} |
|
|
|
// -------------------------------------------------------- Do idx status check |
|
|
|
function idxcheck() { |
|
if (!idx || idx.closed) { |
|
idxopen(); |
|
} |
|
idx.focus(); |
} |
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
Line 1626 function handler(infostr) {
|
Line 1644 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.srchopen()">Search</a></td></tr>' |
inf.document.write('></td><td align=right>' |
|
+'<a href="javascript:opener.idxcheck()">Browse</a> ' |
|
+'<a href="javascript:opener' |
|
+'.srchcheck()">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 2334 function condense() {
|
Line 2355 function condense() {
|
function load() { |
function load() { |
message("Loading"); |
message("Loading"); |
schedule('load'); |
schedule('load'); |
checkdef(); |
|
} |
} |
|
|
function finishload() { |
function finishload() { |
Line 2444 function wheelswitch() {
|
Line 2464 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 2474 function schedule(action) {
|
Line 2494 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 browse() { |
|
alert('not yet implemented'); |
|
} |
|
|
|
function groupimport() { |
|
alert('not yet implemented'); |
|
} |
|
|
// -------------------------------------------------------------- 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 2536 function leave() {
|
Line 2568 function leave() {
|
if (!inf.closed) { |
if (!inf.closed) { |
inf.close(); |
inf.close(); |
} |
} |
if (!srch.closed) { |
if (srch && !srch.closed) { |
srch.close(); |
srchclose(); |
|
} |
|
if (idx && !idx.closed) { |
|
srchclose(); |
} |
} |
} |
} |
|
|
Line 2553 function leave() {
|
Line 2588 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:groupimport();">Group Import</a> |
<a href="javascript:storechange();">Store</a> |
<a href="javascript:storechange();">Store</a> |
</body> |
</body> |
</html> |
</html> |