#
-# $Id: z39util.tcl,v 1.49 1997/11/19 13:29:13 adam Exp $
+# $Id: z39util.tcl,v 1.50 2001/02/26 14:32:36 adam Exp $
#
proc saveState {} {
uplevel #0 {
set rtype [$zset recordType $no]
switch $rtype {
SUTRS {
- html { <a href="http:} $env(SCRIPT_NAME) / $sessionId
+ html { <a href="} $env(SCRIPT_NAME) / $sessionId
html {/showfull.egw/} $setNo + $targetNo + $no + full {">}
html [join [$zset getSutrs $no]]
html "</a><br>\n"
set year [$zset getMarc $no field 260 * c]
set score [$zset getMarc $no field 999 * r]
} dispError ] } {
- html { <a href="http:} $env(SCRIPT_NAME) /
+ html { <a href="} $env(SCRIPT_NAME) /
html $sessionId {/showfull.egw/} $setNo + $targetNo + $no + full {">}
set p 0
foreach a $author {
html "; Score " $nscore
}
} else {
- html { <a href="http:} $env(SCRIPT_NAME) /
+ html { <a href="} $env(SCRIPT_NAME) /
html $sessionId {/showfull.egw/} $setNo + $targetNo + $no + full {">}
html {No Title}
html {</a> }
set rtype [$zset recordType $no]
switch $rtype {
SUTRS {
- html { <a href="http:} $env(SCRIPT_NAME) / $sessionId
+ html { <a href="} $env(SCRIPT_NAME) / $sessionId
html {/showfull.egw/} $setNo + $targetNo + $no + full {">}
html [string range [join [$zset getSutrs $no]] 0 70]
html "</a><br>\n"
set publisher [$zset getMarc $no field 260 * b]
set year [$zset getMarc $no field 260 * c]
} dispError ] } {
- html { <a href="http:} $env(SCRIPT_NAME) /
+ html { <a href="} $env(SCRIPT_NAME) /
html $sessionId {/showfull.egw/} $setNo + $targetNo + $no + full {">}
set p 0
foreach a $author {
}
html {</a> }
} else {
- html { <a href="http:} $env(SCRIPT_NAME) /
+ html { <a href="} $env(SCRIPT_NAME) /
html $sessionId {/showfull.egw/} $setNo + $targetNo + $no + full {">}
html {No Title}
html {</a> }
html {<td align=left>}
if {0} {
regsub -all {\ } [lindex [$zs scanLine $i] 1] + tterm
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId / $scriptQuery {;/} $setNo + $hist($setNo,host) +
html $hist($setNo,scan) + $tterm {">}
} else {
regsub -all {\ } [lindex [$zs scanLine $i] 1] + tterm
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $tno +
html hyper + $tterm {">}
}
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $targetNo +
html [expr $setMax + 1] + [expr $setMax + $hist($setNo,maxPresent)]
if {$useIcons} {
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $targetNo
html + [expr $startPos - $hist($setNo,maxPresent)]
html + [expr $startPos - 1]
set addinfo [lindex $status 3]
html "Error</h3>\n<dd>NSD$code: $msg: $addinfo"
} else {
- html {<dt><a href="http:} $env(SCRIPT_NAME)
+ html {<dt><a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $i + 1
html + $hist($setNo,maxPresent) {">}
html "<h3>" [lindex $targets($hist($setNo,$i,host)) 0] "</a>: "
html {<td align=right>}
}
if {[info exists hist($setNo,$i,hits)]} {
- html { <a href="http:} $env(SCRIPT_NAME)
+ html { <a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $i + 1
html + $hist($setNo,maxPresent)
html {">} $hist($setNo,$i,hits) {</a>}
} else {
html "<dd>\n"
}
- html { <a href="http:} $env(SCRIPT_NAME)
+ html { <a href="} $env(SCRIPT_NAME)
html / $sessionId / $scriptQuery {;/} $setNo + $host
if {$html3} {
html {">}
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/tform.egw}
if {$useIcons} {
html {"><img src="/egwgif/button-define-target.gif" }
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId / $scriptTarget
if {$useIcons} {
html {"><img src="/egwgif/button-new-target.gif" }
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/history.egw;}
catch { html "/" $nextSetNo}
if {$useIcons} {
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId / $scriptQuery {;/} $setNo + $hist($setNo,0,host) {">}
if {$useIcons} {
if {!$useIcons} {
html "\n | "
}
- html {<a href="http:} $env(SCRIPT_NAME) / $sessionId
+ html {<a href="} $env(SCRIPT_NAME) / $sessionId
if {$tno > 0} {
html {/msearch.egw/} $setNo
} else {
html "\n | "
}
set targetNo 0
- html {<a href="http:} $env(SCRIPT_NAME)
+ html {<a href="} $env(SCRIPT_NAME)
html / $sessionId {/search.egw/} $setNo + $targetNo + {scan} {">}
if {$useIcons} {
html {<img src="/egwgif/button-scan-window.gif" }