Given OpenSearch parameter values and a valid OCLC web service key, formats a WorldCat API OpenSearch request URL, gets a request response, transforms the response into a PHP Array, and returns the array.
This function assumes the use of a PHP RSS parser, in this instance the MagpieRSS parser (http://magpierss.sourceforge.net/).
worldcat_opensearch( string $key, string $query, string $format, string $start, string $count, string $cformat);
Code is available from the Developer Network Subversion repository
This function returns null (for zero results and any request errors) or an array of one or more records, each record represented by an array with these values:
The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »
© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates
Follow the OCLC Developer Network: