".parent::get_form();
return $form;
}
public function save_form(){
global $cms_module_search_view_help;
global $cms_module_search_view_title;
global $cms_module_search_view_link_search_advanced;
$this->parameters['help'] = $cms_module_search_view_help+0;
$this->parameters['title'] = $cms_module_search_view_title;
$this->parameters['link_search_advanced'] = $cms_module_search_view_link_search_advanced+0;
return parent::save_form();
}
public function render($datas){
global $base_path,$opac_autolevel2;
global $opac_modules_search_title,$opac_modules_search_author,$opac_modules_search_publisher,$opac_modules_search_titre_uniforme;
global $opac_modules_search_collection,$opac_modules_search_subcollection,$opac_modules_search_category,$opac_modules_search_indexint;
global $opac_modules_search_keywords,$opac_modules_search_abstract,$opac_modules_search_docnum;
global $dest,$user_query,$charset;
//juste une searchbox...
if(count($datas) == 1){
if($datas[0]['page']>0){
$action = $base_path."/index.php?lvl=cmspage&pageid=".$datas[0]['page'];
}else{
if ($opac_autolevel2==2) {
$action = $base_path."/index.php?lvl=more_results&autolevel1=1";
} else {
$action = $base_path."/index.php?lvl=search_result&search_type_asked=simple_search";
}
}
$onsubmit = "if (".$this->get_module_dom_id()."_searchbox.user_query.value.length == 0) { ".$this->get_module_dom_id()."_searchbox.user_query.value='*';}".$this->get_module_dom_id()."_change_dest();";
}else{
if ($opac_autolevel2==2) {
$action = $base_path."/index.php?lvl=more_results&autolevel1=1";
} else {
$action = $base_path."/index.php?lvl=search_result&search_type_asked=simple_search";
}
$onsubmit = $this->get_module_dom_id()."_change_dest();";
}
if ($opac_modules_search_title==2) $look["look_TITLE"]=1;
if ($opac_modules_search_author==2) $look["look_AUTHOR"]=1 ;
if ($opac_modules_search_publisher==2) $look["look_PUBLISHER"] = 1 ;
if ($opac_modules_search_titre_uniforme==2) $look["look_TITRE_UNIFORME"] = 1 ;
if ($opac_modules_search_collection==2) $look["look_COLLECTION"] = 1 ;
if ($opac_modules_search_subcollection==2) $look["look_SUBCOLLECTION"] = 1 ;
if ($opac_modules_search_category==2) $look["look_CATEGORY"] = 1 ;
if ($opac_modules_search_indexint==2) $look["look_INDEXINT"] = 1 ;
if ($opac_modules_search_keywords==2) $look["look_KEYWORDS"] = 1 ;
if ($opac_modules_search_abstract==2) $look["look_ABSTRACT"] = 1 ;
$look["look_ALL"] = 1 ;
if ($opac_modules_search_docnum==2) $look["look_DOCNUM"] = 1;
$html = "
";
return $html;
}
public function get_headers(){
global $base_path;
$headers = array();
$headers[] = "
";
return $headers;
}
}