- Treat 'Jeunesse' more like a normal 'Genre' for the outside world
- Activate 'Jeunesse' as a Genre for the Android app
This commit is contained in:
@@ -10,7 +10,6 @@ use BSR\Lib\Exception\AuthenticationException;
|
|||||||
use BSR\Lib\Exception\WebException;
|
use BSR\Lib\Exception\WebException;
|
||||||
use BSR\Lib\Search\BookSearch;
|
use BSR\Lib\Search\BookSearch;
|
||||||
use BSR\Lib\WebService;
|
use BSR\Lib\WebService;
|
||||||
|
|
||||||
class NetBiblio extends WebService
|
class NetBiblio extends WebService
|
||||||
{
|
{
|
||||||
private $login = '';
|
private $login = '';
|
||||||
@@ -640,6 +639,11 @@ class NetBiblio extends WebService
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($queryArray['genre']) && is_array($queryArray['genre'])) {
|
if(isset($queryArray['genre']) && is_array($queryArray['genre'])) {
|
||||||
|
if(($key = array_search('J', $queryArray['genre'])) !== false) {
|
||||||
|
unset($queryArray['genre']['J']);
|
||||||
|
$queryArray['jeunesse'] = array('filtrer' => 'filtrer');
|
||||||
|
}
|
||||||
|
|
||||||
$selectedGenres = array_filter($queryArray['genre'], function ($c) {
|
$selectedGenres = array_filter($queryArray['genre'], function ($c) {
|
||||||
return $c != '0';
|
return $c != '0';
|
||||||
});
|
});
|
||||||
@@ -733,7 +737,7 @@ class NetBiblio extends WebService
|
|||||||
*/
|
*/
|
||||||
public function ListOfCategories()
|
public function ListOfCategories()
|
||||||
{
|
{
|
||||||
return DBHelper::ListOfGenres();
|
return DBHelper::ListOfGenres(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user