<html>
{
-# $Id: showfull.egw,v 1.9 1995/11/10 14:47:32 adam Exp $
+# $Id: showfull.egw,v 1.10 1995/11/13 15:41:44 adam Exp $
-proc buttons {setNo tno no format count host} {
+proc buttons {setNo tno no format count host after} {
global sessionId
global env
global hist
+ if {$after && $no < $count} {
+ html "<p><center>\n"
+ html {<a href="http:} $env(SCRIPT_NAME)
+ html / $sessionId {/showfull.egw/} $setNo + $tno +
+ html [expr $no + 1] + $format
+ html {"><img src="/gif/darrw.gif"></a>}
+ html "</center>\n"
+ }
html "<p>\n"
if {$no < $count} {
html {<a href="http:} $env(SCRIPT_NAME)
}
html $setNo + 1
html + $hist($setNo,maxPresent)
- html {">Result</a>} " | \n"
+ html {">Result set</a>} " | \n"
html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
if {$tno > 0} {
- html {/mtargets.egw}
+ html {/mquery.egw/}
} else {
- html {/targets.egw}
+ html {/query.egw/}
}
- html {">New target</a>} " | \n"
+ html $host + $setNo
+ html {">New query</a>} " | \n"
html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
if {$tno > 0} {
- html {/mquery.egw/}
+ html {/mtargets.egw}
} else {
- html {/query.egw/}
+ html {/targets.egw}
}
- html $host + $setNo
- html {">New query</a>} "<p>\n"
+ html {">New target</a>} "<p>\n"
+ if {!$after && $no > 1} {
+ html "<p><center>\n"
+ html {<a href="http:} $env(SCRIPT_NAME)
+ html / $sessionId {/showfull.egw/} $setNo + $tno +
+ html [expr $no - 1] + $format
+ html {"><img src="/gif/uarrw.gif"></a>}
+ html "</center>\n"
+ }
}
if {[info commands saveState] == ""} {
set host $hist($setNo,$tno,host)
} else {
set zz z39
- set host $hist($setNo,$0,host)
+ set host $hist($setNo,host)
}
- if {[z39search $setNo 0 $tno] != "1"} {
+ if {[z39search $setNo 0 $tno F] != "1"} {
return
}
set count [$zz.$setNo resultCount]
html "<h2>Record \#$no out of $count </h2><br>\n"
- buttons $setNo $tno $no $format $count $host
+ buttons $setNo $tno $no $format $count $host 0
- eval {z39present $setNo $tno $no $no display-$format}
- buttons $setNo $tno $no $format $count $host
+ eval {z39present $setNo $tno $no $no display-$format F}
+ buttons $setNo $tno $no $format $count $host 1
}
</body>
</html>