3 # $Id: showfull.egw,v 1.14 1996/01/02 10:52:29 adam Exp $
5 proc buttons {setNo tno no format count host after} {
12 if {!$useIcons && $after && $no < $count} {
14 html {<a href="http:} $env(SCRIPT_NAME)
15 html / $sessionId {/showfull.egw/} $setNo + $tno +
16 html [expr $no + 1] + $format
17 html {"><img src="/gif/darrw.gif"></a>}
21 html {<img src="/gif/button-egw.gif" alt="Europagate" border=0>}
24 html {<a href="http:} $env(SCRIPT_NAME)
25 html / $sessionId {/showfull.egw/} $setNo + $tno +
26 html [expr $no + 1] + $format
28 html {"><img src="/gif/button-next-record.gif" }
29 html {alt="Next Record" border=0></a>}
31 html {">Next Record</a>} " | \n"
35 html {<a href="http:} $env(SCRIPT_NAME)
36 html / $sessionId {/showfull.egw/} $setNo + $tno +
37 html [expr $no - 1] + $format
39 html {"><img src="/gif/button-previous-record.gif" }
40 html {alt="Previous Record" border=0></a>}
42 html {">Previous Record</a>} " | \n"
46 html {<a href="http:} $env(SCRIPT_NAME)
47 html / $sessionId {/showfull.egw/} $setNo + $tno + $no +
48 if {$format == "full"} {
51 html {"><img src="/gif/button-raw-marc.gif" }
52 html {alt="Raw Format" border=0></a>}
54 html {">Raw Format</a>} " | \n"
59 html {"><img src="/gif/button-full-format.gif" }
60 html {alt="Full Format" border=0></a>}
62 html {">Full Format</a>} " | \n"
66 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
73 html + $hist($setNo,maxPresent)
75 html {"><img src="/gif/button-result-set.gif" }
76 html {alt="Result Set" border=0></a>}
78 html {">Result Set</a>} " | \n"
80 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
88 html {"><img src="/gif/button-new-query.gif" }
89 html {alt="New Query" border=0></a>}
91 html {">New Query</a>} " | \n"
93 html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
100 html {"><img src="/gif/button-new-target.gif" }
101 html {alt="New Target" border=0></a>}
103 html {">New Target</a>}
106 if {!$useIcons && !$after && $no > 1} {
108 html {<a href="http:} $env(SCRIPT_NAME)
109 html / $sessionId {/showfull.egw/} $setNo + $tno +
110 html [expr $no - 1] + $format
111 html {"><img src="/gif/uarrw.gif"></a>}
112 html "</center><p>\n"
116 if {[info commands saveState] == ""} {
120 html "<head><title> WWW/Z39.50 Gateway Record " $host " </title>\n"
121 html "</head><body>\n"
126 set sno [lindex $sessionParms 0]
127 set tno [lindex $sessionParms 1]
128 set no [lindex $sessionParms 2]
129 set format [lindex $sessionParms 3]
135 set host $hist($setNo,$tno,host)
138 set host $hist($setNo,host)
141 if {[z39search $setNo 0 $tno F] != "1"} {
145 set count [$zz.$setNo resultCount]
147 buttons $setNo $tno $no $format $count $host 0
149 html "<h3>Record \#$no out of $count </h3><br>\n"
151 eval {z39present $setNo $tno $no $no display-$format F}
152 buttons $setNo $tno $no $format $count $host 1