X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=www%2Fquery.egw;h=74ad296851e55ec8458970dee32f9af055eedf9c;hb=8bafbc608e1ffba9ee87f4856e586dffa57901b8;hp=d2280abb6e57f6a1a2a809cf3564d6aee7526993;hpb=4938d0c2e8f4e1eec397c2bfbbc7e23fd150c369;p=egate.git diff --git a/www/query.egw b/www/query.egw index d2280ab..74ad296 100644 --- a/www/query.egw +++ b/www/query.egw @@ -1,13 +1,13 @@ - - WWW/Z39.50 Gateway Query Form - - { -# $Id: query.egw,v 1.35 1996/03/07 12:46:08 adam Exp $ +# $Id: query.egw,v 1.39 1996/03/14 11:50:47 adam Exp $ if {[info commands saveState] == ""} { source z39util.tcl + if {![info exists debug]} { + session-lost + egw_abort + } } proc fail-response {} { @@ -24,8 +24,10 @@ proc ok-response {} { global nextSetNo global hist - set host [lindex $sessionParms 0] - set initSet [lindex $sessionParms 1] + html { WWW/Z39.50 Gateway Query Form} + + set initSet [lindex $sessionParms 0] + set host [lindex $sessionParms 1] set scanLine [lindex $sessionParms 2] set scanTerm [lrange $sessionParms 3 end] @@ -95,20 +97,19 @@ proc ok-response {} { } set useIcons 1 - button-europagate - button-new-target 1 + button-main + button-new-target if {[lsearch [z390 options] scan] >= 0} { - button-scan-window 1 $setNo + button-scan-window $setNo } - button-view-history 0 + button-view-history html "

" [lindex $targets($host) 0] "


\n" html [lindex $targets($host) 4] "
\n" - set databases [lindex $targets($host) 1] - - if {$initSet == ""} { + set databases [splitDatabaseSpec $host] + if {$initSet == -1} { set databaseDefault [lindex $databases 0] set oSetNo 0 } else { @@ -140,7 +141,7 @@ proc ok-response {} { html [concat $databases] {"> All
} \n } } - html "Input your search criteria:
\n" + html "Fill-in this search form:
\n" set fields [lindex $targets($host) 2] for {set no 1} {$no < 4} {incr no} { html {} } @@ -206,12 +207,12 @@ proc ok-response {} { html "

\n" set useIcons 0 - button-europagate - button-new-target 1 + button-main + button-new-target if {[lsearch [z390 options] scan] >= 0} { - button-scan-window 1 $setNo + button-scan-window $setNo } - button-view-history 0 + button-view-history } {