3 # $Id: showfull.egw,v 1.24 1996/03/14 11:50:49 adam Exp $
5 proc buttons {setNo tno no format count host after} {
17 html {<a href="http:} $env(SCRIPT_NAME)
18 html / $sessionId {/showfull.egw/} $setNo + $tno +
19 html [expr $no + 1] + $format
21 html {"><img src="/egwgif/button-next-record.gif" }
22 html {alt="Next Record" border=0></a>}
31 html {<a href="http:} $env(SCRIPT_NAME)
32 html / $sessionId {/showfull.egw/} $setNo + $tno +
33 html [expr $no - 1] + $format
35 html {"><img src="/egwgif/button-previous-record.gif" }
36 html {alt="Previous Record" border=0></a>}
45 html {<a href="http:} $env(SCRIPT_NAME)
46 html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
47 if {$format == "full"} {
50 html {"><img src="/egwgif/button-raw-marc.gif" }
51 html {alt="Raw Format" border=0></a>}
53 html {">Raw Format</a>}
58 html {"><img src="/egwgif/button-full-format.gif" }
59 html {alt="Full Format" border=0></a>}
61 html {">Full Format</a>}
65 button-result-set $setNo $tno
66 button-new-query $setNo
71 if {[info commands saveState] == ""} {
73 if {![info exists debug]} {
82 set sno [lindex $sessionParms 0]
83 set tno [lindex $sessionParms 1]
84 set no [lindex $sessionParms 2]
85 set format [lindex $sessionParms 3]
90 set host $hist($setNo,$tno,host)
92 html "<head><title> WWW/Z39.50 Gateway Record " [lindex $targets($host) 0]
94 html "</head><body>\n"
96 if {[z39search $setNo 0 $tno F] != "1"} {
100 set count [$zz.$setNo resultCount]
103 buttons $setNo $tno $no $format $count $host 0
105 html "<h3>Record \#$no out of $count in " [lindex $targets($host) 0]
108 eval {z39present $setNo $tno $no $no display-$format F}
110 buttons $setNo $tno $no $format $count $host 1