# Sebastian Hammer, Adam Dickmeiss
#
# $Log: client.tcl,v $
-# Revision 1.72 1995-10-16 17:00:52 adam
+# Revision 1.73 1995-10-17 10:58:06 adam
+# More work on presentation formats.
+#
+# Revision 1.72 1995/10/16 17:00:52 adam
# New setting: elementSetNames.
# Various client improvements. Medium presentation format looks better.
#
global RPNCheck
global CCLCheck
global ResultSetCheck
-
- set wno [lindex $profile($target) 12]
- set w .setup-${wno}
+
+ if {1} {
+ set wno [lindex $profile($target) 12]
+ set w .setup-${wno}
+ } else {
+ set b 0
+ while {[winfo exists .setup-$b]} {
+ incr b
+ }
+ set w .setup-$b
+ }
toplevelG $w
.data.record tag configure marc-data -foreground black
.data.record tag configure marc-head \
-font -Adobe-Times-Medium-R-Normal-*-140-* \
- -foreground white -background black
+ -foreground brown -relief raised -borderwidth 1
+.data.record tag configure marc-small-head -foreground brown
.data.record tag configure marc-pref \
-font -Adobe-Times-Medium-R-Normal-*-140-* \
-foreground blue
# Sebastian Hammer, Adam Dickmeiss
#
# $Log: line.tcl,v $
-# Revision 1.7 1995-09-20 11:37:06 adam
+# Revision 1.8 1995-10-17 10:58:08 adam
+# More work on presentation formats.
+#
+# Revision 1.7 1995/09/20 11:37:06 adam
# Work on GRS.
#
# Revision 1.6 1995/06/29 12:34:20 adam
}
if {$hflag} {
set nostr [format "%5d " $no]
- insertWithTags $w $nostr marc-tag
+ insertWithTags $w $nostr marc-small-head
}
if {$type == "DB"} {
set rtype [z39.$sno recordType $no]
if {[catch {
set title [lindex [z39.$sno getMarc $no field 245 * a] 0]
set year [lindex [z39.$sno getMarc $no field 260 * c] 0]
- insertWithTags $w "$title - $year\n" marc-data
+ insertWithTags $w "$title - " marc-text
+ insertWithTags $w "$year\n" marc-it
}]} {
insertWithTags $w "Unknown record type: $rtype\n" marc-id
}
# Sebastian Hammer, Adam Dickmeiss
#
# $Log: medium.tcl,v $
-# Revision 1.7 1995-10-16 17:01:03 adam
+# Revision 1.8 1995-10-17 10:58:09 adam
+# More work on presentation formats.
+#
+# Revision 1.7 1995/10/16 17:01:03 adam
# Medium presentation format looks better.
#
# Revision 1.6 1995/09/20 11:37:06 adam
proc display-grs-medium {w r i} {
foreach e $r {
for {set j 0} {$j < $i} {incr j} {
- insertWithTags $w " " {}
+ insertWithTags $w " " marc-tag
}
- insertWithTags $w "([lindex $e 0]:[lindex $e 2])" marc-tag
+ insertWithTags $w "([lindex $e 0]:[lindex $e 2]) " marc-tag
if {[lindex $e 3] == "string"} {
- insertWithTags $w [lindex $e 4] {}
- insertWithTags $w "\n" {}
+ insertWithTags $w [lindex $e 4] marc-text
+ insertWithTags $w "\n" marc-text
} elseif {[lindex $e 3] == "subtree"} {
- insertWithTags $w "\n" {}
+ insertWithTags $w "\n" marc-text
display-grs-medium $w [lindex $e 4] [expr $i+1]
} else {
insertWithTags [lindex $e 4] {}
proc display-medium {sno no w hflag} {
if {$hflag} {
- insertWithTags $w "\n$no\n" marc-data
+ insertWithTags $w " $no " marc-head
+ insertWithTags $w "\n"
} else {
$w delete 0.0 end
}
# Sebastian Hammer, Adam Dickmeiss
#
# $Log: raw.tcl,v $
-# Revision 1.7 1995-10-12 14:46:58 adam
+# Revision 1.8 1995-10-17 10:58:09 adam
+# More work on presentation formats.
+#
+# Revision 1.7 1995/10/12 14:46:58 adam
# The record position in the raw format is much more visible.
#
# Revision 1.6 1995/09/20 11:37:07 adam
proc display-raw {sno no w hflag} {
if {$hflag} {
- insertWithTags $w "$no\n" marc-head
+ insertWithTags $w " $no " marc-head
+ insertWithTags $w "\n"
} else {
$w delete 0.0 end
}