22,
'b' => 42,
));
// Create a db with field list ("fdt")
$fdt = array(
'Periodico' => 1,
'Data' => 2,
'Titulo' => 3,
'Autor' => 4,
'Assuntos primarios' => 5,
'Assuntos secundarios' => 6,
'Ilustrado' => 7,
'Caderno' => 8,
'Pagina' => 9,
'Arquivo digital' => 10,
'Forma documento' => 11,
'Local de publicacao' => 12,
'Observacoes' => 13,
'Descritores imagem' => 14,
'Termo geografico' => 16,
'Coluna' => 17,
'Recorte' => 19,
'Alimentador' => 20,
'Tema Anuario' => 21,
);
?>
server
srv->sock) {
echo "could not contact server\n";
}
else {
?>
terms beginning with...
terms($query);
echo "got ",count($terms), " terms for '$query'\n";
foreach ($terms as $t) {
list($cnt, $term) = explode("\t", $t);
echo "'$term'($cnt) ";
}
echo "\n";
?>
query reading records
query($query);
echo "got ",count($recs), " records for '$query'\n";
foreach ($recs as $r) {
echo "---\n", $r->toString(), "---\n
\n";
}
?>
query reading a record
read(522);
echo "---\n", $r->toString(), "---\n
\n";
print_r($r);
} // end else could contact server
?>