get_subfield("900","a","l","n"); } function param_perso_form(&$p_perso) { global $dbh; global $param_perso_900; for($i=0;$iidchamp){ if($perso->type == 'list'){ $requete="select notices_custom_list_value from notices_custom_lists where notices_custom_list_lib='".addslashes($param_perso_900[$i]['a'])."' and notices_custom_champ=$perso->idchamp"; $resultat=pmb_mysql_query($requete); if (pmb_mysql_num_rows($resultat)) { $value=pmb_mysql_result($resultat,0,0); } else { $requete="select max(notices_custom_list_value*1) from notices_custom_lists where notices_custom_champ=$perso->idchamp"; $resultat=pmb_mysql_query($requete); $max=@pmb_mysql_result($resultat,0,0); $n=$max+1; $requete="insert into notices_custom_lists (notices_custom_champ,notices_custom_list_value,notices_custom_list_lib) values($perso->idchamp,$n,'".addslashes($param_perso_900[$i]['a'])."')"; pmb_mysql_query($requete); $value=$n; } $p_perso->values[$perso->idchamp][]=$value; } else { $p_perso->values[$perso->idchamp][]=$param_perso_900[$i]['a']; } } } } } // enregistrement de la notices dans les catégories function traite_categories_enreg($notice_retour,$categories,$thesaurus_traite=0) { } function traite_categories_for_form($tableau_600="",$tableau_601="",$tableau_602="",$tableau_605="",$tableau_606="",$tableau_607="",$tableau_608="") { } function traite_categories_from_form() { } function traite_info_subst(&$mes_info){ //Correspondance avec les codes langues PMB $lang = new marc_list('lang'); if (count($mes_info->original_language_code)) { asort($lang->table); foreach ($mes_info->original_language_code as $i=>$language) { if (strlen($language) == 2) { foreach ($lang->table as $code=>$value) { if ($mes_info->original_language_code[$i] == substr($code,0,2)) { $mes_info->original_language_code[$i] = $code; break; } } } } } //Gestion des documents numériques if (count($mes_info->doc_nums)) { foreach ($mes_info->doc_nums as $i=>$docnum) { $filename = substr($mes_info->doc_nums[$i]['a'], strrpos($mes_info->doc_nums[$i]['a'], "/")+1); $filename = substr($filename,0,strrpos($filename,".")); $mes_info->doc_nums[$i]['b'] = $filename; } } } function traite_concepts_for_form($tableau_606 = array()) { } ?>