From: Dennis Schafroth Date: Tue, 8 Nov 2011 19:21:52 +0000 (+0100) Subject: Fix: usesession false (when using SP). Using xml for now. Error when parsing JSON X-Git-Tag: mobile-beta-1~8 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=8f4ee98428d15a6421fa4691da47331115e2dab6;p=pazpar2-moved-to-github.git Fix: usesession false (when using SP). Using xml for now. Error when parsing JSON --- diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index a4444c2..c0d57a7 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -4,7 +4,7 @@ // create a parameters array and pass it to the pz2's constructor // then register the form submit event with the pz2.search function // autoInit is set to true on default -var usesessions = true; +var usesessions = false; var pazpar2path = '/service-proxy/'; var showResponseType = ''; // Facet configuration @@ -12,7 +12,7 @@ var querys = {'su': '', 'au': '', 'xt': ''}; var query_client_server = {'su': 'subject', 'au': 'author', 'xt': 'xtargets'}; var querys_server = {'subject': '', 'author': '', 'xtargets': ''}; var useLimit = 0; -var showResponseType = 'json'; +var showResponseType = 'xml'; if (document.location.hash == '#pazpar2' || document.location.search.match("useproxy=false")) { usesessions = false; pazpar2path = '/pazpar2/search.pz2';