[PHP-DOC] cvs: phpdoc /en/functions yaz.xml From: Egon Schmid (eschmid <email protected>)
Date: 08/07/00

eschmid Mon Aug 7 13:43:44 2000 EDT

  Modified files:
    /phpdoc/en/functions yaz.xml
  Log:
  Some cosmetics.
  
Index: phpdoc/en/functions/yaz.xml
diff -u phpdoc/en/functions/yaz.xml:1.1 phpdoc/en/functions/yaz.xml:1.2
--- phpdoc/en/functions/yaz.xml:1.1 Mon Aug 7 13:15:13 2000
+++ phpdoc/en/functions/yaz.xml Mon Aug 7 13:43:44 2000
@@ -1,6 +1,6 @@
  <reference id="ref.yaz">
- <title>Yaz</title>
- <titleabbrev>yaz</titleabbrev>
+ <title>YAZ</title>
+ <titleabbrev>YAZ</titleabbrev>
 
   <partintro>
    <simpara>
@@ -23,16 +23,16 @@
     option --with-yaz. Your task is roughly the following:
     <informalexample>
      <programlisting>
- gunzip -c yaz-1.6.tar.gz|tar xf -
- gunzip -c php-4.0.X.tar.gz|tar xf -
- cd yaz-1.6
- ./configure --prefix=/usr
- make
- make install
- cd ../php-4.0.X
- ./configure --with-yaz=/usr/bin
- make
- make install
+gunzip -c yaz-1.6.tar.gz|tar xf -
+gunzip -c php-4.0.X.tar.gz|tar xf -
+cd yaz-1.6
+./configure --prefix=/usr
+make
+make install
+cd ../php-4.0.X
+./configure --with-yaz=/usr/bin
+make
+make install
      </programlisting>
     </informalexample>
    </simpara>
@@ -49,9 +49,8 @@
    <example>
     <title><function>readline</function></title>
     <programlisting role="php">
-$num_hosts = count($host);
-if (empty($term) || count($host) == 0)
-{
+$num_hosts = count ($host);
+if (empty($term) || count($host) == 0) {
     echo '&lt;form method="get"&gt;
     &lt;input type="checkbox"
     name="host[]" value="bagel.indexdata.dk/gils"&gt;
@@ -67,9 +66,7 @@
     &lt;input type="text" size="30" name="term"&gt;
     &lt;input type="submit" name="action" value="Search"&gt;
     ';
-}
-else
-{
+} else {
     echo 'You searced for ' . htmlspecialchars($term) . '&lt;br&gt;';
     for ($i = 0; $i &gt; $num_hosts; $i++) {
         $id[] = yaz_connect($host[$i]);
@@ -77,8 +74,7 @@
         yaz_search($id[$i],"rpn",$term);
     }
     yaz_wait();
- for ($i = 0; $i &lt; $num_hosts; $i++)
- {
+ for ($i = 0; $i &lt; $num_hosts; $i++) {
         echo '&lt;hr&gt;' . $host[$i] . ":";
         $error = yaz_error($id[$i]);
         if (!empty($error)) {
@@ -88,8 +84,7 @@
             echo "Result Count $hits";
         }
         echo '&lt;dl&gt;';
- for ($p = 1; $p &lt;= 10; $p++)
- {
+ for ($p = 1; $p &lt;= 10; $p++) {
             $rec = yaz_record($id[$i],$p,"string");
             if (empty($rec)) continue;
             echo "&lt;dt&gt;&lt;b&gt;$p&lt;/b&gt;&lt;/dt&gt;&lt;dd&gt;";
@@ -106,7 +101,7 @@
   <refentry id="function.yaz-addinfo">
    <refnamediv>
     <refname>yaz_addinfo</refname>
- <refpurpose>Returns additional error information.</refpurpose>
+ <refpurpose>Returns additional error information</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -127,7 +122,7 @@
   <refentry id="function.yaz-close">
    <refnamediv>
     <refname>yaz_close</refname>
- <refpurpose>Closes a YAZ connection.</refpurpose>
+ <refpurpose>Closes a YAZ connection</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -147,7 +142,7 @@
   <refentry id="function.yaz-connect">
    <refnamediv>
     <refname>yaz_connect</refname>
- <refpurpose>Returns a positive association ID on success; zero on failure.</refpurpose>
+ <refpurpose>Returns a positive association ID on success; zero on failure</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -171,7 +166,7 @@
   <refentry id="function.yaz-errno">
    <refnamediv>
     <refname>yaz_errno</refname>
- <refpurpose>Returns error number.</refpurpose>
+ <refpurpose>Returns error number</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -222,7 +217,7 @@
   <refentry id="function.yaz-hits">
    <refnamediv>
     <refname>yaz_hits</refname>
- <refpurpose>Returns number of hits for last search.</refpurpose>
+ <refpurpose>Returns number of hits for last search</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -241,7 +236,7 @@
   <refentry id="function.yaz-range">
    <refnamediv>
     <refname>yaz_range</refname>
- <refpurpose>Specifies the maximum number of records to retrieve.</refpurpose>
+ <refpurpose>Specifies the maximum number of records to retrieve</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -268,7 +263,7 @@
   <refentry id="function.yaz-record">
    <refnamediv>
     <refname>yaz_record</refname>
- <refpurpose>Returns a record.</refpurpose>
+ <refpurpose>Returns a record</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -299,7 +294,7 @@
   <refentry id="function.yaz-search">
    <refnamediv>
     <refname>yaz_search</refname>
- <refpurpose>Prepares for a search.</refpurpose>
+ <refpurpose>Prepares for a search</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -325,7 +320,7 @@
   <refentry id="function.yaz-syntax">
    <refnamediv>
     <refname>yaz_syntax</refname>
- <refpurpose>Specifies the preferred record syntax for retrieval.</refpurpose>
+ <refpurpose>Specifies the preferred record syntax for retrieval</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -346,7 +341,7 @@
   <refentry id="function.yaz-wait">
    <refnamediv>
     <refname>yaz_wait</refname>
- <refpurpose>Executes queries.</refpurpose>
+ <refpurpose>Executes queries</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>