From: Jason Skomorowski Date: Tue, 22 Mar 2011 23:42:55 +0000 (+0000) Subject: Change service proxy/ting settings to reflect new data X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=87340d616a29be1ac456b89b601619dd11b8abb2;p=mkdru-moved-to-drupal.org.git Change service proxy/ting settings to reflect new data --- diff --git a/mkdru.client.js b/mkdru.client.js index daa95b0..3f34a8e 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -6,9 +6,7 @@ var mkdru = { pz2: null, totalRec: 0, pagerRange: 6, - pazpar2Path: Drupal.settings.mkdru.pz2_path, - facetContainerSelector: Drupal.settings.mkdru.facetContainerSelector, - // State; Keys limit_{facet key} will also be initialised + facetContainerSelector: '#mkdru-raw-facet-container', defaultState: { page: 1, perpage: 20, @@ -381,7 +379,7 @@ $(document).ready(function () { mkdru.pz2 = new pz2( { "onshow": mkdru.pz2Show, "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way - "pazpar2path": mkdru.pazpar2Path, + "pazpar2path": mkdru.settings.pz2_path, "oninit": mkdru.pz2Init, "onstat": mkdru.pz2Status, "onterm": mkdru.pz2Term, @@ -409,8 +407,8 @@ $(document).ready(function () { mkdru.pz2.init(); } else { //runnin against SP - var user = Drupal.settings.mkdru.sp_user; - var pass = Drupal.settings.mkdru.sp_pass; + var user = mkdru.settings.sp.user; + var pass = mkdru.settings.sp.pass; var params = {}; params['command'] = 'auth'; if (user && pass) {