Work on WAIS part of gateway.
[egate.git] / www / showfull.egw
index 1147703..85c2194 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 {
-# $Id: showfull.egw,v 1.17 1996/01/26 15:50:09 adam Exp $
+# $Id: showfull.egw,v 1.19 1996/03/05 18:50:25 adam Exp $
 
 proc buttons {setNo tno no format count host after} {
     global sessionId
@@ -67,31 +67,9 @@ proc buttons {setNo tno no format count host after} {
     } else {
         html {">Result Set</a>} " | \n"
     }
-    html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
-    if {$tno > 0} {
-        html {/mquery.egw/} 
-    } else {
-        html {/query.egw/} 
-    }
-    html $host + $setNo 
-    if {$useIcons} {
-        html {"><img src="/egwgif/button-new-query.gif" }
-       html {alt="New Query" border=0></a>}
-    } else {
-        html {">New Query</a>} " | \n"
-    }
-    html {<a href="http:} $env(SCRIPT_NAME) / $sessionId 
-    if {$tno > 0} {
-        html {/mtargets.egw} 
-    } else {
-        html {/targets.egw} 
-    }
-    if {$useIcons} {
-        html {"><img src="/egwgif/button-new-target.gif" }
-       html {alt="New Target" border=0></a>}
-    } else {
-        html {">New Target</a>}
-    }
+
+    button-new-query 1 $setNo
+    button-new-target 0
     html "<p>\n"
 }
 
@@ -99,10 +77,6 @@ proc buttons {setNo tno no format count host after} {
         source z39util.tcl
     }
 
-    html "<head><title> WWW/Z39.50 Gateway Record " [splitHostSpec $host]
-    html " </title>\n"
-    html "</head><body>\n"
-
     global setNo
     global hist
 
@@ -121,6 +95,10 @@ proc buttons {setNo tno no format count host after} {
         set host $hist($setNo,host)
     }
     
+    html "<head><title> WWW/Z39.50 Gateway Record " [splitHostSpec $host]
+    html " </title>\n"
+    html "</head><body>\n"
+
     if {[z39search $setNo 0 $tno F] != "1"} {
         return
     }