You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
977 B
43 lines
977 B
<?php |
|
|
|
/** |
|
* @file |
|
* Implementation of Roblib search for searching EDSAPI (EBSCO) targets. |
|
*/ |
|
|
|
/** |
|
* Implements hook_theme(). |
|
*/ |
|
function roblib_search_eds_theme($existing, $type, $theme, $path) { |
|
$modulePath = \Drupal::service('module_handler')->getModule('roblib_search') |
|
->getPath(); |
|
$spinner_path = '/' . $modulePath . "/img/spinner.gif"; |
|
return [ |
|
'roblib_search_eds_books' => [ |
|
'variables' => ['query' => NULL, 'spinner_path' => $spinner_path], |
|
], |
|
'roblib_search_eds_articles' => [ |
|
'variables' => ['query' => NULL, 'spinner_path' => $spinner_path], |
|
], |
|
]; |
|
} |
|
|
|
/** |
|
* Implements hook_help(). |
|
* |
|
* @param type $path |
|
* @param type $arg |
|
* @return type |
|
*/ |
|
function roblib_search_eds_help($path, $arg) { |
|
switch ($path) { |
|
case 'admin/help#roblib_search_eds': |
|
return t( |
|
'<p> |
|
provides a EDSAPI target for the Roblib search module. This target uses javascript |
|
to render the results. |
|
</p>' |
|
); |
|
} |
|
} |
|
|
|
|