From 77b892e3c226cdd56f92dd42818b55cf4cc50dd2 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 9 Nov 2011 16:20:11 +0100 Subject: [PATCH] Implement Limit parameter on search, e.g. server side facetting --- www/iphone/example_client.js | 43 ++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index c0d57a7..fb42b3f 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -10,11 +10,12 @@ var showResponseType = ''; // Facet configuration 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 querys_server = {}; +var useLimit = 1; +// Fail to get JSON working stabil. var showResponseType = 'xml'; if (document.location.hash == '#pazpar2' || document.location.search.match("useproxy=false")) { - usesessions = false; + usesessions = true; pazpar2path = '/pazpar2/search.pz2'; showResponseType = 'xml'; } @@ -260,7 +261,7 @@ function my_onterm(data) { termlists.push('