Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 548 → Rev 549

/trunk/services/modules/0.1/baseflor/InformationsBaseflor.php
302,9 → 302,10
'/ontologies/TB:'.urlencode(urlencode($types));
$val = $this->consulterHref($url);
$libelle[$cle]= $val->nom;
$detail[$cle]['libelle'] = $val->nom;
$detail[$cle]['code'] = $val->code;
$detail[$cle]['href'] = $url;
$detail[$cle][$i]['libelle'] = $val->nom;
$detail[$cle][$i]['code'] = $val->code;
$detail[$cle][$i]['href'] = $url;
$i++;
}
}
if ($cle == 'sous_type.principal' || $cle == 'sous_type.secondaire' ) {
327,6 → 328,7
}
public function formaterTypeBioPrLibelle($info) {
$libelle = $info['type.principal']." ";
$libelle .= isset($info['sous_type.principal']) ? " (".$info['sous_type.principal'].") " : "";
354,9 → 356,7
//type
$type = array();
$type[0] = (isset($retour[3])) ? $retour[3] : $retour[1] ;
if (preg_match("/,/", $type[0])) {
$type = preg_split("/,/", $type[0]);
}
$type = explode(",", $type[0]);
for ($i = 0 ; $i < count($type); $i++) {
$types['type.'.$typePrimOuSec][$i] = $type[$i];
}
364,9 → 364,7
$ss_types = array();
if (isset($retour[2]) && $retour[2] != '') {
$ss_types[0] = $retour[2] ;
if (preg_match("/\-/", $ss_types[0])) {
$ss_types = preg_split("/\-/", $ss_types[0]);
}
$ss_types = explode("-", $ss_types[0]);
for ($i = 0 ; $i < count($ss_types); $i++) {
$types['sous_type.'.$typePrimOuSec][$i] = $ss_types[$i];
}