1 # IR toolkit for tcl/tk
3 # See the file LICENSE for details.
4 # Sebastian Hammer, Adam Dickmeiss
7 # Revision 1.2 1995-06-13 14:39:06 adam
8 # Fix: if {$var != ""} doesn't work if var is a large numerical!
9 # Highlight when line format is used.
11 # Revision 1.1 1995/06/12 15:18:10 adam
12 # Work on presentation formats. These are used in the main window as well
17 proc display-line {sno no w hflag} {
18 set type [z39.$sno type $no]
20 $w tag bind r$no <Any-Enter> \
21 [list $w tag configure r$no -background gray80]
22 $w tag bind r$no <Any-Leave> \
23 [list $w tag configure r$no -background {}]
29 set nostr [format "%5d " $no]
30 insertWithTags $w $nostr marc-tag
32 set title [lindex [z39.$sno getMarc $no field 245 * a] 0]
33 set year [lindex [z39.$sno getMarc $no field 260 * c] 0]
34 insertWithTags $w "$title - $year\n" marc-data
36 } elseif {$type == "SD"} {
37 set err [lindex [z39.$sno diag $no] 1]
38 set add [lindex [z39.$sno diag $no] 2]
42 $w insert end "Error ${err}${add}\n"
43 } elseif {$type == ""} {