Some cosmetics.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29845 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-08-07 20:43:44 +00:00
parent 692b41f2e4
commit 546a93bb61

View file

@ -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 @@ if (empty($term) || count($host) == 0)
&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 @@ else
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 @@ else
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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<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 @@ else
<refentry id="function.yaz-wait">
<refnamediv>
<refname>yaz_wait</refname>
<refpurpose>Executes queries.</refpurpose>
<refpurpose>Executes queries</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>