');
+ '');
data1=infostr.split('&');
if (data1[0]=='c') {
inf.document.write('Condition (');
@@ -1394,13 +1475,15 @@ function info(infostr) {
if (data1[0]=='r') {
data2=objcont[data1[1]].split(':');
url=data2[1];
+ ext=data2[2];
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
- if (mime==undefined) { mime=''; }
+ if (typeof(mime)=="undefined") { mime=''; }
+ if (ext=='true') { mime=''; }
if (mime!='') {
inf.document.write
(' ');
+ '"> ');
}
inf.document.write('');
if (data2[2]=='true') { inf.document.write('External '); }
@@ -1448,7 +1531,6 @@ function info(infostr) {
}
// ------------------------------------------------ "Escapes" out special chars
-
function escape(instring) {
var outstring='';
var thischar;
@@ -1456,7 +1538,7 @@ function escape(instring) {
for (k=0;kCopy from Map '+
+ '');
+
+ copydx.document.writeln('');
+ copydx.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=open("/adm/searchcat?launch=1&mode=rat&catalogmode="+mode,"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();
+ srchopen(mode);
}
srch.focus();
}
// -------------------------------------------------------- Do idx status check
-
function idxcheck(mode) {
if (!idx || idx.closed || idxmode!=mode) {
idxopen(mode);
@@ -1611,8 +1731,15 @@ function idxcheck(mode) {
idx.focus();
}
-// ---------------------------------------------------- Handles "click to edit"
+// -------------------------------------------------------- Do idx status check
+function copydxcheck(mode) {
+ if (!copydx || copydx.closed || copydxmode!=mode) {
+ copydxopen(mode);
+ }
+ copydx.focus();
+}
+// ---------------------------------------------------- Handles "click to edit"
function handler(infostr) {
var k;
editmode=1;
@@ -1621,7 +1748,7 @@ function handler(infostr) {
inf.document.clear();
inf.document.writeln(
''+
- '');
+ '');
data1=infostr.split('&');
if (data1[0]=='c') {
inf.document.writeln('Condition ');
@@ -1658,7 +1785,7 @@ function handler(infostr) {
}
inf.document.writeln(
'opener.infoclear();opener.editmode=0;opener.draw('
- +');">Change to above values '
+ +');">Save Changes '
+' Reset '
+' ');
@@ -1675,8 +1802,6 @@ function handler(infostr) {
'opener.insertcondlink('+data1[1]+','+data1[3]+');'+
'opener.editmode=0;opener.notclear=0;opener.infoclear();opener.draw('
+');">Insert Resource Into Link');
-
-
} else {
if (data1[0]=='r') {
if (linkmode!=0) {
@@ -1700,7 +1825,7 @@ function handler(infostr) {
inf.document.write(
'
');
inf.document.close();
inf.focus();
}
// ----------------------------------------------------- Clicks on empty fields
-
function empty(rid,k) {
var cid=findcol(k);
var lcol=k-1;
@@ -1796,7 +1920,7 @@ function empty(rid,k) {
inf.document.clear();
inf.document.writeln(
''+
- ''+
+ ''+
'Empty Field ');
inf.document.writeln('Insert resource ');
if ((mostrecent!=0) && (objcont[mostrecent]!='') &&
- (objcont[mostrecent]!=undefined)) {
+ (typeof(objcont[mostrecent])!="undefined")) {
inf.document.writeln('Done ');
+ +'opener.infoclear();">Cancel');
inf.document.writeln('
');
inf.document.close();
inf.focus();
}
// ---------------------------------------------------- Save into hidden fields
-
function save() {
var k;
if (graphdef=='yes') {
@@ -1912,7 +2035,6 @@ function save() {
}
// ----------------------------------------------- Reset all layout information
-
function graphreset() {
var k;
@@ -1935,17 +2057,12 @@ function graphreset() {
objcont[0]='';
objlinks[0]='';
- if (((objcont[1]==undefined)&&(objcont[2]==undefined)) ||
- ((objcont[1]=='')&&(objcont[2]==''))) {
- objcont[1]='Start::false:start:res'
- objcont[2]='Finish::false:finish:res';
- }
+
graphdef='no';
}
// --------------------- Compare two resources with each other for "straighten"
-
function rescompare(a,b) {
data1=a.split(':');
data2=b.split(':');
@@ -1954,7 +2071,7 @@ function rescompare(a,b) {
for (k=1;k');
url=data1[1];
+ ext=data1[2];
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
- if (mime==undefined) { mime=''; }
- if (mime!='') {
+ if (typeof(mime)=="undefined") { mime=''; }
+ if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
- (''+
+ '
');
}
parent.mapout.document.write(
@@ -2058,7 +2178,7 @@ function tabledraw() {
+'+parent.mapout.document.forms.r'+i+'.elements.e.checked+'+"':'"
+'+parent.mapout.document.forms.r'+i+'.elements.h.value+'+"':res'"
+';parent.code.draw();">'
- +'Change to above values '
+ +'Save Changes '
+' Reset
');
if ((data1[3]!='start') && (data1[3]!='finish')) {
@@ -2135,7 +2255,6 @@ function tabledraw() {
}
// ----------------------------------------------------- Insert Resource Output
-
function insrestab(irow,be,af,typ) {
parent.mapout.document.writeln(' '+
'');
url=data1[1];
+ ext=data1[2];
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
- if (mime==undefined) { mime=''; }
- if (mime!='') {
+ if (typeof(mime)=="undefined") { mime=''; }
+ if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
- (''+
+ '
');
}
parent.mapout.document.write(''+k+'
');
@@ -2276,7 +2402,6 @@ function simpletabledraw() {
}
// ---------------------------------- Sort objects to straighten graph or table
-
function sortobjs() {
message("Sorting Resources: "+funny);
var k;
@@ -2298,7 +2423,7 @@ function sortobjs() {
for (k=1;k');
var k;
for (k=0;k');
+ data2=data1[k].split(':').join(':').split('<:>');
if (data2[0]=='graphdef') { graphdef=data2[1]; }
if (data2[0]=='maxcol') { maxcol=1*data2[1]; }
if (data2[0]=='maxrow') { maxrow=1*data2[1]; }
@@ -2466,7 +2587,7 @@ function finishload() {
if (data2[0]=='objcont') { objcont[data2[1]]=data2[2]; }
if (data2[0]=='objlinks') { objlinks[data2[1]]=data2[2]; }
if (data2[0]=='objparms') {
- if (objparms[data2[1]]==undefined) {
+ if (typeof(objparms[data2[1]])=="undefined") {
objparms[data2[1]]=data2[2];
} else {
objparms[data2[1]]+=':'+data2[2];
@@ -2482,13 +2603,32 @@ function finishload() {
}
if (graphdef=='yes') {
for (k=1;k<=maxrow;k++) {
- if (rowcont[k]==undefined) { rowcont[k]=''; }
+ if (typeof(rowcont[k])=="undefined") { rowcont[k]=''; }
}
+ } else {
+ var hasstart=0;
+ var hasfinish=0;
+ for (k=0;k1) {
undopointer--;
@@ -2515,7 +2654,6 @@ function undo() {
}
// -------------------------------------------------------------- Redo function
-
function redo() {
if (undopointer
-
-Toggle Display Mode
-Zoom Out
-Zoom In
-Condense
-Straighten
-Revert
-Undo
-Redo
-Group Search
-Group Import
-Store
+
+
+