version 1.18, 2001/03/12 15:47:46
|
version 1.22, 2001/03/15 14:43:12
|
Line 74 var data5=new Array(1024);
|
Line 74 var data5=new Array(1024);
|
var inf; |
var inf; |
var srch; |
var srch; |
|
|
|
function testfunction() { |
|
inf.document.forms.resinfo.elements.t.value="ABC"; |
|
} |
|
|
// ------------------------------------------------ Insert a row into the table |
// ------------------------------------------------ Insert a row into the table |
|
|
function insertrow(j,ex1,ex2) { |
function insertrow(j,ex1,ex2) { |
Line 1282 function infoclear() {
|
Line 1286 function infoclear() {
|
} |
} |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.writeln('</tr></table></body></html>'); |
inf.document.close(); |
inf.document.close(); |
|
srchclose(); |
|
|
parent.top.focus(); |
parent.top.focus(); |
parent.mapout.focus(); |
parent.mapout.focus(); |
notclear=1; |
notclear=1; |
Line 1466 function srchclear() {
|
Line 1472 function srchclear() {
|
// ------------------------------------------------------- Closes search window |
// ------------------------------------------------------- Closes search window |
|
|
function srchclose() { |
function srchclose() { |
srch.close(); |
if (srch) { |
|
srch.close(); |
|
} |
} |
} |
|
|
// --------------------------------------------------------- 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","srchout",options); |
srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); |
return; |
srch.focus(); |
srchclear(); |
|
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 1522 function search() {
|
Line 1494 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(); |
} |
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
Line 1622 function handler(infostr) {
|
Line 1595 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.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 2533 function leave() {
|
Line 2506 function leave() {
|
inf.close(); |
inf.close(); |
} |
} |
if (!srch.closed) { |
if (!srch.closed) { |
srch.close(); |
srchclose(); |
} |
} |
} |
} |
|
|