Bento box search with multiple targets
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.
 
 
 
 

40 lines
991 B

<?php
/**
* @file
* Implementation of Roblib search for searching EDSAPI (EBSCO) targets.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_theme().
*/
function roblib_search_eds_theme($existing, $type, $theme, $path) {
$modulePath = \Drupal::service('extension.list.module')->getPath('roblib_search');
$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().
*/
function roblib_search_eds_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.roblib_search_eds':
return t(
'<p>
provides a EDSAPI target for the Roblib search module. This target uses javascript
to render the results.
</p>'
);
}
}