3 # $Id: showfull.egw,v 1.22 1996/03/12 16:30:28 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>}
68 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
70 html {/msearch.egw/} $setNo
72 html {/search.egw/} $setNo + $tno
74 html + 1 + $hist($setNo,maxPresent)
76 html {"><img src="/egwgif/button-result-set.gif" }
77 html {alt="Result Set" border=0></a>}
79 html {">Result Set</a>}
82 button-new-query 1 $setNo
87 if {[info commands saveState] == ""} {
94 set sno [lindex $sessionParms 0]
95 set tno [lindex $sessionParms 1]
96 set no [lindex $sessionParms 2]
97 set format [lindex $sessionParms 3]
102 set host $hist($setNo,$tno,host)
104 html "<head><title> WWW/Z39.50 Gateway Record " [lindex $targets($host) 0]
106 html "</head><body>\n"
108 if {[z39search $setNo 0 $tno F] != "1"} {
112 set count [$zz.$setNo resultCount]
115 buttons $setNo $tno $no $format $count $host 0
117 html "<h3>Record \#$no out of $count in " [lindex $targets($host) 0]
120 eval {z39present $setNo $tno $no $no display-$format F}
122 buttons $setNo $tno $no $format $count $host 1