Fix search for Android :

- field text does not exists anymore
master
Gilles Crettenand 11 years ago
parent c20d58bd71
commit 3e3f5c5f47

@ -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);

Loading…
Cancel
Save