X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fz39util.tcl;h=6860b16fe7369223907d0491cc285add3190a698;hb=cf6ead410b63297e714d9258f9ea593b1e127501;hp=7903fd4773e40b20457945f2129371a2cdc866e1;hpb=84081f9782ee28f9236b0974891f1d6b865992be;p=egate.git
diff --git a/www/z39util.tcl b/www/z39util.tcl
index 7903fd4..6860b16 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.26 1996/01/26 15:50:11 adam Exp $
#
proc saveState {} {
uplevel #0 {
@@ -105,6 +105,8 @@ proc display-brief {zset no tno} {
set publisher [$zset getMarc $no field 260 * b]
set year [$zset getMarc $no field 260 * c]
} ] } {
+ html { }
set p 0
foreach a $author {
if {$p} {
@@ -130,32 +132,20 @@ 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} {
+ html [string range $v 0 38] "..."
+ } else {
+ html $v
}
- }
+ }
+ html { }
}
html "
\n"
}
@@ -561,6 +551,7 @@ proc z39scan {setNo scanNo tno scanLines scanPos cache} {
$zz callback [list scan-response $zs]
+ egw_log debug "scan: ${scanAttr} ${scanTerm}"
set sessionWait 0
$zs scan "${scanAttr} ${scanTerm}"
@@ -610,16 +601,31 @@ proc display-scan {setNo scanNo tno} {
set hist($setNo,[expr $scanNo + 1],scanTerm) $t
}
}
+ 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 { |