More general multi-search algorithm with cached records.
[egate.git] / www / showfull.egw
index 3cacea1..0afbc4e 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 {
-# $Id: showfull.egw,v 1.16 1996/01/09 16:16:49 adam Exp $
+# $Id: showfull.egw,v 1.18 1996/01/29 17:31:48 adam Exp $
 
 proc buttons {setNo tno no format count host after} {
     global sessionId
@@ -18,7 +18,7 @@ proc buttons {setNo tno no format count host after} {
             html {"><img src="/egwgif/button-next-record.gif" }
            html {alt="Next Record" border=0></a>}
         } else {
-            html {">Next Record</a>} " | \n"
+            html {">Next</a>} " | \n"
         }
     }
     if {$no > 1} {
@@ -29,7 +29,7 @@ proc buttons {setNo tno no format count host after} {
             html {"><img src="/egwgif/button-previous-record.gif" }
            html {alt="Previous Record" border=0></a>}
         } else {
-            html {">Previous Record</a>} " | \n"
+            html {">Previous</a>} " | \n"
         }
     }
 
@@ -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,7 +77,8 @@ proc buttons {setNo tno no format count host after} {
         source z39util.tcl
     }
 
-    html "<head><title> WWW/Z39.50 Gateway Record " $host " </title>\n"
+    html "<head><title> WWW/Z39.50 Gateway Record " [splitHostSpec $host]
+    html " </title>\n"
     html "</head><body>\n"
 
     global setNo
@@ -126,11 +105,13 @@ proc buttons {setNo tno no format count host after} {
 
     set count [$zz.$setNo resultCount]
 
+    set useIcons 1
     buttons $setNo $tno $no $format $count $host 0
 
     html "<h3>Record \#$no out of $count </h3><br>\n"
 
     eval {z39present $setNo $tno $no $no display-$format F}
+    set useIcons 0
     buttons $setNo $tno $no $format $count $host 1
 }
 </body>