diff --git a/NetBiblio.php b/NetBiblio.php index a25fa76..4892645 100644 --- a/NetBiblio.php +++ b/NetBiblio.php @@ -13,7 +13,7 @@ use BSR\Lib\WebService; class NetBiblio extends WebService { /** @var string $version version number */ - public static $version = '1.1.4'; + public static $version = '1.1.5'; private $login = ''; private $client = 'website'; @@ -492,8 +492,8 @@ class NetBiblio extends WebService 'loans' => $user->GetLoans(true), 'oldLoans' => $user->GetOldLoans(true), 'wishes' => $user->getWishes(true), - 'novelties' => $this->LastBooksByType('', 15), - 'recommendations' => $this->MoreLikeLoans(), + 'novelties' => $this->LastBooksByType('', 12), + 'recommendations' => $this->MoreLikeLoans(8), ); } @@ -749,7 +749,7 @@ class NetBiblio extends WebService * @param int number of books * @return array */ - public function MoreLikeThis($ids, $number = 5) + public function MoreLikeThis($ids, $number = 8) { $bs = new BookSearch(false); $bs->addOrQuery(is_array($ids) ? $ids : array($ids), 'id'); @@ -762,14 +762,15 @@ class NetBiblio extends WebService * This method returns books similar to the books already * loaned by the current user. * + * @param int number of books * @return array * @throws AuthenticationException */ - public function MoreLikeLoans() + public function MoreLikeLoans($number = 8) { $circulations = $this->getUser()->getLoansData('OldCirculations'); $ids = array_map(function($c) { return $c['NoticeId']; }, $circulations); - return $this->MoreLikeThis($ids); + return $this->MoreLikeThis($ids, $number); } /**