X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=inline;f=www%2Fsearch.egw;h=a249f6cdaeb40274b0c3cf81a554d5989f75db83;hb=a6e5ecf2a6d6dedf266c5f9d6bc2447a528b199e;hp=26fce8de8c2143e6af4747fb040db09807c841d5;hpb=cbf0ef7549f996f4d96f41c6dafa76dc17dd7782;p=egate.git
diff --git a/www/search.egw b/www/search.egw
index 26fce8d..a249f6c 100644
--- a/www/search.egw
+++ b/www/search.egw
@@ -1,254 +1,172 @@
{
-# $Id: search.egw,v 1.5 1995/10/31 16:56:24 adam Exp $
+# $Id: search.egw,v 1.17 1995/11/14 16:01:51 adam Exp $
-proc search-response {} {
- global sessionWait
-
- set status [z39.1 responseStatus]
- if {[lindex $status 0] == "NSD"} {
- z39.1 nextResultSetPosition 0
- set code [lindex $status 1]
- set msg [lindex $status 2]
- set addinfo [lindex $status 3]
- htmlr {Error} $code {: } $msg {: } $addinfo {
}
- set sessionWait -2
- } else {
- set sessionWait 1
+proc buttons {setNo setMax startPos after} {
+ global sessionId
+ global env
+ global hist
+
+ if {$after && $setMax < [z39.$setNo resultCount]} {
+ html "
\n" + html "
\n" + if {$setMax < [z39.$setNo resultCount]} { + html {Next records} " | \n" + } + if {$startPos != "" && $startPos != "1"} { + html {Previous records} " | \n" + } + html {New query} " | \n" + + html {New target} "
\n" + + if {!$after && $startPos != "" && $startPos != "1"} { + html "
\n"
}
-}
-
-proc ok-response {} {
- global sessionWait
- set sessionWait 1
-}
-proc fail-response {} {
- global sessionWait
- set sessionWait -1
}
-proc display-brief {zset no} {
- global env
- global sessionId
-
- set type [$zset type $no]
- if {$type == "SD"} {
- set err [lindex [$zset diag $no] 1]
- set add [lindex [$zset diag $no] 2]
- if {$add != {}} {
- set add " :${add}"
- }
- htmlr "${no} Error ${err}${add}
"
- return
+ if {[info commands saveState] == ""} {
+ source z39util.tcl
}
- if {$type != "DB"} {
- return
- }
- html "${no} "
- set rtype [$zset recordType $no]
- if {$rtype == "SUTRS"} {
- html [join [$zset getSutrs $no]]
- htmlr {
}
- return
- }
- if {![catch {
- set title [lindex [$zset getMarc $no field 245 * a] 0]
- set year [lindex [$zset getMarc $no field 260 * c] 0]
- } ] } {
- html { } $title {}
- html " ${year} "
- }
- htmlr {
}
-}
-
-proc display-full {zset no} {
- set type [$zset type $no]
- if {$type == "SD"} {
- set err [lindex [$zset diag $no] 1]
- set add [lindex [$zset diag $no] 2]
- if {$add != {}} {
- set add " :${add}"
+ global sessionWait
+ global nextSetNo
+ global setNo
+ global hist
+
+ set setNo [lindex $sessionParms 0]
+ if {[wform menu1] != ""} {
+ set hist($nextSetNo,idAuthentication) $hist($setNo,idAuthentication)
+ set hist($nextSetNo,host) $hist($setNo,host)
+ set setNo $nextSetNo
+ html "using host " $hist($setNo,host) "