|
|
@ -1265,7 +1265,7 @@ function fedora_repository_search_page($resultData) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function fedora_repository_form_alter(&$form, &$form_state, $form_id) { |
|
|
|
function fedora_repository_form_alter(&$form, &$form_state, $form_id) { |
|
|
|
// Advanced node search form |
|
|
|
// Advanced node search form |
|
|
|
module_load_include('inc', 'fedora_repository', 'SearchClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'core/SearchClass'); |
|
|
|
$path = drupal_get_path('module', 'fedora_repository'); |
|
|
|
$path = drupal_get_path('module', 'fedora_repository'); |
|
|
|
if ($form_id == 'search_form' && arg(1) == 'fedora_repository' && user_access('use advanced search')) { |
|
|
|
if ($form_id == 'search_form' && arg(1) == 'fedora_repository' && user_access('use advanced search')) { |
|
|
|
$default_value = $form['basic']['inline']['keys']['#default_value']; |
|
|
|
$default_value = $form['basic']['inline']['keys']['#default_value']; |
|
|
@ -1368,7 +1368,7 @@ function fedora_repository_theme() { |
|
|
|
* @return type |
|
|
|
* @return type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function fedora_repository_list_terms($field, $startTerm = NULL, $displayName = NULL) { |
|
|
|
function fedora_repository_list_terms($field, $startTerm = NULL, $displayName = NULL) { |
|
|
|
module_load_include('inc', 'fedora_repository', 'SearchClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'core/SearchClass'); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
return $searchClass->getTerms($field, $startTerm, $displayName); |
|
|
|
return $searchClass->getTerms($field, $startTerm, $displayName); |
|
|
|
} |
|
|
|
} |
|
|
@ -1378,7 +1378,7 @@ function fedora_repository_list_terms($field, $startTerm = NULL, $displayName = |
|
|
|
* @return type |
|
|
|
* @return type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function fedora_repository_mnpl_advanced_search_form() { |
|
|
|
function fedora_repository_mnpl_advanced_search_form() { |
|
|
|
module_load_include('inc', 'fedora_repository', 'SearchClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'core/SearchClass'); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
return $searchClass->build_advanced_search_form(); |
|
|
|
return $searchClass->build_advanced_search_form(); |
|
|
|
} |
|
|
|
} |
|
|
@ -1389,7 +1389,7 @@ function fedora_repository_mnpl_advanced_search_form() { |
|
|
|
* @return type |
|
|
|
* @return type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function theme_fedora_repository_mnpl_advanced_search_form($form) { |
|
|
|
function theme_fedora_repository_mnpl_advanced_search_form($form) { |
|
|
|
module_load_include('inc', 'fedora_repository', 'SearchClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'core/SearchClass'); |
|
|
|
$advanced_search_form = new SearchClass(); |
|
|
|
$advanced_search_form = new SearchClass(); |
|
|
|
return $advanced_search_form->theme_advanced_search_form($form); |
|
|
|
return $advanced_search_form->theme_advanced_search_form($form); |
|
|
|
} |
|
|
|
} |
|
|
@ -1401,7 +1401,7 @@ function theme_fedora_repository_mnpl_advanced_search_form($form) { |
|
|
|
* @return type |
|
|
|
* @return type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function fedora_repository_mnpl_advanced_search($query, $startPage = 1) { |
|
|
|
function fedora_repository_mnpl_advanced_search($query, $startPage = 1) { |
|
|
|
module_load_include('inc', 'fedora_repository', 'SearchClass'); |
|
|
|
module_load_include('inc', 'fedora_repository', 'core/SearchClass'); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
$searchClass = new SearchClass(); |
|
|
|
$retVal = $searchClass->custom_search($query, $startPage); |
|
|
|
$retVal = $searchClass->custom_search($query, $startPage); |
|
|
|
return $searchClass->custom_search($query, $startPage); |
|
|
|
return $searchClass->custom_search($query, $startPage); |
|
|
|