From d8b48e8764991b4f7f53087b9c78c572a23fa3ec Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Fri, 29 May 2015 12:48:13 +0200 Subject: [PATCH] compatibility with iOS / Android apps --- mobile.netbiblio.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mobile.netbiblio.php b/mobile.netbiblio.php index 3d3e5b1..3641a21 100644 --- a/mobile.netbiblio.php +++ b/mobile.netbiblio.php @@ -326,6 +326,12 @@ class NetBiblio extends WebService if (isset($queryArray['queryText']) && strlen($queryArray['queryText']) > 0) { $type = isset($queryArray['queryType']) ? $queryArray['queryType'] : null; + + // this is done for compatibility reason with the older iOS and Android apps + if($type == 'producer') { + $type = 'producerCode'; + } + $bs->addQuery($queryArray['queryText'], $type); }