3. How to Perform a Simple Query


To perform a simple query on a standard or "field selection" form, you:

  1. Click with the mouse in the Input box to be filled in
  2. Write the term to be search for inside the box
A LIVE example of a query involving the term biology in the field Title of the database Serials is reported below.

Here you can inspect the .fmt file, while the relevant part of this form source code is here:

<FORM METHOD=POST ACTION="/htbin/SFgate">
<INPUT NAME="database" TYPE="hidden" VALUE="local//usr/local/wais-sources/serials/current">
<CENTER>
  <TABLE BORDER WIDTH=70%>
    <TR><TD><SELECT NAME="fieldsel_1_description">
              <OPTION SELECTED>Title
              <OPTION>Publication Place
            </SELECT></TD>
        <TD><INPUT TYPE="text" NAME="fieldsel_1_content" VALUE="biology" SIZE=40></TD>

        <TD><SELECT NAME="fieldsel_1_tie">
              <OPTION>and
              <OPTION>or
            </SELECT></TD></TR>

    <TR><TD><SELECT NAME="fieldsel_2_description">
              <OPTION>Title
              <OPTION SELECTED>Publication Place
            </SELECT></TD>

        <TD><INPUT TYPE="text" NAME="fieldsel_2_content" SIZE=40></TD></TR>
   </TABLE>
</CENTER>
<P>

<INPUT TYPE="hidden" NAME="fieldsel_name_ti" VALUE="Title">
<INPUT TYPE="hidden" NAME="fieldsel_name_pp" VALUE="Publication Place">

<CENTER><TABLE>
<TR><TH><INPUT TYPE="submit" VALUE="Start Search">
</TH><TH> </TH><TH>
<INPUT TYPE="reset"  VALUE="Reset Query">
</TR></TABLE>
</CENTER>

<INPUT TYPE="hidden" NAME="application" VALUE="serials">
<INPUT TYPE="hidden" NAME="tieinternal" VALUE="and">
<INPUT TYPE="hidden" NAME="listenv" VALUE="table">
<INPUT TYPE="hidden" NAME="range" VALUE="1">
<INPUT TYPE="hidden" NAME="maxhits" VALUE="30">
<INPUT TYPE="hidden" NAME="directget" VALUE="0">
</FORM>

Tags that allow to map a descriptive term for each field are the following:

<INPUT TYPE="hidden" NAME="fieldsel_name_ti" VALUE="Title">
<INPUT TYPE="hidden" NAME="fieldsel_name_pp" VALUE="Publication Place">

Plese note that descriptive terms used in drop-down list MUST match exactly (case and space sensitive!) with those reported into the tags.

Please note that the differences with the previous document where the mapping was made using attributes table.


If the form is a "checkbox" one, then you have just to check square(s) next to the selected term(s).
In this case there is always an implicit OR between terms selected inside each field.

MODE OF INHERITANCE
Autosomal Dominant X-linked Dominant Polygenic
Autosomal Recessive X-linked Recessive Unknown
Mitochondrial

Here you can inspect the .fmt file, while the relevant part of this form source code is here:

<FORM METHOD=POST ACTION="/htbin/SFgate">
<INPUT NAME="database" TYPE="hidden" VALUE="local//usr/local/wais-sources/tutorial/audio">
<CENTER>
   <TABLE BORDER WIDTH="70%">
      <TR><TH ALIGN=center COLSPAN=3><FONT SIZE=+2>MODE OF INHERITANCE</FONT></TH></TR>
      <TR><TH ALIGN=left><INPUT TYPE="checkbox" CHECKED NAME="inheritance_content" VALUE="dominant"> 
                                     Autosomal Dominant</TD>
          <TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="x-linked_dominant"> 
                                     X-linked Dominant</TD>
          <TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="polygenic"> 
                                     Polygenic</TD></TR>
       <TR><TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="recessive"> 
                                     Autosomal Recessive</TD>
          <TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="x-linked_recessive"> 
                                     X-linked Recessive</TD>
          <TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="unknown"> 
                                     Unknown</TD></TR>
       <TR><TH ALIGN=left><INPUT TYPE="checkbox" NAME="inheritance_content" VALUE="mitochondrial">
                                  Mitochondrial</TD></TR>
    </TABLE>
</CENTER>

<P>
<CENTER>
<TABLE>
<TR><TH><INPUT TYPE="submit" VALUE="Start Search"></TH>
<TH> </TH>
<TH><INPUT TYPE="reset"  VALUE="Reset Query"></TH></TR>
</TABLE>
</CENTER>

<INPUT TYPE="hidden" NAME="tieinternal" VALUE="or">
<INPUT TYPE="hidden" NAME="listenv" VALUE="table">
<INPUT TYPE="hidden" NAME="range" VALUE="1">
<INPUT TYPE="hidden" NAME="convert" VALUE="Table">
<INPUT TYPE="hidden" NAME="maxhits" VALUE="30">
<INPUT TYPE="hidden" NAME="directget" VALUE="1">
</FORM>



THIS PAGE REFERENCES:
© 1996-97 BioPD - University of Padova - Author: Leopoldo Saggin
Mail to: lsaggin@civ.bio.unipd.it - Last Revision: August 21, 1997
Tested on Netscape 1.22 and higher