An App that demonstrates using WorldCat Discovery to build a search interface. There are currently no tests for this app. Tests will be added over the next few weeks.
In a Terminal Window
$ cd {YOUR-APACHE-DOCUMENT-ROOT}
$ git clone https://github.com/OCLC-Developer-Network/worldcat-discovery-api-demo-php.git
$ cd worldcat-discovery-api-demo-php
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install
Composer is a dependency management library for PHP. It is used to install the required libraries for testing and parsing RDF data. The dependencies are configured in the file composer.json
.
$ vi .env.php
Sample Environment File
<?php
return array(
'wskey' => 'your-key',
'secret' => 'your-secret'
);
Edit the /app/config/app.php file
institutionID - your institution WorldCat RegistryID heldBy - array that includes your OCLC Symbol
Optionally enable showAvailability showEHoldings showReccomendations showDbpediaInfo showIdentitiesInfo debugAPIcalls
To run the app, point your web browser at the localhost address where these instructions will install it by default.