Source for file marc_yaz.php
Documentation is available at marc_yaz.php
// Define the usable fields for our CCL query
// Declare the array that will hold the parsed results
// Connect to the laurentian.ca Z39.50 server
$conn = yaz_connect ('142.51.8.7:2200/UNICORN');
yaz_ccl_conf ($conn, $ccl_fields);
// Define our query for a most excellent text
$ccl_query = "ti='derby' and au='scott'";
// Parse the CCL query into yaz's native format
$result = yaz_ccl_parse ($conn, $ccl_query, $ccl_results);
echo "Error: " . $ccl_results['errorstring'];
$rpn = $ccl_results['rpn'];
yaz_search ($conn, 'rpn', $rpn);
// Any errors trying to retrieve this record?
$error = yaz_error ($conn);
// Retrieve the first MARC record as raw MARC
$rec = yaz_record ($conn, 1 , "raw");
print "Error: Retrieved no results.\n";
// Parse the retrieved MARC record
while ($marc_record = $marc_file->next()) {
Documentation generated on Wed, 13 Nov 2019 12:37:08 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|