3 # $Id: showfull.egw,v 1.21 1996/03/11 17:40:48 adam Exp $
5 proc buttons {setNo tno no format count host after} {
14 html {<a href="http:} $env(SCRIPT_NAME)
15 html / $sessionId {/showfull.egw/} $setNo + $tno +
16 html [expr $no + 1] + $format
18 html {"><img src="/egwgif/button-next-record.gif" }
19 html {alt="Next Record" border=0></a>}
21 html {">Next</a>} " | \n"
25 html {<a href="http:} $env(SCRIPT_NAME)
26 html / $sessionId {/showfull.egw/} $setNo + $tno +
27 html [expr $no - 1] + $format
29 html {"><img src="/egwgif/button-previous-record.gif" }
30 html {alt="Previous Record" border=0></a>}
32 html {">Previous</a>} " | \n"
36 html {<a href="http:} $env(SCRIPT_NAME)
37 html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
38 if {$format == "full"} {
41 html {"><img src="/egwgif/button-raw-marc.gif" }
42 html {alt="Raw Format" border=0></a>}
44 html {">Raw Format</a>} " | \n"
49 html {"><img src="/egwgif/button-full-format.gif" }
50 html {alt="Full Format" border=0></a>}
52 html {">Full Format</a>} " | \n"
56 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
58 html {/msearch.egw/} $setNo
60 html {/search.egw/} $setNo + $tno
62 html + 1 + $hist($setNo,maxPresent)
64 html {"><img src="/egwgif/button-result-set.gif" }
65 html {alt="Result Set" border=0></a>}
67 html {">Result Set</a>} " | \n"
70 button-new-query 1 $setNo
75 if {[info commands saveState] == ""} {
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