Change service proxy/ting settings to reflect new data
authorJason Skomorowski <jason@indexdata.com>
Tue, 22 Mar 2011 23:42:55 +0000 (23:42 +0000)
committerJason Skomorowski <jason@indexdata.com>
Tue, 22 Mar 2011 23:42:55 +0000 (23:42 +0000)
mkdru.client.js

index d624d2b..b98c2d5 100644 (file)
@@ -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) {