From 8f4ee98428d15a6421fa4691da47331115e2dab6 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 8 Nov 2011 20:21:52 +0100 Subject: [PATCH] Fix: usesession false (when using SP). Using xml for now. Error when parsing JSON --- www/iphone/example_client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; -- 1.7.10.4