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://lists.indexdata.dk/?a=commitdiff_plain;h=ac4f1db612afa0d867ab9d8981f53b58b7ee7239;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 d624d2b..b98c2d5 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, @@ -378,7 +376,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, @@ -406,8 +404,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) {