projects
/
egate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Readable detailed presentation format as well as raw format.
[egate.git]
/
www
/
showfull.egw
diff --git
a/www/showfull.egw
b/www/showfull.egw
index
c2d11ce
..
efee05e
100644
(file)
--- a/
www/showfull.egw
+++ b/
www/showfull.egw
@@
-1,8
+1,8
@@
<html>
{
<html>
{
-# $Id: showfull.egw,v 1.6 1995/11/08 16:14:34 adam Exp $
+# $Id: showfull.egw,v 1.7 1995/11/09 15:24:37 adam Exp $
-proc buttons {setNo no} {
+proc buttons {setNo no format} {
global sessionId
global env
global hist
global sessionId
global env
global hist
@@
-10,17
+10,26
@@
proc buttons {setNo no} {
html "<p>\n"
if {$no < [z39.$setNo resultCount]} {
html {<a href="http:} $env(SCRIPT_NAME)
html "<p>\n"
if {$no < [z39.$setNo resultCount]} {
html {<a href="http:} $env(SCRIPT_NAME)
- html / $sessionId {/showfull.egw/} $setNo + [expr $no + 1]
- html {"> Next </a>} "| \n"
+ html / $sessionId {/showfull.egw/} $setNo + [expr $no + 1] + $format
+ html {"> Next record </a>} "| \n"
}
if {$no > 1} {
html {<a href="http:} $env(SCRIPT_NAME)
}
if {$no > 1} {
html {<a href="http:} $env(SCRIPT_NAME)
- html / $sessionId {/showfull.egw/} $setNo + [expr $no - 1]
- html {"> Prev </a>} "| \n"
+ html / $sessionId {/showfull.egw/} $setNo + [expr $no - 1] + $format
+ html {"> Previous record </a>} "| \n"
}
}
+
+ html {<a href="http:} $env(SCRIPT_NAME)
+ html / $sessionId {/showfull.egw/} $setNo + $no +
+ if {$format == "full"} {
+ html raw {">Raw format</a>} "| \n"
+ } else {
+ html full {">Full format</a>} "| \n"
+ }
+
html {<a href="http:} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + 1
html {<a href="http:} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + 1
- html + [expr $hist($setNo,maxPresent) - 1]
+ html + $hist($setNo,maxPresent)
html {"> Result </a>} "| \n"
html {<a href="http:} $env(SCRIPT_NAME)
html {"> Result </a>} "| \n"
html {<a href="http:} $env(SCRIPT_NAME)
@@
-28,6
+37,7
@@
proc buttons {setNo no} {
html {<a href="http:} $env(SCRIPT_NAME)
html / $sessionId {/query.egw/} $hist($setNo,host) + $setNo
html {"> New query </a>} "<p>\n"
html {<a href="http:} $env(SCRIPT_NAME)
html / $sessionId {/query.egw/} $hist($setNo,host) + $setNo
html {"> New query </a>} "<p>\n"
+
}
if {[info commands saveState] == ""} {
}
if {[info commands saveState] == ""} {
@@
-42,6
+52,7
@@
proc buttons {setNo no} {
set sno [lindex $sessionParms 0]
set no [lindex $sessionParms 1]
set sno [lindex $sessionParms 0]
set no [lindex $sessionParms 1]
+ set format [lindex $sessionParms 2]
set setNo $sno
set setNo $sno
@@
-51,11
+62,10
@@
proc buttons {setNo no} {
set total [z39.$setNo resultCount]
html "<h2>Record \#$no out of $total </h2><br>\n"
set total [z39.$setNo resultCount]
html "<h2>Record \#$no out of $total </h2><br>\n"
- buttons $setNo $no
-
- z39present $setNo $no $no display-full
+ buttons $setNo $no $format
- buttons $setNo $no
+ eval {z39present $setNo $no $no display-$format}
+ buttons $setNo $no $format
}
</body>
</html>
}
</body>
</html>