示例#1
0
             $GLOBALS[$key] = $val;
         }
     }
 }
 //on intègre...
 $z = new z3950_notice("form");
 //on reporte la signature de la notice calculée ou non...
 $z->signature = $signature;
 if ($infos['notice']) {
     $z->notice = $infos['notice'];
 }
 if ($infos['source_id']) {
     $z->source_id = $infos['source_id'];
 }
 if (isset($notice_id)) {
     $ret = $z->update_in_database($notice_id);
 } else {
     $ret = $z->insert_in_database();
 }
 //on conserve la trace de l'origine de la notice...
 $id_notice = $ret[1];
 $rqt = "select recid from external_count where rid = '{$item}'";
 $res = mysql_query($rqt);
 if (mysql_num_rows($res)) {
     $recid = mysql_result($res, 0, 0);
 }
 $req = "insert into notices_externes set num_notice = '" . $id_notice . "', recid = '" . $recid . "'";
 mysql_query($req);
 if ($ret[0]) {
     if ($z->bull_id && $z->perio_id) {
         $notice_display = new serial_display($ret[1], 6);
示例#2
0
             } else {
                 $not_id = 0;
             }
         }
         // if ($not_id) METTRE ICI TRAITEMENT DU CHOIX DU DOUBLON echo "<script> alert('Existe déjà'); </script>" ;
         $notice = new z3950_notice($format, $ligne['z_marc']);
     }
 }
 $integration_OK = "PASFAIT";
 $integrationexpl_OK = "PASFAIT";
 switch ($action) {
     case "integrer":
         if (!$id_notice) {
             $res_integration = $notice->insert_in_database();
         } else {
             $res_integration = $notice->update_in_database($id_notice);
         }
         $new_notice = $res_integration[0];
         $num_notice = $res_integration[1];
         if ($new_notice == 0 && $num_notice == 0) {
             $integration_OK = "ECHEC";
         }
         if ($new_notice == 0 && $num_notice != 0) {
             $integration_OK = "EXISTAIT";
         }
         if ($new_notice == 1 && $num_notice != 0) {
             $integration_OK = "OK";
         }
         if ($new_notice == 2 && $num_notice != 0) {
             $integration_OK = "UPDATE_OK";
         }
 function record_notice($notice_id)
 {
     $z = new z3950_notice("form");
     $ret = $z->update_in_database($notice_id);
     print "\n    \t\t<div class='row'><div class='msg-perio'>" . $msg["maj_encours"] . "</div></div>\n\t\t\t<script type=\"text/javascript\">document.location='./catalog.php?categ=isbd&id={$notice_id}'</script>\n\t\t";
     printr($ret);
 }