X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fz39util.tcl;h=ffdb837000f422b564e1df54732ee8b2c1c59c28;hb=5e8a1c1d1f14d915a82d9b8df5b09ba75bb201ec;hp=7903fd4773e40b20457945f2129371a2cdc866e1;hpb=84081f9782ee28f9236b0974891f1d6b865992be;p=egate.git
diff --git a/www/z39util.tcl b/www/z39util.tcl
index 7903fd4..ffdb837 100644
--- a/www/z39util.tcl
+++ b/www/z39util.tcl
@@ -1,5 +1,5 @@
#
-# $Id: z39util.tcl,v 1.25 1996/01/24 16:59:29 adam Exp $
+# $Id: z39util.tcl,v 1.32 1996/02/21 14:58:35 adam Exp $
#
proc saveState {} {
uplevel #0 {
@@ -104,7 +104,9 @@ proc display-brief {zset no tno} {
set location [$zset getMarc $no field 260 * a]
set publisher [$zset getMarc $no field 260 * b]
set year [$zset getMarc $no field 260 * c]
- } ] } {
+ } dispError ] } {
+ html { }
set p 0
foreach a $author {
if {$p} {
@@ -130,32 +132,30 @@ proc display-brief {zset no tno} {
if {$p} {
html ": "
}
- html { }
set nope 1
foreach v $title {
html $v
set nope 0
}
if {$nope} {
- html {No title}
- }
- html { }
- foreach v $cover {
- html $v
- }
- if {0} {
- html {
}
- foreach v $location {
- html " $v"
- }
- foreach v $publisher {
- html " $v"
- }
- foreach v $year {
- html " $v"
+ set v [join $cover ""]
+ if {[string length $v] > 40} {
+ set nope 0
+ html [string range $v 0 38] "..."
+ } elseif {[string length $v] > 0} {
+ set nope 0
+ html $v
+ } else {
+ html "No Title"
}
- }
+ }
+ html { }
+ } else {
+ html { }
+ html {No Title}
+ html { }
+ html "Error: " $dispError "\n"
}
html "
\n"
}
@@ -401,7 +401,7 @@ proc display-full {zset no tno} {
if {"x$sp" == "x"} {
set sp $url
}
- html {
Scan term} + html { | Hits} + html { |
}
+ if {0} {
+ regsub -all {\ } [lindex [$zs scanLine $i] 1] + tterm
+ html {}
+ } else {
+ regsub -all {\ } [lindex [$zs scanLine $i] 1] + tterm
+ html {}
+ }
html [lindex [$zs scanLine $i] 1]
- html {: }
+ html {}
+ html {}
html [lindex [$zs scanLine $i] 2]
- html " | \n" + html { |