suggestions

This commit is contained in:
Gilles Crettenand
2015-06-12 14:48:27 +02:00
parent 80e139e018
commit b1eb07f3d4
2 changed files with 48 additions and 0 deletions

View File

@@ -672,6 +672,17 @@ class NetBiblio extends WebService
return array_merge($data, $this->AddBookData($results['books']));
}
/**
* This method return a list of suggested titles for the given search terms
* @param string $text
* @return array
*/
public function Suggest($text)
{
$bs = new BookSearch();
return $bs->suggest($text);
}
/**
* This method returns the list of all volunteer readers that read book
* in the database.