From 3e3f5c5f47b5413395be23d9d30a3437f70aa4f3 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Fri, 12 Jun 2015 10:59:18 +0200 Subject: [PATCH] Fix search for Android : - field text does not exists anymore --- NetBiblio.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NetBiblio.php b/NetBiblio.php index bb7f18e..491ba08 100644 --- a/NetBiblio.php +++ b/NetBiblio.php @@ -630,6 +630,10 @@ class NetBiblio extends WebService if($this->client != 'website' && in_array($type, array('title', 'author', 'reader'))) { // we don't want an exact search on mobile apps $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);