diff --git a/cosmogramme/php/classes/classe_unimarc.php b/cosmogramme/php/classes/classe_unimarc.php index ca67be2707d773a2005c912fd8d331253fd9aec0..96b087b10d55346427257a7d7a9e3bf0489cc1a6 100644 --- a/cosmogramme/php/classes/classe_unimarc.php +++ b/cosmogramme/php/classes/classe_unimarc.php @@ -1020,9 +1020,12 @@ private function getExemplaires999() $sous_champs=$this->decoupe_bloc_champ($items); foreach($sous_champs as $item) { - if($item["code"]=="8") $nom=trim($item["valeur"]); + if($item["code"]=="8") + { + $nom=trim($item["valeur"]); + if(strlen($nom)>1) $auteur[]=$nom; + } } - if(strlen($nom)>1) $auteur[]=$nom; } } @@ -1300,16 +1303,14 @@ public function getCote() foreach($data as $items) { $sous_champs=$this->decoupe_bloc_champ($items); - $mot=""; foreach($sous_champs as $item) { - if($item["code"] ==8 ) + if($item["code"]==8) { - if($mot) $mot.=" : "; - $mot.=$item["valeur"]; + $mot=trim($item["valeur"]); + if(strlen($mot)>1) $matiere[]=$mot; } } - $matiere[]=trim($mot); } } return($matiere);