Hardcode the Ding1 theme
[mkdru-moved-to-drupal.org.git] / mkdru.client.js
index 51835ac..fde7675 100644 (file)
@@ -8,7 +8,7 @@ var mkdru = {
   totalRec: 0,
   pagerRange: 6,
   pazpar2Path: Drupal.settings.mkdru.pz2_path,
-  facetContainerSelector: Drupal.settings.mkdru.facetContainerSelector,
+  facetContainerSelector: '#mkdru-raw-facet-container',
   // Facets
   facets: {
     source: {
@@ -92,7 +92,6 @@ mkdru.pz2Init = function () {
     mkdru.search();
   }
   mkdru.pz2.stat();
-  //mkdru.pz2.bytarget();
 };
 
 mkdru.pz2Show = function (data) {
@@ -164,10 +163,6 @@ mkdru.pz2Term = function (data) {
   }
 };
 
-mkdru.pz2ByTarget = function (data) {
-  
-};
-
 mkdru.pz2Record = function (data) {
   clearTimeout(mkdru.pz2.showTimer);
   $('.mkdru-results').hide();
@@ -227,8 +222,7 @@ mkdru.hashChange = function () {
   // TING hack, switching tabs resets the hash but does not re-load the page
   // simply ignore new hash and set it to the old state
   var hash = $.param.fragment();
-  if (hash.indexOf('addon-result') == 0 || hash.indexOf('content-result') == 0
-      || hash.indexOf('ting-result') == 0) {
+  if (hash.indexOf("-result") != -1 || hash.indexOf("facets=") != -1) {
     mkdru.hashFromState();
     return;
   }
@@ -418,7 +412,6 @@ $(document).ready(function () {
               "onstat": mkdru.pz2Status,
               "onterm": mkdru.pz2Term,
               "termlist": termlist.join(','),
-              "onbytarget": mkdru.pz2ByTarget,
               "usesessions" : mkdru.useSessions,
               "showResponseType": mkdru.showResponseType,
               "onrecord": mkdru.pz2Record,