| Line 314... |
Line 314... |
| 314 |
return strtolower($this->meta['acronyme'].'_v'.str_replace('.', '_', $this->meta['version']));
|
314 |
return strtolower($this->meta['acronyme'].'_v'.str_replace('.', '_', $this->meta['version']));
|
| 315 |
}
|
315 |
}
|
| Line 316... |
Line 316... |
| 316 |
|
316 |
|
| 317 |
private function creerFichierBdntPartiel(&$donnees) {
|
317 |
private function creerFichierBdntPartiel(&$donnees) {
|
| - |
|
318 |
$this->definirChampsPartiel();
|
| 318 |
$this->definirChampsPartiel();
|
319 |
$this->creerCorrespondanceRangBdntTaxref();
|
| 319 |
$this->creerCorrespondanceStatutBdntTaxref();
|
320 |
$this->creerCorrespondanceStatutBdntTaxref();
|
| 320 |
Debug::printr(current($donnees['noms']));
|
321 |
Debug::printr(current($donnees['noms']));
|
| 321 |
$donnees['champs_partiel'] = $this->champs_nom_partiel;
|
322 |
$donnees['champs_partiel'] = $this->champs_nom_partiel;
|
| 322 |
$donnees['dernier_champ'] = end($this->champs_nom_partiel);
|
323 |
$donnees['dernier_champ'] = end($this->champs_nom_partiel);
|
| Line 586... |
Line 587... |
| 586 |
$this->champs_courants = $this->champs_nom_partiel;
|
587 |
$this->champs_courants = $this->champs_nom_partiel;
|
| 587 |
$this->verifierNomsSupprimes('«Partielle»');
|
588 |
$this->verifierNomsSupprimes('«Partielle»');
|
| 588 |
$diff = array();
|
589 |
$diff = array();
|
| 589 |
foreach ($this->noms as $id => $nom) {
|
590 |
foreach ($this->noms as $id => $nom) {
|
| 590 |
unset($this->noms[$id]);
|
591 |
unset($this->noms[$id]);
|
| - |
|
592 |
|
| - |
|
593 |
// Ajout de champs spécifique à Taxref généré depuis les données BDNT
|
| - |
|
594 |
$nom['taxref_rang'] = $this->attribuerRangTaxref($nom['rang']);
|
| - |
|
595 |
$nom['taxref_statut'] = $this->attribuerStatutTaxref($nom);
|
| - |
|
596 |
|
| 591 |
$infos = array();
|
597 |
$infos = array();
|
| 592 |
if (!isset($this->noms_precedents[$id])) {
|
598 |
if (!isset($this->noms_precedents[$id])) {
|
| 593 |
$infos = $this->traiterDiffAjout($nom);
|
599 |
$infos = $this->traiterDiffAjout($nom);
|
| 594 |
} else {
|
600 |
} else {
|
| 595 |
$nom_precedent = $this->noms_precedents[$id];
|
601 |
$nom_precedent = $this->noms_precedents[$id];
|
| 596 |
unset($this->noms_precedents[$id]);
|
602 |
unset($this->noms_precedents[$id]);
|
| - |
|
603 |
|
| - |
|
604 |
// Ajout de champs spécifique à Taxref généré depuis les données BDNT
|
| - |
|
605 |
$nom_precedent['taxref_rang'] = $this->attribuerRangTaxref($nom_precedent['rang']);
|
| - |
|
606 |
$nom_precedent['taxref_statut'] = $this->attribuerStatutTaxref($nom_precedent);
|
| - |
|
607 |
|
| 597 |
array_walk($nom_precedent, create_function('&$val', '$val = trim($val);'));
|
608 |
array_walk($nom_precedent, create_function('&$val', '$val = trim($val);'));
|
| 598 |
$infos = $this->traiterDiffModif($nom, $nom_precedent);
|
609 |
$infos = $this->traiterDiffModif($nom, $nom_precedent);
|
| 599 |
}
|
610 |
}
|
| Line 600... |
Line 611... |
| 600 |
|
611 |
|
| Line 643... |
Line 654... |
| 643 |
}
|
654 |
}
|
| Line 644... |
Line 655... |
| 644 |
|
655 |
|
| 645 |
private function creerFichierMetaPartiel(&$donnees) {
|
656 |
private function creerFichierMetaPartiel(&$donnees) {
|
| 646 |
$donnees['signature'] = $this->signature_md5_partiel;
|
657 |
$donnees['signature'] = $this->signature_md5_partiel;
|
| 647 |
$donnees['stats'] = $this->noms_stat_partiel;
|
658 |
$donnees['stats'] = $this->noms_stat_partiel;
|
| 648 |
$donnees['notes'] = trim('Édition partielle. '.$donnees['notes']);
|
659 |
$donnees['notes'] = trim($this->manuel['notes_partiel'].' '.$donnees['notes']);
|
| 649 |
$meta_tsv_partiel =& $this->getVue('versionnage/squelettes/meta', &$donnees, '.tpl.tsv');
|
660 |
$meta_tsv_partiel =& $this->getVue('versionnage/squelettes/meta', &$donnees, '.tpl.tsv');
|
| 650 |
$this->ecrireFichierMetaPartiel($meta_tsv_partiel);
|
661 |
$this->ecrireFichierMetaPartiel($meta_tsv_partiel);
|
| Line 651... |
Line 662... |
| 651 |
}
|
662 |
}
|