~~NOCACHE~~
====== Library Search ======
if (isset($_GET['searchfor'])){
$searchfor=$_GET['searchfor'];
$mlibsearchfor=preg_replace('/ +/', '+', $searchfor);
require("swamplib/library/rc.php");
$books=bookSearch($_GET);
if (sizeof($books)==0){
echo "===== No books found! =====\n";
} else {
echo "===== Results =====\n";
foreach ($books as $book){
echo "==== ".$book['TITLE']." ====\n";
echo $book['DESCRIPTION']."\n";
echo '^Points|'.$book['BOOK_POINTS'].'^Lexile|'.$book['LEXILE']."|\n";
echo "[[http://www.monroevillelibrary.org/search/a?searchtype=t&searcharg=$mlibsearchfor&SORT=D&searchscope=2|Search Monroeville Library]]\n";
echo "[[http://library.gatewayk12.org/cataloging/servlet/handlebasicsearchform.do?searchType=title&redisplay=false&keywordText=$mlibsearchfor&includeLibrary=true&siteTypeID=-1|GSD Library]]\n";
}
}
}