|
|
@ -52,8 +52,10 @@ function roblib_search_solr_site_preprocessor(&$variables, $type) { |
|
|
|
$spinner_path = $base_url . '/' . drupal_get_path('module', 'roblib_search') . '/img/' . 'spinner.gif'; |
|
|
|
$spinner_path = $base_url . '/' . drupal_get_path('module', 'roblib_search') . '/img/' . 'spinner.gif'; |
|
|
|
$variables['spinner_path'] = $spinner_path; |
|
|
|
$variables['spinner_path'] = $spinner_path; |
|
|
|
$variables['type'] = $type; |
|
|
|
$variables['type'] = $type; |
|
|
|
$search_url = $base_url . '/roblib_search/solr_site/' . $type . '/' . urlencode($query); |
|
|
|
$query = urlencode($query); |
|
|
|
|
|
|
|
$search_url = $base_url . '/roblib_search/solr_site/' . $type . '/' . $query; |
|
|
|
drupal_add_js(drupal_get_path('module', 'roblib_search_solr_site') . '/js/solr_site_' . $type . '.js'); |
|
|
|
drupal_add_js(drupal_get_path('module', 'roblib_search_solr_site') . '/js/solr_site_' . $type . '.js'); |
|
|
|
$key = 'roblib_search_solr_site_' . $type; |
|
|
|
$key = 'roblib_search_solr_site_' . $type; |
|
|
|
drupal_add_js(array($key => array('search_url' => $search_url)), array('type' => 'setting')); |
|
|
|
drupal_add_js(array($key => array('search_url' => $search_url, 'search_query' => $query, |
|
|
|
|
|
|
|
'base_url' => $base_url)), array('type' => 'setting')); |
|
|
|
} |
|
|
|
} |
|
|
|