Converted to ding1 mkdru theme (dybamo subtheme)
[mkdruding1.git] / template.php
index 465af5a..75c6b45 100644 (file)
@@ -1,9 +1,12 @@
 <?php 
 function mkdruding2_preprocess_page(&$vars, $hook) {
   //wouold be nice to include this only during search hook
-  drupal_add_js(drupal_get_path('theme', 'mkdruding2') . '/mkdruding2.js');
-  //for mkdru to generate facet container client-side in the given element
+  drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js');
+  // in ding1 we draw facets to our tab, we could set up the facet container
+  // in /mkdru-results.tpl.php. However, I still do it client side in
+  // the "mkdruFacetContainer" JS theme function to get hold of facet config
+  // this signals that client side container generation should be used
   drupal_add_js(array('mkdru' => array('facetContainerSelector' => 
-    '#block-ding-facetbrowser-facetbrowser')), 'setting');
+    '#mkdru-raw-facet-container')), 'setting');
 }