# Sebastian Hammer, Adam Dickmeiss
#
# $Log: client.tcl,v $
-# Revision 1.40 1995-06-14 13:37:17 adam
+# Revision 1.41 1995-06-14 15:07:59 adam
+# Bug fix in cascade-target-list. Uses yaz-version.h.
+#
+# Revision 1.40 1995/06/14 13:37:17 adam
# Setting recordType implemented.
# Setting implementationVersion implemented.
# Settings implementationId / implementationName edited.
show-status {Search} 1 0
}
-proc scan-focus {w} {
- set oldFocus [focus]
- bind $w <Leave> [list focus $oldFocus]
- focus $w.top.entry
-}
-
proc scan-request {} {
set w .scan-window
bind $w.top.list <Down> [list scan-down $attr]
}
wm title $w "Scan $title"
-# bind $w.top <Any-Enter> [list scan-focus $w]
z39 callback [list scan-response $attr 0 35]
z39.scan numberOfTermsRequested 5
proc protocol-setup-delete {target} {
global profile
- set a [alert "Are you you want to delete the target definition $target ?"]
+ set a [alert "Are you sure you want to delete the target \
+definition $target ?"]
if {$a} {
set wno [lindex $profile($target) 12]
set w .setup-${wno}
set wno [lindex $profile($target) 12]
set w .setup-${wno}
-
- foreach i [lsort -decreasing \
- [$w.top.databases.list curselection]] {
- $w.top.databases.list delete $i
+ set l {}
+ foreach i [$w.top.databases.list curselection] {
+ set b [$w.top.databases.list get $i]
+ set l "$l $b"
+ }
+ set a [alert "Are you sure you want to remove the database(s)${l}?"]
+ if {$a} {
+ foreach i [lsort -decreasing \
+ [$w.top.databases.list curselection]] {
+ $w.top.databases.list delete $i
+ }
}
}
.top.target.m.clist delete 0 last
foreach n [array names profile] {
if {$n != "Default"} {
- set nl [string tolower $n]
+ set nl [lindex $profile($n) 12]
if {[llength [lindex $profile($n) 7]] > 1} {
.top.target.m.clist add cascade -label $n \
-menu .top.target.m.clist.$nl
foreach x $queryInfoTmp {
$w.top.index.list insert end [lindex $x 0]
}
- # Ok-cancel
+ # Bottom
bottom-buttons $w [list \
{Ok} [list query-setup-action $queryNo] \
{Add index} [list query-add-index $queryNo] \
pack .bot.a.status .bot.a.set .bot.a.message \
-side left -padx 2 -pady 2
-#bind . <Any-Enter> {focus .lines.0.e}
-
ir z39
-#.top.options.m.formats invoke $displayFormat
-
show-logo 1
# Setup file
set {profile(CNIDR)} {CNIDR Kudzu.cnidr.org 5556 {} 16384 8192 tcpip {Book ERIC} 1 {} {} z39v2 1}
set {profile(Penn)} {{Penn State's Library} 128.118.88.200 210 {} 16384 8192 tcpip CATALOG 1 {} {} z39v2 2}
-set {profile(A new server)} {{A completely new server} dtbsun.dtv.dk 9999 {} 16384 8192 tcpip dummy {} {} {} z39v2 20}
+set {profile(A new server)} {{A completely new server} dtbsun.dtv.dk 9999 {} 16384 8192 tcpip {aaa aaaa} {} {} {} z39v2 20}
set {profile(ztest)} {{test server} localhost 9999 {} 16384 4096 tcpip dummy 1 {} {} z39v2 3}
set {profile(Nsrtest)} {{NSR in house.} localhost 4500 {} 16384 8192 mosi x 1 {} {} sr 4}
set {profile(Default)} {{} {} {210} {} 16384 8192 tcpip {} {} {} {} {} 22}
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ir-tclp.h,v $
- * Revision 1.8 1995-06-14 13:37:18 adam
+ * Revision 1.9 1995-06-14 15:08:01 adam
+ * Bug fix in cascade-target-list. Uses yaz-version.h.
+ *
+ * Revision 1.8 1995/06/14 13:37:18 adam
* Setting recordType implemented.
* Setting implementationVersion implemented.
* Settings implementationId / implementationName edited.
#include <xmosi.h>
#endif
+#include <yaz-version.h>
#include <odr.h>
#include <proto.h>
#include <oid.h>