Skip to content
Snippets Groups Projects

Hotline #16628 lost interests

Merged Patrick Barroca requested to merge hotline_#16628-lost-interests into master
Compare and
+ 68
28
Preferences
Compare changes
Files
@@ -570,7 +570,7 @@ class notice_integration {
// Traitement des facettes
$this->traiteFacettes();
$notice = Class_Notice::newInstance($this->noticeToDBEnreg($this->notice));
$notice = Class_Notice::newInstance($this->noticeToDBEnreg());
$notice->save();
$this->statut=1;
return $notice->getId();
@@ -642,7 +642,7 @@ class notice_integration {
// Si la notice de la base est de meilleure qualite on la prend
if ($this->statut == static::RECORD_RENEW)
$this->notice_sgbd->ouvrirNotice($this->notice["unimarc"],0);
$this->notice_sgbd->ouvrirNotice($this->notice["unimarc"], 0);
$this->updateForcedZones($champs_forces, $this->notice["champs_forces"]);
$this->notice = $this->notice_sgbd->getNoticeIntegration();
@@ -869,20 +869,26 @@ class notice_integration {
$facettes[]="M".$id_matiere;
}
}
// Centres d'interet
if($this->notice["interet"])
{
foreach($this->notice["interet"] as $interet)
{
$code_alpha=$this->indexation->alphaMaj($interet);
if(!$code_alpha) continue;
$enreg=$sql->fetchEnreg("Select * from codif_interet where code_alpha='$code_alpha'");
if(!$enreg["id_interet"]) $id_interet=$sql->insert("codif_interet",array("libelle" => $interet,"code_alpha" => $code_alpha));
else $id_interet=$enreg["id_interet"];
$facettes[]="F".$id_interet;
$this->notice["full_dewey"].=$interet." ";
if ($this->notice["interet"]) {
foreach($this->notice["interet"] as $interet) {
$code_alpha = $this->indexation->alphaMaj($interet);
if (!$code_alpha)
continue;
$enreg = $sql->fetchEnreg("Select * from codif_interet where code_alpha='$code_alpha'");
if (!$enreg["id_interet"])
$id_interet = $sql->insert("codif_interet",
["libelle" => $interet,
"code_alpha" => $code_alpha]);
else
$id_interet = $enreg["id_interet"];
$facettes[] = "F".$id_interet;
$this->notice["full_dewey"] .= $interet." ";
}
}
// Langues
if($this->notice["langues"])
{