Fix search for Android :

- field text does not exists anymore
This commit is contained in:
Gilles Crettenand
2015-06-12 10:59:18 +02:00
parent c20d58bd71
commit 3e3f5c5f47

View File

@@ -630,6 +630,10 @@ class NetBiblio extends WebService
if($this->client != 'website' && in_array($type, array('title', 'author', 'reader'))) { if($this->client != 'website' && in_array($type, array('title', 'author', 'reader'))) {
// we don't want an exact search on mobile apps // we don't want an exact search on mobile apps
$type = $type.'_fr'; $type = $type.'_fr';
} else if($type == 'text') {
// The field 'text' is still used by the Android app but does not exists anymore
// We use the default search fields in this case.
$type = null;
} }
$bs->addQuery($queryArray['queryText'], $type); $bs->addQuery($queryArray['queryText'], $type);