X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=www%2Fshowfull.egw;h=0e0c228159939c3e0408233cf83cb6348df151f0;hb=6315a552d51ac08b60d25d8500da5574a83ba530;hp=04f29ce2acaa533f302aa94abfe34274aa8de577;hpb=94e0e8ff10cdb5142f983cd76156310461f9eb89;p=egate.git
diff --git a/www/showfull.egw b/www/showfull.egw
index 04f29ce..0e0c228 100644
--- a/www/showfull.egw
+++ b/www/showfull.egw
@@ -1,36 +1,19 @@
{
-# $Id: showfull.egw,v 1.3 1995/11/06 17:44:21 adam Exp $
+# $Id: showfull.egw,v 1.5 1995/11/08 12:42:17 adam Exp $
- if {[info commands saveState] == ""} {
- source z39util.tcl
- }
-
- html "
WWW/Z39.50 Gateway Record " $host " \n"
- html "\n"
-
- global setNo
+proc buttons {setNo no} {
+ global sessionId
+ global env
global hist
- set sno [lindex $sessionParms 0]
- set no [lindex $sessionParms 1]
-
- set setNo $sno
-
- if {[z39search $setNo 0] != "1"} {
- return
- }
- set total [z39.$setNo resultCount]
- html "Record \#$no out of $total
\n"
-}
-
-{
+ html "\n"
if {$no < [z39.$setNo resultCount]} {
html { Next } "| \n"
}
- if {$no > 0} {
+ if {$no > 1} {
html { Prev } "| \n"
@@ -43,36 +26,37 @@
html { New target } " | \n"
html { New query }
+ html / $sessionId {/query.egw/} $hist($setNo,host) + $setNo
+ html {"> New query } "
\n"
}
-{
- z39present $setNo $no $no display-full
-# display-full z39.$sno $no
-}
-
-{
- if {$no < [z39.$setNo resultCount]} {
- html { Next } "| \n"
+ if {[info commands saveState] == ""} {
+ source z39util.tcl
}
- if {$no > 0} {
- html { Prev } "| \n"
+
+ html " WWW/Z39.50 Gateway Record " $host " \n"
+ html "\n"
+
+ global setNo
+ global hist
+
+ set sno [lindex $sessionParms 0]
+ set no [lindex $sessionParms 1]
+
+ set setNo $sno
+
+ if {[z39search $setNo 0] != "1"} {
+ return
}
- html { Result } "| \n"
-
- html { New target } " | \n"
- html { New query }
-}
+ set total [z39.$setNo resultCount]
+ html "Record \#$no out of $total
\n"
+
+ buttons $setNo $no
+ z39present $setNo $no $no display-full
+
+ buttons $setNo $no
+}