From 369a889253327dccc3f8c82c61605cc39775c28b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 14 Jun 2013 22:03:29 +0100 Subject: [PATCH] No-semantic-change tweaks to bring more into line with original file. --- experiments/spclient/example_client.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/experiments/spclient/example_client.js b/experiments/spclient/example_client.js index a8b9a9a..99583d9 100644 --- a/experiments/spclient/example_client.js +++ b/experiments/spclient/example_client.js @@ -4,23 +4,15 @@ // 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 pazpar2URL = "/pazpar2/search.pz2"; -var serviceProxyURL = "/service-proxy/"; +var usesessions = useServiceProxy ? false : true; +var pazpar2path = useServiceProxy ? '/service-proxy/' : '/pazpar2/search.pz2'; var authURLServiceProxy = "/service-proxy-auth"; -var pazpar2path = useServiceProxy ? serviceProxyURL : pazpar2URL; - -var usesessions; - var showResponseType = ''; if (document.location.hash == '#useproxy') { usesessions = false; pazpar2path = '/service-proxy/'; showResponseType = 'json'; } -if (useServiceProxy) { - usesessions = false; -} var my_paz = new pz2( { "onshow": my_onshow, "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way -- 1.7.10.4