3 # $Id: showfull.egw,v 1.15 1996/01/03 15:19:47 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="/gif/button-next-record.gif" }
19 html {alt="Next Record" border=0></a>}
21 html {">Next Record</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="/gif/button-previous-record.gif" }
30 html {alt="Previous Record" border=0></a>}
32 html {">Previous Record</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="/gif/button-raw-marc.gif" }
42 html {alt="Raw Format" border=0></a>}
44 html {">Raw Format</a>} " | \n"
49 html {"><img src="/gif/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
63 html + $hist($setNo,maxPresent)
65 html {"><img src="/gif/button-result-set.gif" }
66 html {alt="Result Set" border=0></a>}
68 html {">Result Set</a>} " | \n"
70 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
78 html {"><img src="/gif/button-new-query.gif" }
79 html {alt="New Query" border=0></a>}
81 html {">New Query</a>} " | \n"
83 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
90 html {"><img src="/gif/button-new-target.gif" }
91 html {alt="New Target" border=0></a>}
93 html {">New Target</a>}
98 if {[info commands saveState] == ""} {
102 html "<head><title> WWW/Z39.50 Gateway Record " $host " </title>\n"
103 html "</head><body>\n"
108 set sno [lindex $sessionParms 0]
109 set tno [lindex $sessionParms 1]
110 set no [lindex $sessionParms 2]
111 set format [lindex $sessionParms 3]
117 set host $hist($setNo,$tno,host)
120 set host $hist($setNo,host)
123 if {[z39search $setNo 0 $tno F] != "1"} {
127 set count [$zz.$setNo resultCount]
129 buttons $setNo $tno $no $format $count $host 0
131 html "<h3>Record \#$no out of $count </h3><br>\n"
133 eval {z39present $setNo $tno $no $no display-$format F}
134 buttons $setNo $tno $no $format $count $host 1