|
|
|
@ -214,6 +214,8 @@ class NetBiblio extends WebService
|
|
|
|
|
|
|
|
|
|
|
|
public function FindBooks($codes)
|
|
|
|
public function FindBooks($codes)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->CheckSession();
|
|
|
|
|
|
|
|
|
|
|
|
$codes = json_decode($codes);
|
|
|
|
$codes = json_decode($codes);
|
|
|
|
$bs = new BookSearch();
|
|
|
|
$bs = new BookSearch();
|
|
|
|
$bs->addQuery('code:('.implode(' OR ', $codes).')', null, false);
|
|
|
|
$bs->addQuery('code:('.implode(' OR ', $codes).')', null, false);
|
|
|
|
@ -364,6 +366,8 @@ class NetBiblio extends WebService
|
|
|
|
|
|
|
|
|
|
|
|
public function FindBook($code)
|
|
|
|
public function FindBook($code)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->CheckSession();
|
|
|
|
|
|
|
|
|
|
|
|
$bs = new BookSearch();
|
|
|
|
$bs = new BookSearch();
|
|
|
|
$bs->addQuery($code, 'code');
|
|
|
|
$bs->addQuery($code, 'code');
|
|
|
|
$results = $bs->getResults(0, 1);
|
|
|
|
$results = $bs->getResults(0, 1);
|
|
|
|
|