get_subfield("956","u","3","z");
global $add_explnum;
$add_explnum=TRUE;
} // fin recup_noticeunimarc_suite = fin récupération des variables propres BDP : rien de plus
function import_new_notice_suite() {
global $dbh ;
global $notice_id ;
global $index_sujets ;
global $pmb_keyword_sep ;
global $info_600_a, $info_600_j, $info_600_x, $info_600_y, $info_600_z ;
global $info_601_a, $info_601_j, $info_601_x, $info_601_y, $info_601_z ;
global $info_602_a, $info_602_j, $info_602_x, $info_602_y, $info_602_z ;
global $info_605_a, $info_605_j, $info_605_x, $info_605_y, $info_605_z ;
global $info_606_a, $info_606_j, $info_606_x, $info_606_y, $info_606_z ;
global $info_607_a, $info_607_j, $info_607_x, $info_607_y, $info_607_z ;
global $info_956;
if (is_array($index_sujets)) $mots_cles = implode (" $pmb_keyword_sep ",$index_sujets);
else $mots_cles = $index_sujets;
for ($a=0; $a";
echo "995\$b =".$info_995[$nb_expl]['b']."
";
echo "995\$c =".$info_995[$nb_expl]['c']."
";
echo "995\$d =".$info_995[$nb_expl]['d']."
";
echo "995\$f =".$info_995[$nb_expl]['f']."
";
echo "995\$k =".$info_995[$nb_expl]['k']."
";
echo "995\$m =".$info_995[$nb_expl]['m']."
";
echo "995\$n =".$info_995[$nb_expl]['n']."
";
echo "995\$o =".$info_995[$nb_expl]['o']."
";
echo "995\$q =".$info_995[$nb_expl]['q']."
";
echo "995\$r =".$info_995[$nb_expl]['r']."
";
echo "995\$u =".$info_995[$nb_expl]['u']."
";
*/
} // fin for
} // fin traite_exemplaires TRAITEMENT DES EXEMPLAIRES JUSQU'ICI
// fonction spécifique d'export de la zone 995
function export_traite_exemplaires ($ex=array()) {
global $msg, $dbh ;
$subfields["a"] = $ex -> lender_libelle;
$subfields["c"] = $ex -> lender_libelle;
$subfields["f"] = $ex -> expl_cb;
$subfields["k"] = $ex -> expl_cote;
$subfields["u"] = $ex -> expl_note;
if ($ex->statusdoc_codage_import) $subfields["o"] = $ex -> statusdoc_codage_import;
if ($ex -> tdoc_codage_import) $subfields["r"] = $ex -> tdoc_codage_import;
else $subfields["r"] = "uu";
if ($ex -> sdoc_codage_import) $subfields["q"] = $ex -> sdoc_codage_import;
else $subfields["q"] = "u";
global $export996 ;
$export996['f'] = $ex -> expl_cb ;
$export996['k'] = $ex -> expl_cote ;
$export996['u'] = $ex -> expl_note ;
$export996['m'] = substr($ex -> expl_date_depot, 0, 4).substr($ex -> expl_date_depot, 5, 2).substr($ex -> expl_date_depot, 8, 2) ;
$export996['n'] = substr($ex -> expl_date_retour, 0, 4).substr($ex -> expl_date_retour, 5, 2).substr($ex -> expl_date_retour, 8, 2) ;
$export996['a'] = $ex -> lender_libelle;
$export996['b'] = $ex -> expl_owner;
$export996['v'] = $ex -> location_libelle;
$export996['w'] = $ex -> ldoc_codage_import;
$export996['x'] = $ex -> section_libelle;
$export996['y'] = $ex -> sdoc_codage_import;
$export996['e'] = $ex -> tdoc_libelle;
$export996['r'] = $ex -> tdoc_codage_import;
$export996['1'] = $ex -> statut_libelle;
$export996['2'] = $ex -> statusdoc_codage_import;
$export996['3'] = $ex -> pret_flag;
global $export_traitement_exemplaires ;
$export996['0'] = $export_traitement_exemplaires ;
return $subfields ;
}
//TRAITEMENT DES DOCS NUMERIQUES SUR NOTICE EXISTANTE
function ajoute_explnum () {
global $msg, $dbh ;
global $notice_id;
global $info_956;
if ($info_956[0]['u']) {
if (!$info_956[0]['z']) $info_956[0]['z']=$info_956[0]['u'];
$q = "select count(*) from explnum where explnum_notice='$notice_id' and explnum_url='".addslashes($info_956[0]['u'])."' ";
$r = mysql_query($q, $dbh);
if (mysql_result($r,0,0)==0){
$rqt_maj = "insert into explnum set explnum_notice='$notice_id', explnum_nom='".addslashes($info_956[0]['z'])."',
explnum_mimetype='URL', explnum_url='".addslashes($info_956[0]['u'])."'";
$res_ajout = mysql_query($rqt_maj, $dbh);
}
}
}
?>