3 # $Id: showfull.egw,v 1.9 1995/11/10 14:47:32 adam Exp $
5 proc buttons {setNo tno no format count host} {
12 html {<a href="http:} $env(SCRIPT_NAME)
13 html / $sessionId {/showfull.egw/} $setNo + $tno +
14 html [expr $no + 1] + $format
15 html {">Next record</a>} " | \n"
18 html {<a href="http:} $env(SCRIPT_NAME)
19 html / $sessionId {/showfull.egw/} $setNo + $tno +
20 html [expr $no - 1] + $format
21 html {">Previous record</a>} " | \n"
24 html {<a href="http:} $env(SCRIPT_NAME)
25 html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
26 if {$format == "full"} {
27 html raw {">Raw format</a>} " | \n"
29 html full {">Full format</a>} " | \n"
32 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
39 html + $hist($setNo,maxPresent)
40 html {">Result</a>} " | \n"
42 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
48 html {">New target</a>} " | \n"
50 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
57 html {">New query</a>} "<p>\n"
61 if {[info commands saveState] == ""} {
65 html "<head><title> WWW/Z39.50 Gateway Record " $host " </title>\n"
66 html "</head><body>\n"
71 set sno [lindex $sessionParms 0]
72 set tno [lindex $sessionParms 1]
73 set no [lindex $sessionParms 2]
74 set format [lindex $sessionParms 3]
80 set host $hist($setNo,$tno,host)
83 set host $hist($setNo,$0,host)
86 if {[z39search $setNo 0 $tno] != "1"} {
89 set count [$zz.$setNo resultCount]
90 html "<h2>Record \#$no out of $count </h2><br>\n"
92 buttons $setNo $tno $no $format $count $host
94 eval {z39present $setNo $tno $no $no display-$format}
95 buttons $setNo $tno $no $format $count $host