7.3. CGI File

The file with extension “.cgi” (“clair.cgi”) for direct search has query coding for processing and display format. It resides in the directory C:\ISIS\DATA. The full listing of this file is as follows:

The full listing of “clair.cgi” :

'db=clair'/,
(if v2001^n='first' then 'h1='v2001^v/'h2='f(val(v2001^v)+19,0,0) fi, if v2001^n='bool' then 'bool='v2001^v fi/)
if not v2001^n:'bool' then 'h1=1'/'h2=20'/
'bool=',(if v2000^n='search-query' then v2000^v fi)/,
fi
'pft=@clairh.pft'/,  
if v6020='Citation' or v6023='Next 20 Records' then
'pft=@cita.pft'/, 
'epilog=@cita.epi'
else
'pft=@clairh.pft'/, 
'epilog=@clair.epi'
fi

7.3.1. Conditional Statements for Query Parameter

'bool=',(if v2000^n='search-query' then v2000^v fi)/,

Since the “Direct Search” has only a single query box <input type="text" size=64 maxlength=253 name="search-query">, users have to form their multiple term query expression in that same box. When query is given whether it is single term or multiple term combination, it is assigned to tcg=2000. No “tagXXXX” assignment is used in the text box specification.

In other words, the whole contents of the text box is as such assigned to tag 2000 and used as query. So the text box should contain terms and their combinations using AND (*) OR (+) or AND NOT (^) according to WWWISIS query syntax.

Hence only a simple if condition is used to interpret the query to WWWISIS. The condition checks whether v2000^n is equivalent to the word ‘search-query’ (the word used as the name of the text box). If it is true then the value of text box (v2000^v) passes to WWWISIS as query. For example for the following

The v2000^v equals (retriev$ or search$ or discovery or mining) and (1999 or 2000), which is directly passed on to WWWISIS as

Bool = (retriev$ or search$ or discovery or mining) and (1999 or 2000)

Note:
*     The rest of the coding is to display 20 records/page as explained for the file “fjdclr.cgi” is in section 6.4. ·

 *    All the other files, Clair.cip, Clairh.pft, Clair.epi, Cita.pft, Cita.epi, Cita.in, Cita.cgi, Citadet.pft and Citadet.epi are the common files for
      “Guided Search” and “Direct Search”.

 

Previous | Next

1