# this file must be UTF-8 encoded package query ####################################################################### # Macros whose values are set from within the server at runtime. These # are here only for reference and to set default values if required. ####################################################################### _quotedquery_ {} _freqmsg_ {} _resultline_ {} _thisfirst_ {} _thislast_ {} _nextfirst_ {} _nextlast_ {} _prevfirst_ {} _prevlast_ {} _searchhistorylist_ {} #_histvalue0_ to _histvalue19_ _advformlist_ {} _regformlist_ {} #_fqfselection_ {} ####################################################################### # icons ####################################################################### _queryresultsbar_ {
} _searchhistorybar_ { } # _iconnext_ and _iconprev_ are overridden in this package as we # don't want alt text here _iconnext_{} _iconnext_ [v=1] {} _iconprev_{} _iconprev_ [v=1] {} # the small squares for search history ## " " ## handmade ## mstds ## _httpiconmstdsqrof_ {_httpimg_/mstdsof.gif} _httpiconmstdsqron_ {_httpimg_/mstdson.gif} _widthmstdsqrx_ {13} _heightmstdsqrx_ {13} ####################################################################### # images ####################################################################### # _imagethispage_ set in nav_css/nav_ns4 macro files #the buttons for the search history entries # takes one arg - the entry number (0-num entries) _imagehistbutton_ {} ####################################################################### # scripts (and some macros for the scripts) ####################################################################### _pagescriptextra_ {_If_("_cgiargqt_" eq "1", _formpagescriptextra_, _selectpagescriptextra_) _If_("_cgiarghd_" ne "0",_historypagescriptextra_) } _selectpagescriptextra_{_If_("_cgiargqto_" eq "2", _formpagescriptextra_,_dummypagescriptextra_)} _dummypagescriptextra_{function initialize() \{ \} } _formpagescriptextra_ { // query scripts generated by \_query:pagescriptextra\_ _standardfunctions_ _formfunctions_ _searchfunctions_ function getsearchargs () \{ var args=""; args = "&fqa=0&fqv="+argfqv+"&fqf="+argfqf; _If_(_cgiargqf_,args += "&fqk="+argfqk+"&fqs="+argfqs+"&fqc="+argfqc;) return args; \} function getqueryargs () \{ return "&fqa=1"+"&q="+argq+"&fqv="+argfqv+"&fqf="+argfqf+ "&fqk="+argfqk+"&fqs="+argfqs+"&fqc="+argfqc ; \} } _historypagescriptextra_{ var histvalue0='_histvalue0_'; var histvalue1='_histvalue1_'; var histvalue2='_histvalue2_'; var histvalue3='_histvalue3_'; var histvalue4='_histvalue4_'; var histvalue5='_histvalue5_'; var histvalue6='_histvalue6_'; var histvalue7='_histvalue7_'; var histvalue8='_histvalue8_'; var histvalue9='_histvalue9_'; var histvalue10='_histvalue10_'; var histvalue11='_histvalue11_'; var histvalue12='_histvalue12_'; var histvalue13='_histvalue13_'; var histvalue14='_histvalue14_'; var histvalue15='_histvalue15_'; var histvalue16='_histvalue16_'; var histvalue17='_histvalue17_'; var histvalue18='_histvalue18_'; var histvalue19='_histvalue19_'; function inputQuery(value) \{ if ("_cgiargqt_" == "0") \{ // text search document.QueryForm.q.value += " "+value; document.QueryForm.q.focus(); \} else \{ if ("_cgiargqf_" == "1") \{ // advanced query document.QueryForm.q.value += " "+value; document.QueryForm.q.focus(); updateq(); \} else \{ // simple form search // do something here, what?? \} \} \} } _standardfunctions_{ function getstdargs() \{ stdarg = ""; _If_(_gselection_,_getgarg_) _If_(_jselection_,_getjarg_) _If_(_nselection_,_getnarg_) value = document.QueryForm.t.options[document.QueryForm.t.selectedIndex].value; if (value != "_cgiargt_") stdarg += "&t="+value; stdarg += "&r=1&hs=1"; return stdarg; \} } _getgarg_{ if (document.QueryForm.g!= null) \{ value = document.QueryForm.g.options[document.QueryForm.g.selectedIndex].value; if (value != "_cgiargg_") stdarg += "&g="+value; \} } _getjarg_{ value = document.QueryForm.j.options[document.QueryForm.j.selectedIndex].value; if (value != "_cgiargj_") stdarg += "&j="+value; } _getnarg_{ value = document.QueryForm.n.options[document.QueryForm.n.selectedIndex].value; if (value != "_cgiargn_") stdarg += "&n="+value; } _formfunctions_{ argfqf="_cgiargfqf_"; argfqv="_cgiargfqv_"; argfqk="_cgiargfqk_"; argfqs="_cgiargfqs_"; argfqc="_cgiargfqc_"; argq = ""; function initialize () \{ if (document.QueryForm.fqf != null) \{initfqf();\} initfqv(); if ( "_cgiargqf_" == "1") \{ initfqs(); initfqk(); initfqc(); initq(); \} \} // fqf - the field selection box function initfqf() \{ var i; fqf = argfqf.split(","); num_opts = document.QueryForm.fqf[0].options.length; // assumes all have the same options for (i=0; i
|
_textexplaineras_ |
_textwordphrase_ | _textinfield_ | ||||
---|---|---|---|---|---|
_textadvquery_ | |
_textwordphrase_ | _textinfield_ | |
---|---|---|
_If_(_prevfirst_,_iconprev__textmatches__prevfirst_ - _prevlast_) | _If_(_nextfirst_,_textmatches__nextfirst_ - _nextlast__iconnext_) |