config['used_thesaurus'])){
$this->config['used_thesaurus'] = $thesaurus_default;
}
if(empty($this->config['only_with_notices'])){
$this->config['only_with_notices'] = 0;
}
if(empty($this->config['used_schema'])){
$this->config['used_schema'] = $deflt_concept_scheme;
}
$result= "
";
$onto_store_config = array(
/* db */
'db_name' => DATA_BASE,
'db_user' => USER_NAME,
'db_pwd' => USER_PASS,
'db_host' => SQL_SERVER,
/* store */
'store_name' => 'ontology',
/* stop after 100 errors */
'max_errors' => 100,
'store_strip_mb_comp_str' => 0
);
$data_store_config = array(
/* db */
'db_name' => DATA_BASE,
'db_user' => USER_NAME,
'db_pwd' => USER_PASS,
'db_host' => SQL_SERVER,
/* store */
'store_name' => 'rdfstore',
/* stop after 100 errors */
'max_errors' => 100,
'store_strip_mb_comp_str' => 0
);
$tab_namespaces = array(
"skos" => "http://www.w3.org/2004/02/skos/core#",
"dc" => "http://purl.org/dc/elements/1.1",
"dct" => "http://purl.org/dc/terms/",
"owl" => "http://www.w3.org/2002/07/owl#",
"rdf" => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs" => "http://www.w3.org/2000/01/rdf-schema#",
"xsd" => "http://www.w3.org/2001/XMLSchema#",
"pmb" => "http://www.pmbservices.fr/ontology#"
);
$onto_handler = new onto_handler($class_path."/rdf/skos_pmb.rdf", "arc2", $onto_store_config, "arc2", $data_store_config, $tab_namespaces, 'http://www.w3.org/2004/02/skos/core#prefLabel', 'http://www.w3.org/2004/02/skos/core#ConceptScheme');
$params = new onto_param();
$params->concept_scheme = [$this->config['used_schema']];
$onto_controler = new onto_skos_controler($onto_handler, $params);
$result .= onto_skos_concept_ui::get_scheme_list_selector($onto_controler, $params, false, '', 'used_schema');
$result.= "
".$this->msg['webdav_yes']." config['only_with_notices'] ? "checked='checked'" : "")."/>
".$this->msg['webdav_no']." config['only_with_notices'] ? "" : "checked='checked'")."/>
";
$result.= $this->get_collections_tree();
return $result;
}
public function get_config_form_script() {
return $this->get_collections_tree_script();
}
public static function update_config_from_form(){
global $used_thesaurus;
global $only_with_notices;
global $used_schema;
return array_merge(parent::update_config_from_form(), array(
'used_thesaurus' => $used_thesaurus,
'only_with_notices' => $only_with_notices,
'used_schema' => $used_schema
));
}
}