X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=www%2Fz39util.tcl;h=59131ff122de2d5b9cb69a7cb7e32713289f314b;hb=a124021540d0bb0854668f509b28921b771c70fd;hp=1d78f644c3ff8beea814e3dc0fa2a1dd534a4029;hpb=da4f027b1e7c0bf90efe6782a326448af164cd37;p=egate.git diff --git a/www/z39util.tcl b/www/z39util.tcl index 1d78f64..59131ff 100644 --- a/www/z39util.tcl +++ b/www/z39util.tcl @@ -1,5 +1,5 @@ # -# $Id: z39util.tcl,v 1.28 1996/01/29 17:31:48 adam Exp $ +# $Id: z39util.tcl,v 1.30 1996/02/12 13:39:41 adam Exp $ # proc saveState {} { uplevel #0 { @@ -104,7 +104,7 @@ 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 @@ -140,12 +140,22 @@ proc display-brief {zset no tno} { if {$nope} { set v [join $cover ""] if {[string length $v] > 40} { + set nope 0 html [string range $v 0 38] "..." - } else { + } 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" } @@ -601,7 +611,7 @@ proc display-scan {setNo scanNo tno} { set hist($setNo,[expr $scanNo + 1],scanTerm) $t } } - html {} + html {
} html {} \n @@ -1029,10 +1039,10 @@ proc z39history {} { html "

History


\n" if {$html3} { html {
Scan term} html {Hits} html {
} - html {} "\n" } else { html {
} "\n"
Target} - html {Database} - html {Hits} - html {Query} + html {Target} + html {Database} + html {Hits} + html {Query} html {