More verbose.
[egate.git] / www / z39util.tcl
index 1de9d26..4853f0a 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $Id: z39util.tcl,v 1.17 1996/01/03 15:19:52 adam Exp $
+# $Id: z39util.tcl,v 1.18 1996/01/04 13:30:33 adam Exp $
 #
 proc saveState {} {
     uplevel #0 {
@@ -894,23 +894,28 @@ proc z39history {} {
     html "<h2>History</h2><dl><br>\n"
     for {set setNo 1} {$setNo < $nextSetNo} {incr setNo} {
         if {$hist($setNo,scan) > 0} continue
-        html {<dt> <a href="http:} $env(SCRIPT_NAME)
-        html / $sessionId {/search.egw/} $setNo + 1
-        html + $hist($setNo,maxPresent)
-        html {"> } [lindex $targets($hist($setNo,host)) 0]
-        if {[llength $hist($setNo,database)] > 1} {
+        set host $hist($setNo,host)
+        html {<dt> } [lindex $targets($host) 0]
+        if {[llength [lindex $targets($host) 1]] > 1} {
             html ": "
             foreach b $hist($setNo,database) {
                 html " $b"
             }
         }
-        html "</a> -- "
+        html {. }
+
         if {[info exists hist($setNo,hits)]} {
-            html $hist($setNo,hits) " hits"
+            html { <a href="http:} $env(SCRIPT_NAME)
+            html / $sessionId {/search.egw/} $setNo + 1
+            html + $hist($setNo,maxPresent)
+            html {">Result</a>: } $hist($setNo,hits) { hits.}
         } else {
-            html failed
+            html {Search failed.}
         }
         html "<dd>\n"
+        html { <a href="http:} $env(SCRIPT_NAME)
+        html / $sessionId {/query.egw/} $host + $setNo 
+        html {">Query</a>: }
         set op {}
         for {set i 1} {$i <= 3} {incr i} {
             if {[string length $hist($setNo,form,entry$i)] > 0} {
@@ -1009,4 +1014,4 @@ proc maintenance {} {
     html {Last modified 3. january 1996. <br>}
     html {<em> This and the following pages are under construction and }
     html {will continue to be so until the end of January 1996.</em>}
-}
\ No newline at end of file
+}