Ohio Web Library Search Results

if(isset($_GET['search'])){ $search = urlencode($_GET['search']); $xml = simplexml_load_string(file_get_contents("http://ohioweblibrary.org/export?q=$search")); if($xml->hits > 0){ foreach ($xml->results->result as $result) { $author = $result->author!=""?$result->{'author'}:"n/a"; $description = $result->description!=""?$result->{'description'}:"none"; $output .= "
".$result->title."
Source: ".$result->source."
Author: $author
Description: $description
"; } $output .= "
See the full list of results at the Ohio Web Library"; }else{ $output = "No results found"; } } ?>
Database Search:
=$output?>

Source URL: https://wright.lib.oh.us/content/search-results