--- rat/client/Attic/code.html 2001/06/29 21:57:46 1.39
+++ rat/client/Attic/code.html 2001/07/04 18:19:53 1.40
@@ -15,7 +15,7 @@ March/April 01 Scott Harrison
04/20 Gerd Kortemeyer
04/30 Scott Harrison
05/31 Scott Harrison
-06/11,06/25,06/27,06/28,06/29 Gerd Kortemeyer
+06/11,06/25,06/27,06/28,06/29,07/04 Gerd Kortemeyer
-->
@@ -941,7 +941,8 @@ function drawcell (rtype,ctype,what,cm,o
var bgcolor;
var url='';
var urlparts=new Array;
- var mimetype;
+ var mime;
+ var ext;
var objref;
var objnum;
@@ -961,6 +962,7 @@ function drawcell (rtype,ctype,what,cm,o
if (objcont[objnum]!=undefined) {
urlparts=objcont[objnum].split(':');
url=urlparts[1];
+ ext=urlparts[2];
urlparts=url.split('.');
mime=urlparts[urlparts.length-1];
if (mime==undefined) { mime=''; }
@@ -968,7 +970,7 @@ function drawcell (rtype,ctype,what,cm,o
parent.mapout.document.write
('');
- if (mime!='') {
+ if ((mime!='') && (ext!='true')) {
parent.mapout.document.write
('
');
} else {
if (what=='rs:') {
+ mime='';
+ objnum=(obj1.split('&'))[1];
+ if (objcont[objnum]!=undefined) {
+ urlparts=objcont[objnum].split(':');
+ url=urlparts[1];
+ ext=urlparts[2];
+ urlparts=url.split('.');
+ mime=urlparts[urlparts.length-1];
+ if (mime==undefined) { mime=''; }
+ }
parent.mapout.document.write
- ('');
+ if ((mime!='') && (ext!='true')) {
+ parent.mapout.document.write
+ ('
'+
+ '');
+ } else {
+ parent.mapout.document.write
+ ('
');
+ }
+ parent.mapout.document.write
+ ('
');
+
} else {
if (what=='rf:') {
+ mime='';
+ objnum=(obj1.split('&'))[1];
+ if (objcont[objnum]!=undefined) {
+ urlparts=objcont[objnum].split(':');
+ url=urlparts[1];
+ ext=urlparts[2];
+ urlparts=url.split('.');
+ mime=urlparts[urlparts.length-1];
+ if (mime==undefined) { mime=''; }
+ }
parent.mapout.document.write
- ('');
+ if ((mime!='') && (ext!='true')) {
+ parent.mapout.document.write
+ ('
'+
+ '');
+ } else {
+ parent.mapout.document.write
+ ('
');
+ }
+ parent.mapout.document.write
+ ('
');
} else {
parent.mapout.document.write
('